Skip to content

Commit

Permalink
Fix CLXI to clear message when appropriate
Browse files Browse the repository at this point in the history
If a message is shown it should just clear the message. This problem
seems to have been introduced when refactoring the code to work with
OS4.
  • Loading branch information
hth313 committed Apr 20, 2020
1 parent ad2210e commit 7d73e90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ladybug.s
Original file line number Diff line number Diff line change
Expand Up @@ -1953,15 +1953,16 @@ ADD_2: rxq findIntegerBufferGetXSaveL
;;; **********************************************************************

.name "CLXI"
CLXI: rxq findIntegerBufferUserFlags
CLXI: gosub displayingMessage
goto putX_J00 ; (P+1) clear shown message
rxq findIntegerBufferUserFlags
c=0 ; load 0
dadd=c
regn=c X
b=0 x
s11=0 ; disable stack lift
rgo putXnoFlags

.section Code, reorder
;;; **********************************************************************
;;;
;;; IABS - Integer ABS, make the number positive
Expand All @@ -1975,7 +1976,7 @@ ABSI: rxq findIntegerBufferGetXSaveL
gonc putX_J0 ; yes, done
rxq getSign ; signed mode, check sign
?c#0 s
gonc putX_J0 ; positive
putX_J00: gonc putX_J0 ; positive
goto NEG10 ; negative, negate it

;;; **********************************************************************
Expand Down

0 comments on commit 7d73e90

Please sign in to comment.