flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
crc 23 Jun 2004, 10:53
Quote:
What about this: Code: org 7c00h . . . . Some code . . . . times (7c00h+510)-$ db 0 db 0AA55h It will fail to compile if the boot sector code is >510 bytes, but otherwise works perfectly. |
|||
![]() |
|
neonz 26 Jun 2004, 20:31
I'm using:
Code: org 7C00h . . . . some code . . . . rb 7C00h+512-2-$ dw 0AA55h |
|||
![]() |
|
crc 27 Jun 2004, 00:43
Quote:
Why the 512-2? Wouldn't the following code also work? Code: org 7C00h . . . . some code . . . . rb 7C00h+510-$ dw 0AA55h |
|||
![]() |
|
JohnFound 27 Jun 2004, 06:58
Also, if you make the one more step to the simplification:
Code: org 7C00h . . . . some code . . . . rb 7DFEh-$ dw 0AA55h |
|||
![]() |
|
neonz 27 Jun 2004, 13:19
crc wrote: Why the 512-2? Wouldn't the following code also work? 512-2 looks better IMHO ![]() Yes, theoretically it slows down compile time ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.