flat assembler
Message board for the users of flat assembler.
  
|  Index
      > Main > using equ in FASM | 
| Author | 
 | 
| DOS386 29 Jul 2007, 18:00 > I'm new to FASM, (from NASM)
 Make sure to avoid (just remove them) offending BYTE's: Code: CMP EAX, BYTE 3   Code: format binary use16 org 100h Label: mov bx,var var equ 1 > ...it give me this error... It's correct   > Is there a way to use "var equ 1" after "mov bx,var" in FASM? NO. EQU works at preprocess level   Code: format binary use16 org 100h Label: mov bx,var ... ret var: db 0,0 WOW: was faster than Loco  _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug Last edited by DOS386 on 29 Jul 2007, 18:03; edited 2 times in total | |||
|  29 Jul 2007, 18:00 | 
 | 
| LocoDelAssembly 29 Jul 2007, 18:01 No, but you can use "=" instead which is an assembly time variable and can be forward referenced (if you assing a value to it only once).
 Read the manual before getting deeper because fasm isn't just a NASM written in assembly. | |||
|  29 Jul 2007, 18:01 | 
 | 
| rCX 29 Jul 2007, 18:27 Thanks it works! I'll make sure I read the whole manual   | |||
|  29 Jul 2007, 18:27 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.