mirror of
https://github.com/mach-kernel/mrbuffer.git
synced 2024-11-21 14:31:12 +00:00
working single line with drop arrow key write
This commit is contained in:
parent
5aa31dfafe
commit
f68a7a36c4
50
src/main.S
50
src/main.S
@ -36,13 +36,42 @@ inloop clc
|
||||
bit #%1
|
||||
bmi keybranch
|
||||
jmp inloop
|
||||
|
||||
keybranch jsr keydown
|
||||
jmp inloop
|
||||
|
||||
keydown nop
|
||||
stal $000400,X
|
||||
ldal $00C010
|
||||
cmp #$8B ; up
|
||||
beq up
|
||||
cmp #$8A ; down
|
||||
beq down
|
||||
cmp #$88 ; left
|
||||
beq left
|
||||
cmp #$95 ; right
|
||||
beq right
|
||||
jmp dispchar
|
||||
|
||||
up nop
|
||||
jmp rtsout
|
||||
down nop
|
||||
jmp rtsout
|
||||
|
||||
left clc
|
||||
cpx #0
|
||||
beq rtsout
|
||||
dex
|
||||
jmp rtsout
|
||||
|
||||
right clc
|
||||
cpx #39
|
||||
beq rtsout
|
||||
inx
|
||||
jmp rtsout
|
||||
|
||||
dispchar stal $000400,X
|
||||
jmp rtsout
|
||||
|
||||
rtsout ldal $00C010
|
||||
lda #0
|
||||
rts
|
||||
|
||||
; working text blit
|
||||
@ -187,6 +216,21 @@ brkboi brk
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user