diff options
author | WlodekM <[email protected]> | 2025-04-05 08:59:56 +0300 |
---|---|---|
committer | WlodekM <[email protected]> | 2025-04-05 08:59:56 +0300 |
commit | 5b26ed42a61f8cfb057b050257d77920ea41e3f3 (patch) | |
tree | ea0b759a304ec62bd95c84406e0869c88f9b33d4 /thing.s | |
parent | 562e6237bb58919d800f431cb38de1784efbbe98 (diff) |
fix some stack stuff, not sure if it should be 0xFF or 0x0 on startup but whatever
Diffstat (limited to 'thing.s')
-rw-r--r-- | thing.s | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/thing.s b/thing.s index 5e03ad8..983470b 100644 --- a/thing.s +++ b/thing.s @@ -4,11 +4,8 @@ ACIA_CMD = $5002 ACIA_CTRL = $5003 _start: - lda #$64 - jsr CHROUT - lda #$20 - pha - BRK + jmp printChar + brk CHROUT: pha @@ -17,4 +14,19 @@ CHROUT: ; .txdelay: dec ; bne .txdelay pla - rts \ No newline at end of file + rts + +fallback: + lda #$21 + brk +printChar: + jmp print +fallback2: + lda #$22 + brk +print: + lda #$64 + jsr CHROUT + lda #$20 + pha + BRK \ No newline at end of file |