aboutsummaryrefslogtreecommitdiff
path: root/bigfloat.s
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-03-25 15:35:48 -0400
committerB. Watson <yalhcru@gmail.com>2021-03-25 15:35:48 -0400
commit4af1412a9282e8f2c604d8c40d9a910d7563be36 (patch)
treeafc1749275975a6555c824c6893aeb7f93a0b495 /bigfloat.s
parent47ce755193d18704ffaf9dc3e5953dd6966f1db1 (diff)
downloadtaipan-4af1412a9282e8f2c604d8c40d9a910d7563be36.tar.gz
Save 6 bytes
Diffstat (limited to 'bigfloat.s')
-rw-r--r--bigfloat.s20
1 files changed, 10 insertions, 10 deletions
diff --git a/bigfloat.s b/bigfloat.s
index 2d30855..c861618 100644
--- a/bigfloat.s
+++ b/bigfloat.s
@@ -139,6 +139,13 @@ _big_copy:
jmp FST0P ; store FR0 value into dest
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; void __cdecl__ big_add(bignump dest, bignump a, bignump b);
+_big_add:
+ lda #<FADD
+ ldx #>FADD
+ ; fall through to _big_binary_op
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; void __fastcall__ big_binary_op(bignump dest, bignump a, bignump b, unsigned int jsraddr);
_big_binary_op:
@@ -173,32 +180,25 @@ _big_binary_op:
jmp FST0P
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-; void __cdecl__ big_add(bignump dest, bignump a, bignump b);
-_big_add:
- lda #<FADD
- ldx #>FADD
- jmp _big_binary_op
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; void __cdecl__ big_sub(bignump dest, bignump a, bignump b);
_big_sub:
lda #<FSUB
ldx #>FSUB
- jmp _big_binary_op
+ bne _big_binary_op ; branch always
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; void __cdecl__ big_mul(bignump dest, bignump a, bignump b);
_big_mul:
lda #<FMUL
ldx #>FMUL
- jmp _big_binary_op
+ bne _big_binary_op ; branch always
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; void __cdecl__ big_div(bignump dest, bignump a, bignump b);
_big_div:
lda #<FDIV
ldx #>FDIV
- jmp _big_binary_op
+ bne _big_binary_op ; branch always
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; void __fastcall__ big_trunc(bignump b);