diff options
| Commit | 28c8c0d08f6d0aa61e49627c8b920c7dfee83dca (patch) | |
|---|---|---|
| Author | 2025-07-31 07:31:16 +0300 | |
| Committer | 2025-07-31 07:31:16 +0300 | |
| Files | 799acc56f3427f472d8c9767cc6372435d2ffb47 /hello_world | |
| c64-programs-28c8c0d08f6d0aa61e49627c8b920c7dfee83dca.tar c64-programs-28c8c0d08f6d0aa61e49627c8b920c7dfee83dca.tar.gz c64-programs-28c8c0d08f6d0aa61e49627c8b920c7dfee83dca.zip | ||
| Parent | 7ff9d6901ce0ff1e3374c874685dff8a0b76c573 (diff) | |
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.
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | hello_world/kernal.oph.s | 2 |
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 |
