Re: [cc65] sizof zp registers

From: Greg King <greg.king41verizon.net>
Date: 2011-07-18 10:50:39
From: "Oliver Schmidt"; on Sun., July 17, 2011; at 02:53 PM -0400
>
>>> Where can I find the size for each of these registers:
>>>
>>> .importzp sp, sreg, regsave
>>> .importzp ptr1, ptr2, ptr3, ptr4
>>> .importzp tmp1, tmp2, tmp3, tmp4
>>> .importzp regbank
>>
>> They're defined in "libsrc/runtime/zeropage.s".
>
> There's even a Wiki page, by now:
>
>
http://wiki.cc65.org/doku.php?id=cc65:using_runtime_zeropage_locations_in_assembly_language

The "Usage" lines are wrong.  The callee always is responsible for
preserving any _important_ data in the locations that it borrows.

(I included the word "important" because a programmer might know, when
that called subroutine was written, that the old data won't be needed,
anymore, by any of the callers on any of the higher levels.)

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Jul 18 11:28:25 2011

This archive was generated by hypermail 2.1.8 : 2011-07-18 11:28:27 CEST