flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Error on my ASM code |
Author |
|
LocoDelAssembly 08 Jan 2010, 00:34
I had to made the following modifications to make the error stop in fasm:
Code: ; Multiboot macros to make a few lines later more readable MULTIBOOT_PAGE_ALIGN equ (1 shl 0) MULTIBOOT_MEMORY_INFO equ (1 shl 1) MULTIBOOT_AOUT_KLUDGE equ (1 shl 16) MULTIBOOT_HEADER_MAGIC equ 0x1BADB002 MULTIBOOT_HEADER_FLAGS equ MULTIBOOT_PAGE_ALIGN or MULTIBOOT_MEMORY_INFO or MULTIBOOT_AOUT_KLUDGE MULTIBOOT_CHECKSUM equ -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_HEADER_FLAGS) In your assembler probably will be enough to add parentheses in the first three constants. PS: Well it turns out that the parentheses were not needed in fasm to make it work but yet you add them always for EQUs when them are calculations rather than simple numbers to avoid undesired effects. |
|||
08 Jan 2010, 00:34 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.