--- np2/romimage/HDDBOOT.ASM 2003/12/10 13:15:18 1.1 +++ np2/romimage/HDDBOOT.ASM 2003/12/10 14:56:17 1.2 @@ -1,25 +1,21 @@ .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 +START: mov cx, 1000h mov bx, 8000h - mov ss, ax + mov ss, cx mov sp, bx + add bh, 20h + mov es, bx - mov ax, cs - mov ds, ax - mov ax, 0a000h - mov es, ax - - mov cx, 1000h - mov ax, 0020h xor di, di cld + lea ax, [di + 20h] rep stosw mov al, 0e1h mov cx, 1fe0h @@ -32,14 +28,17 @@ atrclr: stosb call putmsg mov di, 160 call putmsg -mine: jmp mine +mine: cli + hlt + jmp 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 +54,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