Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

PowerBasic assembler

Started by Crupib, January 16, 2018, 12:48:30 PM

Previous topic - Next topic


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 i5 to work with the offset instruction