REM From PC Mag, Vol11 Number 5DECLARE SUB ReBoot (Warm%)
CALL ReBoot(1) 'be sure to save this program before running it!SUB ReBoot (Warm%) STATICIF Warm%THEN'if they want a warm bootDEF SEG=0'assign the value 1234 HexPOKE&H473, &H12 'to address 0000:0473 HexPOKE&H472, &H34
ENDIFDEF SEG=&HFFFF 'either way call the BIOSCALL Absolute(0) 'routine at FFFF:0000 HexENDSUB
Assembly
To use these “scripts” cut&paste the source into a file, then issue the
following command “debug < cldboot.scr”.
CLDBoot.scr
A 0100
MOV AX,40
MOV DS,AX
JMP FFFF:0000
N CLDBOOT.COM
RCX
10
W
Q
WRMBoot.scr
A 0100
MOV AX,40
MOV DS,AX
MOV WORD PTR [72],1234
JMP FFFF:0000
N REBOOT.COM
RCX
10
W
Q