flat assembler
Message board for the users of flat assembler.
Index
> Main > Error: Invalid Value |
Author |
|
revolution 01 Nov 2011, 01:45
What is the size of SMIDDYOS.SYS? Is it greater than 2048 bytes?
You can use and here also: Code: times (2048-($-label)) and 0x7ff db 0 |
|||
01 Nov 2011, 01:45 |
|
smiddy 01 Nov 2011, 02:48
Yep, 61 KiB-ish.
So a similar thing to the last one, keeping the boundaries straight then, thanks I'll keep that in my mind from this point forward. |
|||
01 Nov 2011, 02:48 |
|
revolution 01 Nov 2011, 05:03
smiddy wrote: Yep, 61 KiB-ish. fasm sees -58952 as 0xFFFFFFFFFFFF19B8 |
|||
01 Nov 2011, 05:03 |
|
Madis731 01 Nov 2011, 06:21
@smiddy: You are trying to "Aligns Boot Record Volume Descriptor"
You just need to use align 2048 Code: SmiddyOS: file 'SMIDDYOS.SYS' align 2048 .End: ; depending where you want this .End to point |
|||
01 Nov 2011, 06:21 |
|
revolution 01 Nov 2011, 06:31
align generates byte values of 0x90. Not quite the same as db 0.
|
|||
01 Nov 2011, 06:31 |
|
smiddy 01 Nov 2011, 11:52
Madis731 wrote: @smiddy: You are trying to "Aligns Boot Record Volume Descriptor" For the file itself, to generate the right length of the file itself, the Code: .End: Code: (SmiddyOS.End - SmiddyOS) ; Generate the file length revolution: thanks, the slow learning curve is upon me. |
|||
01 Nov 2011, 11:52 |
|
Tomasz Grysztar 01 Nov 2011, 12:13
revolution wrote: align generates byte values of 0x90. Not quite the same as db 0. |
|||
01 Nov 2011, 12:13 |
|
smiddy 01 Nov 2011, 21:13
Thanks Mr. Grysztar! I'll leverage that for sure.
|
|||
01 Nov 2011, 21:13 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.