1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-09 06:29:38 +00:00

fix math function wrappers for cbmkernal

This commit is contained in:
mrdudz 2022-11-17 19:12:27 +01:00
parent 04d058297b
commit 44c55513f5
3 changed files with 70 additions and 22 deletions

View File

@ -40,3 +40,27 @@
.export ftoslteax := ___cbmkernal_ftoslteax
.export ftosgeeax := ___cbmkernal_ftosgeeax
.export ftosleeax := ___cbmkernal_ftosleeax
.import ___cbmkernal_powf
.import ___cbmkernal_sinf
.import ___cbmkernal_cosf
.import ___cbmkernal_logf
.import ___cbmkernal_expf
.import ___cbmkernal_sqrtf
.import ___cbmkernal_tanf
.import ___cbmkernal_atanf
.import ___cbmkernal_fabsf
.import ___cbmkernal_roundf
.import ___cbmkernal_truncf
.export _powf := ___cbmkernal_powf
.export _sinf := ___cbmkernal_sinf
.export _cosf := ___cbmkernal_cosf
.export _logf := ___cbmkernal_logf
.export _expf := ___cbmkernal_expf
.export _sqrtf := ___cbmkernal_sqrtf
.export _tanf := ___cbmkernal_tanf
.export _atanf := ___cbmkernal_atanf
.export _fabsf := ___cbmkernal_fabsf
.export _roundf := ___cbmkernal_roundf
.export _truncf := ___cbmkernal_truncf

View File

@ -350,58 +350,58 @@ ___cbmkernal_ftosleeax:
.import __fround
.import __fint
.export _powf
_powf:
.export ___cbmkernal_powf
___cbmkernal_powf:
; arg0: a/x/sreg/sreg+1
; arg1: (sp),y (y=0..3)
jmp __fpow
.export _sinf
_sinf:
.export ___cbmkernal_sinf
___cbmkernal_sinf:
; arg0: a/x/sreg/sreg+1
jmp __fsin
.export _cosf
_cosf:
.export ___cbmkernal_cosf
___cbmkernal_cosf:
; arg0: a/x/sreg/sreg+1
jmp __fcos
.export _logf
_logf:
.export ___cbmkernal_logf
___cbmkernal_logf:
; arg0: a/x/sreg/sreg+1
jmp __flog
.export _expf
_expf:
.export ___cbmkernal_expf
___cbmkernal_expf:
; arg0: a/x/sreg/sreg+1
jmp __fexp
.export _sqrtf
_sqrtf:
.export ___cbmkernal_sqrtf
___cbmkernal_sqrtf:
; arg0: a/x/sreg/sreg+1
jmp __fsqr
.export _tanf
_tanf:
.export ___cbmkernal_tanf
___cbmkernal_tanf:
; arg0: a/x/sreg/sreg+1
jmp __ftan
.export _atanf
_atanf:
.export ___cbmkernal_atanf
___cbmkernal_atanf:
; arg0: a/x/sreg/sreg+1
jmp __fatn
.export _fabsf
_fabsf:
.export ___cbmkernal_fabsf
___cbmkernal_fabsf:
; arg0: a/x/sreg/sreg+1
jmp __fabs
.export _roundf
_roundf:
.export ___cbmkernal_roundf
___cbmkernal_roundf:
; arg0: a/x/sreg/sreg+1
jmp __fround
.export _truncf
_truncf:
.export ___cbmkernal_truncf
___cbmkernal_truncf:
; arg0: a/x/sreg/sreg+1
jmp __fint

View File

@ -40,3 +40,27 @@
.export ftoslteax := ___cbmkernal_ftoslteax
.export ftosgeeax := ___cbmkernal_ftosgeeax
.export ftosleeax := ___cbmkernal_ftosleeax
.import ___cbmkernal_powf
.import ___cbmkernal_sinf
.import ___cbmkernal_cosf
.import ___cbmkernal_logf
.import ___cbmkernal_expf
.import ___cbmkernal_sqrtf
.import ___cbmkernal_tanf
.import ___cbmkernal_atanf
.import ___cbmkernal_fabsf
.import ___cbmkernal_roundf
.import ___cbmkernal_truncf
.export _powf := ___cbmkernal_powf
.export _sinf := ___cbmkernal_sinf
.export _cosf := ___cbmkernal_cosf
.export _logf := ___cbmkernal_logf
.export _expf := ___cbmkernal_expf
.export _sqrtf := ___cbmkernal_sqrtf
.export _tanf := ___cbmkernal_tanf
.export _atanf := ___cbmkernal_atanf
.export _fabsf := ___cbmkernal_fabsf
.export _roundf := ___cbmkernal_roundf
.export _truncf := ___cbmkernal_truncf