gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: Re: two dump questions (18F485)
From: Eugene Rosenzweig
Date: Sun, 26 Oct 2003 01:12:01 +1100

> 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