Bona Fide OS Developer
View unanswered posts | View active topics It is currently Mon Mar 18, 2024 10:49 pm



Post new topic Reply to topic  [ 1 post ] 
 32-bit relative addressing 
Author Message

Joined: Fri Aug 20, 2010 10:04 pm
Posts: 41
Post 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.


Tue Jan 04, 2011 3:39 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin and tweaked by the BF Team.