Hi,
In the "Mixing ASM and BASIC" help file, I have found this info:
Y is used as the SW stack pointer.
R4 and R5 are used to point to the stack frame or the temp data storage
R6 is used to store some bit variables:
R6 bit 0 = flag for integer/word conversion
R6 bit 1 = temp bit space used for swapping bits
R6 bit 2 = error bit (ERR variable)
R6 bit 3 = show/noshow flag when using INPUT statement
R8 and R9 are used as a data pointer for the READ statement.
All other registers are used depending on the used statements.
If I want to write an inline assembly using for example R24, X, R10, and R11, can I safely assume that these registers will not have to be pushed and popped on HW stack? At least my disassembly seems to suggest that this is the case in 2.0.7.6, but what is certain?
Is there a more complete listing of Bascom's conventions?
Can I generally assume that the "other registers" are typically used inside Bascom commands?
Grateful for any input. Thanks in advance.
Niclas
[b:0bf44933d3][color=red:0bf44933d3](BASCOM-AVR version : 2.0.7.6 )[/b:0bf44933d3][/color:0bf44933d3]
↧