|
Post by VDC 8x2 on Jun 7, 2016 21:33:06 GMT
My idea for a data stack. high byte and low byte on two 256 byte stacks managed by 1 stack pointer.
PushD: ldx stackP //push .a and .y to our 2 byte stack dex sta lowStack,x tya sta highStack,x stx stackP rts PopD: ldx stackP //pop .a and .y from our 2 byte stack lda lowStack,x ldy highStack,x inx stx stackP rts
|
|
|
Post by mirkosoft on Jun 8, 2016 0:01:27 GMT
Nice idea!
|
|