I am trying to do the following in power basic using the inline assembler:
create an assembler block
asmdata tof
dd 0000000
end asmdata
the following instruction fails
mov dl, [ebx+tof]
I tried numerous things including codeptr(tof) nothing seems to work.
I get Error 427 Integer constant expedted.
A defined constant works, but it does not help me.
I need to line up with the asm block and increment using ebx.
Any ideas?
I am not sure what you are doing but try this.
! mov ecx, tof
! mov dl, BYTE PTR [eax+ecx]
Thanks I was able to get it to work with the offset instruction