Compile-time calculation: Difference between revisions

m
Line 97:
jsr givayf
 
; sincein it'sthe general case, the bottom half of a larger32-bit number
; it may have the high bit set, which will cause the above conversion to
; treat it as negative. IfThis thatlogic happened,detects correctthat bycase addingand corrects, 65536.although
; it is not actually needed here since our value is hard-coded as 10!,
; which mod 65536 is 24320 < 32768 and so stays positive.
lda facsgn
beq ok ; it's positive, so skip the correction
1,480

edits