Skip to content

Commit

Permalink
Fix bug in DISP.asm when STSWIN and STSENT are both present.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrug committed May 18, 2024
1 parent 9e1eb9b commit 627a70f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Src/DISP.asm
Original file line number Diff line number Diff line change
Expand Up @@ -142,25 +142,25 @@ NOT1 RT
STRPAR
* Let R0 = contain document status
MOV *R13,R0
* Did the user press enter?
COC @STSENT,R0
JEQ SP1
* Did the window move?
COC @STSWIN,R0
JEQ SP1
* Did the user press enter?
COC @STSENT,R0
JEQ SP2
* Set starting position to cursor's
* paragraph.
MOV @PARINX,R9
RT
* Set starting position based on window
* position.
SP1 MOV @WINPAR,R9
RT
* The user pressed enter, so start from
* a previous paragraph.
SP1 MOV @PARENT,R9
SP2 MOV @PARENT,R9
DEC R9
RT
* Set starting position based on window
* position.
SP2 MOV @WINPAR,R9
RT
*
* Set VDP write address so that the
Expand Down

0 comments on commit 627a70f

Please sign in to comment.