From 4af1412a9282e8f2c604d8c40d9a910d7563be36 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 25 Mar 2021 15:35:48 -0400 Subject: Save 6 bytes --- bigfloat.s | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bigfloat.s') diff --git a/bigfloat.s b/bigfloat.s index 2d30855..c861618 100644 --- a/bigfloat.s +++ b/bigfloat.s @@ -138,6 +138,13 @@ _big_copy: stx FLPTR+1 jmp FST0P ; store FR0 value into dest +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; void __cdecl__ big_add(bignump dest, bignump a, bignump b); +_big_add: + lda #FADD + ; fall through to _big_binary_op + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; void __fastcall__ big_binary_op(bignump dest, bignump a, bignump b, unsigned int jsraddr); _big_binary_op: @@ -172,33 +179,26 @@ _big_binary_op: stx FLPTR+1 jmp FST0P -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -; void __cdecl__ big_add(bignump dest, bignump a, bignump b); -_big_add: - lda #FADD - jmp _big_binary_op - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; void __cdecl__ big_sub(bignump dest, bignump a, bignump b); _big_sub: lda #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 - jmp _big_binary_op + bne _big_binary_op ; branch always ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; void __cdecl__ big_div(bignump dest, bignump a, bignump b); _big_div: lda #FDIV - jmp _big_binary_op + bne _big_binary_op ; branch always ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; void __fastcall__ big_trunc(bignump b); -- cgit v1.2.3