Code: Select all
Procedure Test()
EnableASM
jmp m1
m1:
EndProcedure
Code: Select all
Procedure Test()
EnableASM
jmp l_test_m1
m1:
EndProcedure
Code: Select all
Procedure Test()
EnableASM
jmp m1
m1:
EndProcedure
Code: Select all
Procedure Test()
EnableASM
jmp l_test_m1
m1:
EndProcedure
Code: Select all
Procedure Test()
EnableASM
jmp m1
!m1:
EndProcedure
Code: Select all
Procedure Test()
x=0
EnableASM
mov x, 10
DisableASM
Debug x
EndProcedure
Test()
The variable or label has to be declared first. In your example code declared the variable 'x' by using it before the assembler code, but the label was declared after the assembler code.User_Russian wrote:Test()[/code]Then why is he (ASM-syntax) is required in the case of the labels?
Obviously flaw, ASM preprocessor.
It does not matter.Demivec wrote:The variable or label has to be declared first.
Code: Select all
Procedure Test()
EnableASM
m1:
jmp m1
DisableASM
EndProcedure
Test()
You already know how to do it correctly, why are you confused? Are you trying to make a feature request instead of a bug report?User_Russian wrote:We have to explicitly specify the name of the label.Code: Select all
Procedure Test() EnableASM jmp l_test_m1 m1: EndProcedure
Code: Select all
mov x, 10
Code: Select all
mov dword [p.v_x], 10