[stella] Question about DASM
mathys66 at bluewin.ch
mathys66 at bluewin.ch
Fri Mar 28 03:29:50 CDT 2008
It's using the wrong argument for the fill value. If you assemble the piece of code below you'll find that the memory
is filled with 0x17 (=23), which is the alignment value. That's why you're seeing all zeroes inserted when you align to
a 256 byte boundary - the fill value is in this case 256 & 255 == 0.
processor 6502
seg code
org 0
tax
align 23,-1
tax
Cheers
Thomas
----Ursprüngliche Nachricht----
Von: seagtgruff at aol.com
Datum: 28.03.2008 01:58
An: <stella at atari2600.org>
Betreff: Re: [stella] Question about DASM
It still puts $00. The documentation says it should fill with the specified value, but it flat-out doesn't work.
Michael
-----Original Message-----
From: "=?ISO-8859-1?Q?"Peter_H._Fr=F6hlich"?= <phf"@cs.jhu.edu>
To: Atari 2600 programming list <stella at atari2600.org>
Sent: Thu, 27 Mar 2008 8:43 pm
Subject: Re: [stella] Question about DASM
Hi all,
On Mar 27, 2008, at 7:18 PM, Dennis Debro wrote:
> Am I using align incorrect? In my code I have...
>
> align 256, -1
>
> Shouldn't this go to the next page and fill the bytes between with
> $FF?
> Instead it's filling the bytes between with $00.
What happens if you say
align 256, 255
instead?
Cheers,
Peter
_______________________________________________
Stella mailing list
Stella at atari2600.org
http://atari2600.org/mailman/listinfo/stella
_______________________________________________
Stella mailing list
Stella at atari2600.org
http://atari2600.org/mailman/listinfo/stella
More information about the Stella
mailing list