Re: [cc65] ca65 bug [scanned]

From: Greg King <gngking1erols.com>
Date: 2006-08-15 06:03:13
From: Markus Stehr; on Sunday, August 13, 2006; at 07:07 AM -0400
>
>Am Sonntag, den 13.08.2006, 03:40 +0200 schrieb Groepaz:
> > .byte ((data_end-data_start)&255) ; len lsb
> > .byte ((data_end-data_start)+255)/256 ; len msb - num pages
>
> Shouldnt this work too:
> .word (data_end-data_start)

No, because there is a "+255" in the second line, and not in the first
line.  So, those two lines are storing pieces from two different 16-bit
numbers.  The first number is the actual size; the second one is augmented,
so that it counts the number of 256-byte RAM pages that have any of the
code anywhere in them.
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Aug 15 06:08:25 2006

This archive was generated by hypermail 2.1.8 : 2006-08-15 06:08:29 CEST