mirror of
https://github.com/mach-kernel/mrbuffer.git
synced 2024-11-22 05:31:37 +00:00
increment columns via centralized method, snap back to 0 and inc row,
ready for dispchar!!
This commit is contained in:
parent
4a4a86082d
commit
34495ef9d3
14
src/main.S
14
src/main.S
@ -50,13 +50,13 @@ keydown cmp #$8B ; up
|
|||||||
cmp #$88 ; left
|
cmp #$88 ; left
|
||||||
beq left
|
beq left
|
||||||
cmp #$95 ; right
|
cmp #$95 ; right
|
||||||
beq right
|
beq colinc
|
||||||
cmp #$FF ; backspace
|
cmp #$FF ; backspace
|
||||||
beq backspace
|
beq backspace
|
||||||
cmp #$8D ; return
|
cmp #$8D ; return
|
||||||
beq down
|
beq down
|
||||||
inx
|
|
||||||
jsr drawchar
|
jsr drawchar
|
||||||
|
jmp colinc
|
||||||
finkey ldal $00C010 ; clear strobe bit
|
finkey ldal $00C010 ; clear strobe bit
|
||||||
lda #0
|
lda #0
|
||||||
rts
|
rts
|
||||||
@ -73,10 +73,13 @@ left cpx #0
|
|||||||
beq finkey
|
beq finkey
|
||||||
dex
|
dex
|
||||||
jmp finkey
|
jmp finkey
|
||||||
right cpx #39
|
colinc cpx #39
|
||||||
beq finkey
|
beq :rolcol
|
||||||
inx
|
inx
|
||||||
jmp finkey
|
jmp finkey
|
||||||
|
:rolcol ldx #0
|
||||||
|
jmp down
|
||||||
|
|
||||||
backspace lda #$A0
|
backspace lda #$A0
|
||||||
jsr drawchar
|
jsr drawchar
|
||||||
jmp left
|
jmp left
|
||||||
@ -243,6 +246,9 @@ bufbase da #40
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user