diff options
Diffstat (limited to 'pu3/pu3.cpu.c')
| -rw-r--r-- | pu3/pu3.cpu.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |
