title Module from library HIFLOAT_2 : LBOP1 name ('LBOP1') maclib baselib.lib ; Interface the stack oriented routines to address ; referrenced calls ; Copyright (C) Werner Cirsovius ; Hohe Weide 44 ; D-20253 Hamburg ; Tel.: +49-40-4223247 ; Version 1.0 January 1989 ; ENTRY Reg pair BC points to number and ; reg pair HL points to result ; Reg IX holds one operand routine address ; EXIT Result filled with requested operation ; Carry set on math error entry @oper1 ext flperr @oper1: ld (LINK+1),ix ; Set routine push hl ; Save result pointer push bc pop ix ld h,(ix+0) ; Load number ld l,(ix+1) ld e,(ix+2) ld d,(ix+3) LINK: call $-$ ; Execute routine pop ix ld (ix+0),h ; Save result ld (ix+1),l ld (ix+2),e ld (ix+3),d ld a,(flperr) ; Get error rra ret end