<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Reboot :: Tag :: JP&#39;s Domain</title>
    <link>https://www.jpsdomain.org/tags/reboot/index.html</link>
    <description></description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="https://www.jpsdomain.org/tags/reboot/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Reboot Source Code</title>
      <link>https://www.jpsdomain.org/source/rebt-src/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://www.jpsdomain.org/source/rebt-src/index.html</guid>
      <description>Source Source Code for programs that reboot your PC. I plan to move this to https://github.com/vossenjp/ at some point…&#xA;Reboot.c #define MAGIC 0 /* for cold restart */ /* #define MAGIC 0x1234 /* for warm restart */ #define BOOT_SEG 0xffffL #define BOOT_OFF 0x0000L #define BOOT_ADR ((BOOT_SEG &lt;&lt; 16) | BOOT_OFF) #define DOS_SEG 0x0040L #define RESET_FLAG 0x0072L #define RESET_ADR ((DOS_SEG &lt;&lt; 16) | RESET_FLAG) main() { void ((far *fp)()) = (void (far *)()) BOOT_ADR; *(int far *)RESET_ADR = MAGIC; (*fp)(); return 0; /* never gets here, but keeps compiler happy */ } Reboot.bas REM From PC Mag, Vol11 Number 5 DECLARE SUB ReBoot (Warm%) CALL ReBoot(1) &#39;be sure to save this program before running it! SUB ReBoot (Warm%) STATIC IF Warm% THEN &#39;if they want a warm boot DEF SEG = 0 &#39;assign the value 1234 Hex POKE &amp;H473, &amp;H12 &#39;to address 0000:0473 Hex POKE &amp;H472, &amp;H34 END IF DEF SEG = &amp;HFFFF &#39;either way call the BIOS CALL Absolute(0) &#39;routine at FFFF:0000 Hex END SUB Assembly To use these “scripts” cut&amp;paste the source into a file, then issue the following command “debug &lt; cldboot.scr”.</description>
    </item>
  </channel>
</rss>