|
|
| version 1.4, 2004/01/31 20:05:23 | version 1.5, 2004/03/19 00:30:01 |
|---|---|
| Line 1 | Line 1 |
| CODE SEGMENT | ORG 0 |
| ASSUME CS:CODE,DS:nothing,ES:nothing,SS:nothing | USE16 |
| ORG 0000H | CPU 8086 |
| FIXCS equ 2eh | FIXCS equ 2eh |
| segment .hddboot start=0x0000 | |
| START: jmp short main | START: jmp short main |
| nop | nop |
| nop | nop |
| db "IPL1", 0, 0, 0, 01eh | db "IPL1", 0, 0, 0, 0x1e |
| main: mov ax, 0a04h | main: mov ax, 0x0a04 |
| int 18h | int 0x18 |
| mov ah, 16h | mov ah, 0x16 |
| mov dx, 0e120h | mov dx, 0xe120 |
| int 18h | int 0x18 |
| cli | cli |
| cld | cld |
| mov ax, 0a000h | mov ax, 0xa000 |
| mov es, ax | mov es, ax |
| mov si, offset nosysmsg | mov si, nosysmsg |
| xor di, di | xor di, di |
| call putmsg | call putmsg |
| mov di, 160 | mov di, 160 |
| call putmsg | call putmsg |
| mine: hlt | .hlt: hlt |
| jmp short mine | jmp short .hlt |
| putmsg: db FIXCS | putmsg: db FIXCS |
| lodsw | lodsw |
| test ax, ax | test ax, ax |
| je short putmsgend | je short .end |
| stosw | stosw |
| inc di | inc di |
| inc di | inc di |
| jmp short putmsg | jmp short putmsg |
| putmsgend: ret | .end: ret |
| ; このハードディスクイメージはフォーマットされていません. | ; このハードディスクイメージはフォーマットされていません. |
| Line 49 nosysmsg dw 3304h,4e04h,4f05h,3c01h,4905 | Line 51 nosysmsg dw 3304h,4e04h,4f05h,3c01h,4905 |
| dw 7204h,5e21h,7e26h,6518h,2401h,6a05h,3b05h,4305h | dw 7204h,5e21h,7e26h,6518h,2401h,6a05h,3b05h,4305h |
| dw 4805h,3704h,4604h,3c12h,3504h,2404h,2501h,0 | dw 4805h,3704h,4604h,3c12h,3504h,2404h,2501h,0 |
| CODE ENDS | ends |
| END START | |