Page 1 of 1
Bochs - Real Mode int 13h extension support
Posted: Mon Jun 30, 2008 8:19 am
by deph
Can anyone explain why Bochs sets CF 1 when I use int 13h, ah = 41 on dl=0x80 (hdd) ... Yes, I know - it says it does not support extensions ... but WHY ?! shouldn't it ?
Re: Bochs - Real Mode int 13h extension support
Posted: Mon Jun 30, 2008 9:00 am
by Combuster
ah=41 and ah=41h kindof makes a big difference
Re: Bochs - Real Mode int 13h extension support
Posted: Mon Jun 30, 2008 9:48 am
by deph
Yes, it does
Code: Select all
movb $0x41, %ah
movb $0x80, %dl
movw $0x55AA, %bx
int $0x13
jnc 1f
movw $0xFFFF, %ax
1:
...
Hmm ... AX is 0xFFFF at the end ... shouldn't be like that ...
Re: Bochs - Real Mode int 13h extension support
Posted: Mon Jun 30, 2008 10:57 am
by deph
Sorry, it's my fault ...
I had no hdd set in bochs.conf ;
Re: Bochs - Real Mode int 13h extension support
Posted: Tue Jul 01, 2008 4:29 am
by deph
Ok, now I created a disk image, and after calling int 0x13 ah=0x41 result is CF=0, AH=0x30 (i think it's the major version number ... ?); but now when I call int 0x13 with AH=0x48, it sets CF=1 (...and AH=0x01 !) ... Does anyone have an idea why ?
From bochs.conf:
Code: Select all
ata0: enabled=1, ioaddr1=0x1F0, ioaddr2=0x3F0, irq=14
ata0-master: type=disk, path="./hdd.img", mode=flat, cylinders=20805, heads=16, spt=63, translation=lba
Where hdd.img is a 10GB hard image