Skip navbar

File 11_arithmentic.asm


Function summary
add_back
           add back
ca_10a_plus_c
           CA = 10 * A + C
fetch_two
           fetch two numbers
fp_addition
           addition
fp_division
           division
fp_e_to_fp
           E-format to floating point
fp_multiply
           multiplication
fp_re_stack
           restack
fp_subtract
           subtraction
fp_to_a
           floating point to A
fp_to_bc
           floating point to BC
fp_to_bcde
           floating point to BCDE (32-bit integer) FIXME: numbers above 2^32 − 1 are not trapped
fp_truncate
           integer truncation towards zero
hl_hl_x_de
           HL = HL * DE
int_fetch
           integer fetch
int_store
           integer store
log_2_a
           log (2^A)
prep_add
           prepare to add
prep_m_d
           prepare to multiply or divide
print_fp
           print a floating-point number
re_st_two
           restack two
shift_fp
           shift addend

Function detail

add_back

add back

ca_10a_plus_c

CA = 10 * A + C

fetch_two

fetch two numbers

fp_addition

addition

fp_division

division

fp_e_to_fp

E-format to floating point

fp_multiply

multiplication

fp_re_stack

restack

fp_subtract

subtraction

fp_to_a

floating point to A

fp_to_bc

floating point to BC

fp_to_bcde

floating point to BCDE (32-bit integer) FIXME: numbers above 2^32 − 1 are not trapped

fp_truncate

integer truncation towards zero

hl_hl_x_de

HL = HL * DE

int_fetch

integer fetch

int_store

integer store

log_2_a

log (2^A)

prep_add

prepare to add

prep_m_d

prepare to multiply or divide

print_fp

print a floating-point number

re_st_two

restack two

shift_fp

shift addend


Skip navbar