Bona Fide OS Development
http://forums.osdever.net/

32-bit relative addressing
http://forums.osdever.net/viewtopic.php?f=7&t=874
Page 1 of 1

Author:  losethos [ Tue Jan 04, 2011 3:39 am ]
Post subject:  32-bit relative addressing

Since CALL and JMP instructions have 32-bit and not 64-bit relative addressing, I put all my code in the lowest 2 Gig. Data can be anything.

I wrote my own compiler. I could load RAX, followed by CALL RAX, but I don't like wasting so many bytes and it's just ugly.

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/