--- np2/romimage/ITF.ASM 2003/12/27 11:55:23 1.2 +++ np2/romimage/ITF.ASM 2004/01/28 23:36:13 1.4 @@ -68,11 +68,9 @@ key1cklp: call boot_keycheck ; jmp ssp_start - cmp byte ptr ds:[MACTYPE], 0 - jne short key2ck call BEEP_TEST -key2ck: mov ah, 32 + mov ah, 32 key2cklp: call boot_keycheck cmp al, BOOT_MENU je short boot_menujmp @@ -128,8 +126,21 @@ necmemchk: add bx, bx retbioswait: mov ah, 90 call WAITVSYNC - clc - jmp exitprocess +exitprocess: cli + pushf +ifdef DEBUG_TERM + DEBUG_TERM +endif + KEYINT_TERM + call SCREEN_CLEAR + mov di, int09off + 8000h + mov cx, (DATASEGEND - int09off) / 2 + xor ax, ax + rep stosw + popf + ITF_EXIT + + include resource.x86 include itfsub.x86 @@ -320,21 +331,15 @@ curitemputs: or dl, 80h ; --------------------------------------------------------------------------- -REBOOT_PROCESS: stc - -exitprocess: cli - pushf -ifdef DEBUG_TERM - DEBUG_TERM +REBOOT_PROCESS: +ifdef NP2 + cli + mov si, offset np2str_hwreset + call sendnp2port +hltlp: hlt + jmp short hltlp endif - KEYINT_TERM - call SCREEN_CLEAR - mov di, int09off + 8000h - mov cx, (DATASEGEND - int09off) / 2 - xor ax, ax - rep stosw - popf - ITF_EXIT + jmp exitprocess CODE ENDS END START