I'm using Acer Aspire 3690 series laptop with PhoenixBIOS.
During POST bios writes USB Flash Disk. In boot order section are USB HDD, USB FDD, USB KEY(?). My Flash Disk is recognized as USB Key. I don't know what it means. And I suppose that bios simulates my disk as HDD, because It can load a partitioned disk.
I don't know how many cylinders, heads and sectors my disk has. How can I know that? From partition table I know that 1st partition starts at cylinder 0, head 1, sector 1. Here is dump of partition table:
Code: Select all
00 00 00 00 00 00 00 00 00 00 00 00 00 00 80 01
01 00 06 40 E0 C7 20 00 00 00 E0 3B 1E 00 00 00
And here is the code of my bootsector:
Code: Select all
use16
org 0x7C00
boot: jmp near start
nop
start:
mov ax, 0x03
int 0x10
.reset_drive:
mov ah, 0
int 0x13
or ah, ah
jnz .reset_drive
mov ax, 0x7C00
mov es, ax
mov bx, 0x1000
mov ah, 0x02
mov al, 0x01
mov ch, 0x00 ; Cylinder = 0
mov cl, 0x01 ; Sector = 1
mov dh, 0x01 ; Head = 1
int 0x13
or ah, ah
jnz .reset_drive
jmp 0x0000:0x1000
jmp $
I'm replacing only first some bytes with my bootsector.
This code is loading to memory without any problems(it is working, displaying some text that I removed from code). But after that my pc hangs.
My bootsector in first partition only must display some text.
Please help me!!! I don't know what I need to do!