13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To summarize, the structure of the evaluation stack at the start of 6502execution looks like this:PROCEDUREreturn addr lo bytereturn addr hi byte(opt length byteand 0 byte)last param lo bytelast param hi byte-top of stacklowmemoryFUNCTIONreturn addr lo bytereturn addr hi byte0 byteObyteObyte0 byte(opt length byteand 0 byte)last param lo byte(opt length byteand 0 byte)first param lo bytelast param hi bytefirst param hi byteprevious stack contentshigh memory(opt length byteand 0 byte)first param lo bytefirst param hi byteprevious stack contentsCalling and Returning From 6502 RoutinesIII-147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!