flat assembler
Message board for the users of flat assembler.

Index > OS Construction > segments

Author
Thread Post new topic Reply to topic
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 04 Jun 2009, 21:31
my os is in real mode, everything is only up to ffffh thats it (0xffff)
i see how the whole 0000:0000 thing works (not all though)
i have yet to find out wha happens if

a file is loaded at 2000:0300
now what happens when i load something at 3000:0300 will it over write :0300
in the last load or will the 3000: be erased, what happens?

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 04 Jun 2009, 21:31
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4042
Location: vpcmpistri
bitRAKE 05 Jun 2009, 02:45
SEG:OFF can be converted to a linear address with SEG * 16 + OFF. So, 2000:0300 would be a linear address of $20300. 3000:0300 would be a linear address of $30300. Therefor, if the file loaded at 2000:0300 was over $10000 bytes then the following load at address 3000:0300 would over write a portion of the file.
Post 05 Jun 2009, 02:45
View user's profile Send private message Visit poster's website Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 05 Jun 2009, 08:14
thanks for the info

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 05 Jun 2009, 08:14
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.