Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
0000:1000 isnt the same address as 1000:0000, therefore your ORG directive is incorrect
In real mode, memory offsets are calculated as follows:
memory address = (segment value * 16) + offset
in your case thats (0x0000 * 16) + 0x1000 = 0x1000
so your ORG directive should read ORG 0x1000 instead of ORG 0x10000.
Also, try not to copy code blindly, if it goes awry you wouldnt know where to look
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Lprogster wrote:NOTE: Anyone looking at this most: Ive removed the code as it probably really sucked...
To be honest, it can be very useful to see other people's mistakes so they can avoid them. So for next time, leave your code in place so people can see what happened.
That is, until Chase comes in and complains about a full database
From what i remember you posted, A20 will be on in most cases, depending on hardware. You are most certainly in Protected Mode, otherwise the code wouldnt execute properly.
Thankyou very much Combuster for all the time you have spent helping me .
You're welcome.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]