Home arrow Forums
OSDEV Forums  


gaf
User

Platinum Osdever
Posts: 153
graph
Karma: 10  
Re:looking for optimized asm - 2006/04/13 09:00 Hello,
if this is meant to be a bootsector for a floppy disk, you can assume standard values for the number of sectors/heads/tracks as disk size and geometry is always the same. By inserting these concrete numbers into your equation the code should get much simpler.

For an example you might have a look at John Fine's bootsector. Read32 in Boot12.asm does exactly what you are looking for..

regards,
gaf
  | | The administrator has disabled public write access.
OSDEV
Community
Advertisement
   

      Topics Author Date
    thread link
looking for optimized asm
bradbobak 2006/04/13 02:23
    thread link
thread linkthread link Re:looking for optimized asm
gaf 2006/04/13 09:00

A WebArticles site. Sponsored by Evoleto. Motorola V525 / Business Directory / Delaware Incorporation / Home Made Bazaar