RE: A83: Floating Point Stack
[Prev][Next][Index][Thread]
RE: A83: Floating Point Stack
Hi!
Try the folowing code.. (I didn't test it, so i dont know if it works)
It uses the same stack-space as where the registers are pushed to/poped
from...
(I'm not sure if there is a limmit to the space you can use)
; hl=from
FPpush_asm:
	ex de,hl
	xor a
	ld h,a
	ld l,a
	add hl,sp
	ex de,hl
	ld bc,9
	add hl,bc
	lddr
	ex de,hl
	ld sp,hl
	ret
;de=to
FPpop_asm:
	xor a
	ld h,a
	ld l,a
	add hl,sp
	ld bc,9
	ex de,hl
	add hl,bc
	ex de,hl
	lddr
	ld sp,hl
	ret
Grtx,
Sebastiaan Roodenburg
sebastiaan@rimsystems.nl
- Warning
 
- Could not process part with given Content-Type: 
application/ms-tnef 
 
Follow-Ups: