gnupic@linuxhacker.org
gnupic@linuxhacker.org
> 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 :-)
>
> -brad
I have not tested this code, but it is adapted from table code I had which
checked if the table was fully inside a page
GOTOIFPAGE MACRO size, gotoLabel
IF (High($) != High($+size))
goto gotoLabel
ENDIF
ENDM
gnupic@linuxhacker.org