Feb. 23rd, 2009

robocowboy: (Default)
Some low-level memory testing I'm running only works on DOS.... don't ask...

Well with testing comes the desire for automation, and I found a few missing pieces. For example, asking a machine booted into DOS to restart. Wow, it had been a while... I'd actually forgotten that DOS came with no reboot command. So I figured out how to write one.

C:\>debug.exe
n reboot.com
a 100
mov ah,0d
int 21
mov ax,0040
mov ds,ax
mov ax,1234
mov [72],ax
jmp FFFF:0000
r cx
14
w
q


Writes out a REBOOT.COM file that is actually a working executable and reboots the system when called.

Now I just need to figure out how to make the DOS partition "unbootable" so that it will default back to my other partition when it reboots and I can run a real scripting language to take care of the rest. There's no bless command in DOS...

Profile

robocowboy: (Default)
robocowboy

December 2014

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28 293031   

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 19th, 2017 10:18 pm
Powered by Dreamwidth Studios