OSをつくろうpart2
■ このスレッドは過去ログ倉庫に格納されています
0696ひげぽん
NGNGmov ax, 1000h
mov es, ax ; es:bx is
mov bx, 0 ; data buffer
mov ah, 02h ; read sectors into memory
mov al, 5 ; number of sectors to read
mov ch, 0 ; low eight bits of cylinder number
mov cl, 2 ; sector number
mov dh, 0 ; head number
mov dl, 0 ; drive number
int 13h ; read!
jc read
jmp 1000h:0000 ; jump to the secondboot
forever:
jmp forever
times 510-($-$$) db 0
dw 0AA55h
■ このスレッドは過去ログ倉庫に格納されています