gaf
User
 Platinum Osdever
| Posts: 153 |  | 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
|