Example:
Code: Select all
EnableASM
Procedure.i GiveMeTheBiggerOne (a, b)
MOV eax, a
MOV ecx, b
CMP eax, ecx
JG ll_givemethebiggerone_skip ; you need to write this ...
;JG skip ; this would obviously be better
MOV eax, ecx
skip: ; ... when you want to jump here
ProcedureReturn
EndProcedure
Procedure.i GiveMeTheBiggerOne (a, b)
MOV eax, a
MOV ecx, b
CMP eax, ecx
!JG gmtbo_skip ; or you can do this, bypassing EnableASM just for this
MOV eax, ecx
!gmtbo_skip: ; same here
ProcedureReturn
EndProcedure
So labels inside inline asm would work as it is now, and inside EnableAsm would work like they work in BASIC (you use the high level label name and the code generated defines and call the actual low level asm label).