Search found 2 matches
- Thu May 28, 2009 11:33 pm
- Forum: Beginning OS Development
- Topic: BootLoader 3
- Replies: 7
- Views: 34967
Re: BootLoader 3
Actually in CHS addressing cylinders start from 0 (http://en.wikipedia.org/wiki/Cylinder-head-sector), and Heads start from 0. Just tracks start from 1. In tutorial BootLoader 3, the code to read sector 2 from floppy is: .Read: mov ah, 0x02 ; function 2 mov al, 1 ; read 1 sector mov ch, 1 ; we are r...
- Thu May 28, 2009 1:18 am
- Forum: Beginning OS Development
- Topic: BootLoader 3
- Replies: 7
- Views: 34967
Re: BootLoader 3
Actually there is an error too on using int 0x13. Cylinders are numbered starting from 0 whereas sectors are numbered starting 1. This must be changed in the bootloaders tutorial too.