diff --git a/games/keen/story.s b/games/keen/story.s index 3410ae69..ced52cc3 100644 --- a/games/keen/story.s +++ b/games/keen/story.s @@ -9,6 +9,8 @@ story_data = $7000 +story_end = $83A0 + keen_story_start: ;=================== ; init screen @@ -303,11 +305,11 @@ up_done: do_down: lda START_LINE_H ; 3 - cmp #$82 ; 2 + cmp #>story_end ; 2 bne down_ok ; 2/3 lda START_LINE_L ; 3 - cmp #$48 ; 2 + cmp # #include +/* If doing cycle-counted code we don't want to cross pages */ +/* in that case, skip bytes from 240-256 */ +static int dont_page_cross=1; + int main(int argc, char **argv) { char string[BUFSIZ]; @@ -8,6 +12,7 @@ int main(int argc, char **argv) { int inverse=0; int count,i,length; + int offset=0; while(1) { @@ -26,9 +31,11 @@ int main(int argc, char **argv) { if (inverse) { putchar(' '&0x3f); + offset++; } else { putchar(' '|0x80); + offset++; } for(i=0;i