![]() |
:
; This is a commentI was looking at someone elses code, and right above printstring there is a jmp 0x1000:0x00. Why is it jumping there? Here's the site: http://www.groovyweb.uklinux.net/index.php...your%20own%20os |
>Why is it jumping there?
The key is here (especially the comment): :
mov bx,0x1000 ;Es and Bx put together are where to load the program too (see jmp 0x1000:0x00) |
Ahh. I feel dumb now. Don't know how I missed the comment. Thanks for the help. That made it clearer.
|
Back in the old say, before windows when writing a program the first executable location in memory was segment 0x1000 offset 0x0000 is I recall correctly, and I believe that is what the program comment was explaining.
|
| All times are GMT -5. The time now is 2:05 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC