A83: Floating Point Stack


[Prev][Next][Index][Thread]

A83: Floating Point Stack




I have been working more on my math programs and I was wondering if anyone 
can help me with the Floating Point Stack.  I have the following:

#define FPmov(from,to)  ld hl,from
#define / ld de,to
#define / call FPmov_asm

FPmov_asm:
    ld bc,9
    ldir
    ret


and now I would like to be able to create an FPpush and an FPpop.  I know 
about _pushop1/_popop1 and would prefer not use them.  I really want it to 
pretty much be like this:
   FPpush(var)     ;var is pushed onto the stack;
   FPpop(var)      ;the next piece of the stack it popped into var

If you can help, I'll appreciate it.

Ted


Follow-Ups: