News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

PowerBasic assembler

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

Previous topic - Next topic

Crupib

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?


hutch--

I am not sure what you are doing but try this.


! mov ecx, tof
! mov dl, BYTE PTR [eax+ecx]

Crupib

#2
Thanks I was able to get it to work with the offset instruction