Add get_FAC1_via_INDEX
Also change to only use bit 7 as sign in FAC1 and FAC2 (as the original BASIC does) to simplify implementations.
This commit is contained in:
1 parent
919f3c84b9
commit
5a3f65efa4
18 files changed
+130
-134
No files matched your search
@@ -33,20 +33,10 @@ get_FAC2_via_INDEX:
|
||||
|
||||
dey
|
||||
lda (INDEX), y
|
||||
sta FAC2_sign
|
||||
ora #$80 ; clear the sign bit
|
||||
sta FAC2_mantissa+0
|
||||
|
||||
; Copy the sign
|
||||
|
||||
lda (INDEX), y
|
||||
bpl @1 ; assumption: non-negative numbers are more frequent
|
||||
lda #$FF
|
||||
+skip_2_bytes_trash_nvz
|
||||
@1:
|
||||
lda #$00
|
||||
|
||||
sta FAC2_sign
|
||||
|
||||
; Copy the exponent
|
||||
|
||||
dey
|
||||
|
||||
Reference in new issue
Block a user