asm cleanup

This commit is contained in:
august kline 2024-02-21 23:38:33 -05:00
parent 10559bde8b
commit 9808616203
1 changed files with 1 additions and 2 deletions

View File

@ -74,7 +74,6 @@ cleardisplay:
bne cleardisplay bne cleardisplay
rts rts
; TODO: get this to work, (also i think emu-side i need better tooling), rn it just draws a heart to $6000, so i think the addition isn't working or something
draw: ; draw a character at (20, 30) draw: ; draw a character at (20, 30)
lda #63 lda #63
push push
@ -126,7 +125,7 @@ get_char_address: ; gets vram address for a character at (x, y),
; data stack is built up of 2-byte cells ; data stack is built up of 2-byte cells
; TODO: this is broken, the return address gets mangled somewhere in here, could be an emulator problem tho ; TODO: this is broken, jumping here does nothing to the stack and skips several instructions, could be an emulator problem tho
push_lit: ; this bad boy lets you inline a literal (low byte first) right after `jsr push_lit` and put it on the stack, once again, on this channel we love garth wilson push_lit: ; this bad boy lets you inline a literal (low byte first) right after `jsr push_lit` and put it on the stack, once again, on this channel we love garth wilson
push2 push2
phx phx