From fcc161e70502caf34bc0206d2c428e8341e97fa6 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 24 May 2020 22:43:18 -0700 Subject: 6397 Drop '---' section boundaries from filenames. I noticed them confusing tab-completion for certain advanced shell setups. --- html/011run.cc.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'html/011run.cc.html') diff --git a/html/011run.cc.html b/html/011run.cc.html index 003e8139..84c3d680 100644 --- a/html/011run.cc.html +++ b/html/011run.cc.html @@ -151,11 +151,11 @@ if ('onhashchange' in window) { 91 // convenience to keep tests concise: 'Entry' label need not be provided 92 // not allowed in real programs 93 if (p.entry) - 94 EIP = p.entry; + 94 EIP = p.entry; 95 else - 96 EIP = find(p, "code")->start; - 97 while (EIP < End_of_program) - 98 run_one_instruction(); + 96 EIP = find(p, "code")->start; + 97 while (EIP < End_of_program) + 98 run_one_instruction(); 99 } 100 101 //:: core data structures @@ -228,7 +228,7 @@ if ('onhashchange' in window) { 168 curr_segment->name = segment_name; 169 curr_segment->start = seg_start; 170 if (trace_contains_errors()) continue; -171 trace(3, "parse") << "starts at address 0x" << HEXWORD << curr_segment->start << end(); +171 trace(3, "parse") << "starts at address 0x" << HEXWORD << curr_segment->start << end(); 172 } 173 break; // skip rest of line 174 } @@ -316,8 +316,8 @@ if ('onhashchange' in window) { 256 const segment& seg = p.segments.at(i); 257 uint32_t addr = seg.start; 258 if (!already_allocated(addr)) -259 Mem.push_back(vma(seg.start)); -260 trace(99, "load") << "loading segment " << i << " from " << HEXWORD << addr << end(); +259 Mem.push_back(vma(seg.start)); +260 trace(99, "load") << "loading segment " << i << " from " << HEXWORD << addr << end(); 261 for (int j = 0; j < SIZE(seg.lines); ++j) { 262 const line& l = seg.lines.at(j); 263 for (int k = 0; k < SIZE(l.words); ++k) { @@ -325,14 +325,14 @@ if ('onhashchange' in window) { 265 uint8_t val = hex_byte(w.data); 266 if (trace_contains_errors()) return; 267 assert(overlap.find(addr) == overlap.end()); -268 write_mem_u8(addr, val); +268 write_mem_u8(addr, val); 269 overlap.insert(addr); -270 trace(99, "load") << "0x" << HEXWORD << addr << " -> " << HEXBYTE << NUM(read_mem_u8(addr)) << end(); +270 trace(99, "load") << "0x" << HEXWORD << addr << " -> " << HEXBYTE << NUM(read_mem_u8(addr)) << end(); 271 ++addr; 272 } 273 } 274 if (seg.name == "code") { -275 End_of_program = addr; +275 End_of_program = addr; 276 } 277 } 278 } @@ -465,15 +465,15 @@ if ('onhashchange' in window) { 405 //:: run 406 407 :(before "End Initialize Op Names") -408 put_new(Name, "b8", "copy imm32 to EAX (mov)"); +408 put_new(Name, "b8", "copy imm32 to EAX (mov)"); 409 410 //: our first opcode 411 412 :(before "End Single-Byte Opcodes") 413 case 0xb8: { // copy imm32 to EAX 414 const int32_t src = next32(); -415 trace(Callstack_depth+1, "run") << "copy imm32 0x" << HEXWORD << src << " to EAX" << end(); -416 Reg[EAX].i = src; +415 trace(Callstack_depth+1, "run") << "copy imm32 0x" << HEXWORD << src << " to EAX" << end(); +416 Reg[EAX].i = src; 417 break; 418 } 419 @@ -491,7 +491,7 @@ if ('onhashchange' in window) { 431 432 // read a 32-bit int in little-endian order from the instruction stream 433 int32_t next32() { -434 int32_t result = read_mem_i32(EIP); +434 int32_t result = read_mem_i32(EIP); 435 EIP+=4; 436 return result; 437 } -- cgit 1.4.1-2-gfad0