Running DOS application with a time shift?
Such a simple program can be created with a debug script. Place the
following lines in a file, past.txt in a directory of your choice. In a
DOS window, change to that directory and run
debug <past.txt >past.out
You can examine past.out with a text editor to make sure there were no
errors. (Shouldn't be any.)
The script will create a 70 byte file past.com that will enable your dos
sessions to live in the past.
a 100
jmp 11c
a104
push bp
push ax
pushf
cs:call far [100]
mov bp,sp
xchg ax,[bp]
cmp ah,2a
jne 119
sub cx,0a
pop ax
pop bp
iret
push ds
mov ax,0
mov ds,ax
cli
mov ax,[84]
cs:mov [100],ax
mov ax,[86]
cs:mov [102],ax
mov ax,104
mov [84],ax
mov ax,cs
mov [86],ax
sti
pop ds
mov dx,12
mov ax,3100
int 21
rcx
46
npast.com
w 100
q
|