Hi again Charles,
Glad you got it working, and ...
it is OK to put your assembly-local variables in "not bankA"
In this code, V24 could be located in any bank, and you don't know where it is.
CHK?RP will switch to the proper bank for you. Then it's the same as if it were in BANKA.
Code:V24 VAR BYTE[3] ; 24-bit variable ASM ; 24-bit counter CHK?RP _V24 incfsz _V24, F goto NoCarry incfsz _V24 + 1, F goto NoCarry incfsz _V24 + 2, F NoCarry ENDASM
Bookmarks