--- np2/romimage/HDDBOOT.ASM 2003/12/10 13:15:18 1.1 +++ np2/romimage/HDDBOOT.ASM 2004/01/31 20:05:23 1.4 @@ -1,45 +1,39 @@ -.186 CODE SEGMENT - ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE + ASSUME CS:CODE,DS:nothing,ES:nothing,SS:nothing ORG 0000H FIXCS equ 2eh -START: mov ax, 1000h - mov bx, 8000h - mov ss, ax - mov sp, bx - - mov ax, cs - mov ds, ax +START: jmp short main + nop + nop + db "IPL1", 0, 0, 0, 01eh + +main: mov ax, 0a04h + int 18h + mov ah, 16h + mov dx, 0e120h + int 18h + cli + cld mov ax, 0a000h mov es, ax - - mov cx, 1000h - mov ax, 0020h - xor di, di - cld - rep stosw - mov al, 0e1h - mov cx, 1fe0h -atrclr: stosb - inc di - loop atrclr - mov si, offset nosysmsg xor di, di call putmsg mov di, 160 call putmsg -mine: jmp mine +mine: hlt + jmp short mine putmsg: db FIXCS lodsw test ax, ax je short putmsgend stosw - add di, 2 + inc di + inc di jmp short putmsg putmsgend: ret @@ -55,6 +49,6 @@ nosysmsg dw 3304h,4e04h,4f05h,3c01h,4905 dw 7204h,5e21h,7e26h,6518h,2401h,6a05h,3b05h,4305h dw 4805h,3704h,4604h,3c12h,3504h,2404h,2501h,0 -CODE ENDS +CODE ENDS END START