Using runtime zeropage locations in assembly language

The runtime zeropage locations used by the compiler are declared in the assembler include file zeropage.inc.

Location Size Meaning Usage
sp 2 stack pointer access the parameter stack
tmp1..tmp4 1 ea. temporary value can be written to at any time (caller saved)
ptr1..ptr4 2 ea. pointer can be written to at any time (caller saved)
sreg 2 secondary register can be written to at any time (caller saved)
regsave 4 register save area can be written to at any time (caller saved)
regbank 6 register bank can be used only after saving (callee saved)
cc65/using_runtime_zeropage_locations_in_assembly_language.txt · Last modified: 2011-05-16 17:51 by ol.sc
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki