flat assembler
Message board for the users of flat assembler.

Index > OS Construction > fasm syntax help me

Author
Thread Post new topic Reply to topic
b1528932



Joined: 21 May 2010
Posts: 287
b1528932 31 Jan 2011, 22:03
how do i do this:

- make a output % 512 = 0 [ok]
db 20*20*20*512 - ($ - $$) dup 0

- make a bootsector [Ok]
org 0x7C00
db 510 - ($ - $$) dup 0
dw 0xAA55

- make a fu*&^%g data on the disk, but at arbitrary address:
org 0x1000
align 512
main:
jmp $


align 512
main_end:

doesnt work! How can i put my data after org 7c00 and still have $ - $$ work?
Post 31 Jan 2011, 22:03
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4353
Location: Now
edfed 31 Jan 2011, 22:07
times 512 db 0
Post 31 Jan 2011, 22:07
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 31 Jan 2011, 22:21
align will not place data in the file unless is has to.

http://board.flatassembler.net/topic.php?p=121067#121067
Post 31 Jan 2011, 22:21
View user's profile Send private message Visit poster's website Reply with quote
b1528932



Joined: 21 May 2010
Posts: 287
b1528932 31 Jan 2011, 22:22
here is what i did:
move my memory bellow padded hd, and expand up.
Post 31 Jan 2011, 22:22
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.