From 28c8c0d08f6d0aa61e49627c8b920c7dfee83dca Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 31 Jul 2025 07:31:16 +0300 Subject: fix(hello_world): Revert bne on print end I thought the BNE was useless, however, I figured out that the zero flag is always updated when a value is placed in ACC, X or Y registers and that incrementing X will eventually make it wrap around to zero. --- hello_world/kernal.oph.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_world/kernal.oph.s b/hello_world/kernal.oph.s index 086d3c1..79464a9 100644 --- a/hello_world/kernal.oph.s +++ b/hello_world/kernal.oph.s @@ -7,6 +7,6 @@ beq _done jsr putchar ; putchar(_1[x]) inx ; ++x - jmp _loop ; } + bne _loop ; if (x == 0) break } This allows max 255 character to be read _done: .macend -- cgit v1.3.1-23-gd82d