diff options
| author | 2025-08-27 19:21:05 +0330 | |
|---|---|---|
| committer | 2025-08-27 19:21:05 +0330 | |
| commit | 744cad1aab255a0b1ab2bd2c34e00e2ec66d3613 (patch) | |
| tree | b4a3d68b1818b45f6072c1decdaf3a7f717d624c /pu3 | |
| parent | pu3 poc3 (diff) | |
pu3 poc4
Diffstat (limited to 'pu3')
| -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; |
