flat assembler
Message board for the users of flat assembler.
Index
> Main > EQU= INCBIN QUOTE RAW help wanted |
Author |
|
comrade 10 Feb 2004, 04:31
EQU is text equate, and is substituted before assembly stage, so conditional ifs do not play a role. = is what you would use to define numerical constants, which can be worked with. INCBIN is "file" directive in FASM.
Code: mymusic file "tune.mod" defines data label "mymusic" with contents of file tune.mod |
|||
10 Feb 2004, 04:31 |
|
JohnFound 10 Feb 2004, 04:44
Bitdog wrote: Is EQU the same as = sign ? No, they are not equal. Actually in 99% of time you should use "=" to define numeric constants. "equ" defines not numeric but symbol constants at preprocessing time. Read the manual for details. Quote: When an EXE starts up: There are few directives that you can use with MZ format: segment - define segment entry - define entry point stack - sets up the stack size heap - sets up heap maximum size Refer in manual: "2.4.1 MZ executable" for details. And I am sure there was example in the DOS package. Quote: DOES Fasm have an INCBIN "filename.ext" Yes, it is "file" directive, I don't know what is NASM syntax of this, but "file" may include in raw form entire file or only part of it. Refer in manual: "1.2.2 Data definitions" for syntax description. Quote: DOES Fasm have a thingie like No, unfortunately. Maybe in some of next versions. Regards |
|||
10 Feb 2004, 04:44 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.