diff options
| -rwxr-xr-x | pu3/pu3 | bin | 16272 -> 0 bytes | |||
| -rw-r--r-- | pu3/pu3.cpu.c | 7 |
2 files changed, 6 insertions, 1 deletions
diff --git a/pu3/pu3 b/pu3/pu3 Binary files differdeleted file mode 100755 index 6e691fc..0000000 --- a/pu3/pu3 +++ /dev/null diff --git a/pu3/pu3.cpu.c b/pu3/pu3.cpu.c index 0597027..312b5a8 100644 --- a/pu3/pu3.cpu.c +++ b/pu3/pu3.cpu.c @@ -239,7 +239,12 @@ double bench_cycle(byte instr, pu3_ctx ctx) { set_data_u16(ctx.memory.memory_u64[ i ], 2); set_dest_u32(ctx.memory.memory_u64[ i ], 4); - if (i == ctx.mem_size - 20) set_scroll_byte(ctx.memory.memory_u64[ i ], 1); + if (i == ctx.mem_size - 20) { + let j = 0; + for (j = 0; j < 20; j++) { + set_scroll_byte(ctx.memory.memory_u64[ ctx.mem_size - j ], 1); + } + } } set_scroll_byte(ctx.memory.memory_u64[ i ], 0); *ctx.pc = 8; |
