PDA

View Full Version : Mixing basic and assembly



ManInMotion
- 23rd September 2008, 08:21
Hello,
Does anyone know if there's a way of accessing variables defined in basic from asm defined sections of the code?
Thanks in advance.

file.bas
W2 VAR WORD
B5 VAR W2.HIGHBYTE

ASM
;is there any way to access B5 or W2 from the ASM section of code
ENDASM

Ingvar
- 23rd September 2008, 09:48
underscore "_", it's in your manual. Section 8.2.