mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-21 21:34:20 +02:00
Smol opty :)
This commit is contained in:
+10
-9
@@ -77,19 +77,20 @@ OptionsMainLoop
|
|||||||
|
|
||||||
cmp #@kbcode._down ; $f ;cursor down
|
cmp #@kbcode._down ; $f ;cursor down
|
||||||
bne OptionsNoDown
|
bne OptionsNoDown
|
||||||
inc:lda OptionsY
|
ldx OptionsY
|
||||||
cmp #maxoptions
|
inx
|
||||||
bne OptionsMainLoop
|
cpx #maxoptions
|
||||||
mva #maxoptions-1 OptionsY
|
beq OptionsMainLoop
|
||||||
jmp OptionsMainLoop
|
stx OptionsY
|
||||||
|
bne OptionsMainLoop ; allways not 0
|
||||||
|
|
||||||
OptionsNoDown
|
OptionsNoDown
|
||||||
cmp #@kbcode._up ; $e ;cursor up
|
cmp #@kbcode._up ; $e ;cursor up
|
||||||
bne OptionsNoUp
|
bne OptionsNoUp
|
||||||
dec OptionsY
|
dec OptionsY
|
||||||
bpl OptionsMainLoop
|
bpl OptionsMainLoop
|
||||||
mva #0 OptionsY
|
inc OptionsY
|
||||||
jmp OptionsMainLoop
|
beq OptionsMainLoop ; allways 0
|
||||||
|
|
||||||
OptionsNoUp
|
OptionsNoUp
|
||||||
cmp #@kbcode._left ; $6 ;cursor left
|
cmp #@kbcode._left ; $6 ;cursor left
|
||||||
@@ -99,7 +100,7 @@ OptionsNoUp
|
|||||||
lda OptionsTable,X
|
lda OptionsTable,X
|
||||||
bpl OptionsMainLoop
|
bpl OptionsMainLoop
|
||||||
inc OptionsTable,X
|
inc OptionsTable,X
|
||||||
jmp OptionsMainLoop
|
beq OptionsMainLoop ; allways 0
|
||||||
|
|
||||||
OptionsNoLeft
|
OptionsNoLeft
|
||||||
cmp #@kbcode._right ; $7 ;cursor right
|
cmp #@kbcode._right ; $7 ;cursor right
|
||||||
@@ -111,7 +112,7 @@ OptionsNoLeft
|
|||||||
cmp #5 ; number of columns in options
|
cmp #5 ; number of columns in options
|
||||||
bne OptionsMainLoop
|
bne OptionsMainLoop
|
||||||
dec OptionsTable,X
|
dec OptionsTable,X
|
||||||
jmp OptionsMainLoop
|
bne OptionsMainLoop ; allways not 0
|
||||||
|
|
||||||
OptionsNoRight
|
OptionsNoRight
|
||||||
cmp #@kbcode._ret ; $c ;Return key
|
cmp #@kbcode._ret ; $c ;Return key
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user