keen: story limits

This commit is contained in:
Vince Weaver 2024-05-08 20:07:48 -04:00
parent f7cd1b2e43
commit ce36d74251
1 changed files with 21 additions and 0 deletions

View File

@ -138,9 +138,19 @@ message_text_loop:
cmp #$0A
beq do_down
done_key:
jmp redraw_text
do_up:
lda START_LINE_H
cmp #>story_data
bne up_ok
lda START_LINE_L
cmp #<story_data
beq done_key
up_ok:
sec
lda START_LINE_L
sbc #40
@ -151,6 +161,17 @@ do_up:
jmp redraw_text
do_down:
lda START_LINE_H
cmp #$82
bne down_ok
lda START_LINE_L
cmp #$48
beq done_key
down_ok:
clc
lda START_LINE_L
adc #40