13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Here are some notes about handling the parameter values listed above:o All values are pushed onto the stack high byte first. Hence your 6502routine will pull each one off starting with its least significant byte.o When pointers are passed (strings, arrays, records, and all variableparameters), your routine must use indirect addressing to access thevariables they point to.o When long integers or sets are passed (as value parameters), the firstbyte your 6502 routine pulls off the stack gives the number of words ofstack occupied by the parameter. The next byte is 0. The succeedingbytes will contain the actual parameter value, least significant byte first.Ill-146Chapter 9: Assembly-Language Routines

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

Saved successfully!

Ooh no, something went wrong!