gnupic@linuxhacker.org
gnupic@linuxhacker.org
On Fri, Oct 24, 2003 at 03:20:44PM -0400, Brad Parker wrote:
> 2. is there an asm directive which says "make sure the next 10 instructions
> are on the same page else move "." to the next page? (for obvious reasons).
> something like
> org ($ & 0xff00) + 0x100
> is just too harsh :-)
I haven't found a directive, but I have a favourite macro. It uses bit
shifting instead of masking. If you change the alignment value you must
change it in three places instead of two in yours. ;-}
align macro
org (($>>2)<<2)+4 ; align to four byte boundary
endm
I use it merely to speed programming. The programmer I'm using, prog84,
avoids reprogramming cells that are already "correct".
--
James Cameron mailto:quozl@us.netrek.org http://quozl.netrek.org/
gnupic@linuxhacker.org