From 744cad1aab255a0b1ab2bd2c34e00e2ec66d3613 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Wed, 27 Aug 2025 19:21:05 +0330 Subject: pu3 poc4 --- pu3/pu3 | Bin 16272 -> 0 bytes pu3/pu3.cpu.c | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) delete mode 100755 pu3/pu3 diff --git a/pu3/pu3 b/pu3/pu3 deleted file mode 100755 index 6e691fc..0000000 Binary files a/pu3/pu3 and /dev/null differ 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; -- cgit v1.2.3