Bochs - Real Mode int 13h extension support
Bochs - Real Mode int 13h extension support
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 ?
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Bochs - Real Mode int 13h extension support
ah=41 and ah=41h kindof makes a big difference
Re: Bochs - Real Mode int 13h extension support
Yes, it does
Hmm ... AX is 0xFFFF at the end ... shouldn't be like that ...
Code: Select all
movb $0x41, %ah
movb $0x80, %dl
movw $0x55AA, %bx
int $0x13
jnc 1f
movw $0xFFFF, %ax
1:
...
Re: Bochs - Real Mode int 13h extension support
Sorry, it's my fault ... I had no hdd set in bochs.conf ;
Re: Bochs - Real Mode int 13h extension support
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:
Where hdd.img is a 10GB hard image
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