flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Passing execution to the bootsector in sector 3 fails |
Author |
|
zhak 03 Jun 2014, 17:26
looks like you're trying to read from the 1st head (mov dh, 1). heads and cylinders count from 0, only sectors count from 1.
|
|||
03 Jun 2014, 17:26 |
|
plaster90 03 Jun 2014, 18:58
yeh its something like this:
ORG 0x7C00 main: mov ax,0x0000 mov ds,ax mov ax,8000h mov es,ax mov ax,0201h mov ch,0 mov cl,1 mov dh,0 mov dl,80h xor bx,bx int 13h jmp 8000h:0000h but still dosn't work..... |
|||
03 Jun 2014, 18:58 |
|
BAiC 04 Jun 2014, 00:03
perhaps it's not disk 0x80? the BIOS loads DL with a code for the current boot disk. this code is specific to how many discs you have and their order.
|
|||
04 Jun 2014, 00:03 |
|
baldr 04 Jun 2014, 03:48
plaster90,
Perhaps MBR you're loading expects to find itself somewhere around 0:7C00? Moreover, in your last example (can you use [code] tags?) you're trying to load sector from 0/0/1. |
|||
04 Jun 2014, 03:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.