Assembler data

New to FreeBASIC? Post your questions here.
Post Reply
Juergen Kuehlwein
Posts: 284
Joined: Mar 07, 2018 13:59
Location: Germany

Assembler data

Post by Juergen Kuehlwein »

I need help with assembler syntax.

Please could somebody tell me, what is the FreeBASIC syntax for MASM: DB, DW, DD, DQ, DT, DDQ, and DO (as far as available in FreeBASIC).

"asm db 1" throws a compiler error, so how to code it (what is the correct syntax for this/these) ?


Thanks,

JK
deltarho[1859]
Posts: 4305
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: Assembler data

Post by deltarho[1859] »

Gas Common Directives

eg

Code: Select all

Dim As UByte testvar

Asm
  jmp here
label:
  .byte 1
here:
  lea eax, label
  mov eax, [eax]
 mov Dword Ptr [testvar], eax
End Asm

Print testvar

Sleep
Juergen Kuehlwein
Posts: 284
Joined: Mar 07, 2018 13:59
Location: Germany

Re: Assembler data

Post by Juergen Kuehlwein »

Thanks!
Post Reply