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
@@ -0,0 +1,3 @@
|
||||
$04 + LDA ($22),Y + STA $65 + DEY + LDA ($22),Y + STA $64 + DEY + LDA ($22),Y + STA $63 + DEY + LDA ($22),Y + STA $66 + ORA #$80 + STA $62 + DEY + LDA ($22),Y + STA $61 + STY $70 + RTS
|
||||
|
||||
Load FAC1 (well known zero page locations) from memory using well known vector in zero page (INDEX)
|
||||
@@ -0,0 +1,3 @@
|
||||
JSR $BBA2 + JMP fragment
|
||||
|
||||
Call to well known floating point function + fragment
|
||||
@@ -0,0 +1,5 @@
|
||||
60 20 2B BC 85
|
||||
|
||||
RTS + JSR $BC2B + STA fragment
|
||||
|
||||
Fragments + call to well known floating point function
|
||||
@@ -0,0 +1,3 @@
|
||||
$6E + ORA #$80 + STA $6A + DEY + LDA ($22),Y + STA $69 + LDA $61 + RTS
|
||||
|
||||
Fragment of copying using a well known index vector from a mem float into FAC2
|
||||
@@ -0,0 +1,3 @@
|
||||
LDY #$04 + LDA ($22),Y + STA $6D + DEY + LDA ($22),Y + STA $6C + DEY + LDA ($22),Y + STA $6B + DEY + LDA ($22),Y + STA $6E
|
||||
|
||||
Load parts of the mantissa of FAC2 and its sign (well known zero page locations) from memory using well known vector in zero page (INDEX)
|
||||
@@ -0,0 +1,3 @@
|
||||
LDA #$A8 + LDY #$AE + JSR $BBA2 + JMP fragment
|
||||
|
||||
Loading well known address of math constant pi into AY and call well known floating point function (mov_MEM_FAC1)
|
||||
@@ -0,0 +1,3 @@
|
||||
LDA ($24),Y + EOR $66 + BMI fragment
|
||||
|
||||
Compare signs of FAC1 and float pointed to by index vector
|
||||
Reference in new issue
Block a user