Category : C Source Code
Archive   : JAZLIB.ZIP
Filename : JZREBOOT.ASM
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³jzreboot.asm ³
³Reboot an IBM PC or compatible. ³
³synopsis ³
³ jzreboot(1) | jzreboot(0) where 1 means cold boot and 0 means warm boot ³
³ ³
³ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
*
bios segment at 0f000h
org 0fff0h
reset label far
bios ends
assume cs:_text
_text segment public byte 'code'
public _jzreboot
_jzreboot proc near
mov bp,sp ; don't need to save registers here !!!!!
mov ax,[bp+2] ; get boot type
cmp ax,1 ; cold boot request?
jz _jzreboot1
mov ax,40h ; setting location 0x40:0x72 = 1234h
mov si,72h ; makes bios thing that ctrl-alt-delete was
mov ds,ax ; pressed !!!!
mov [si],1234h
_jzreboot1:
assume cs:bios
jmp reset
_jzreboot endp
_text ends
end
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/