[comp.sys.ibm.pc.misc] loading

grossman@bbn.com (Martin Grossman) (02/20/91)

Here's a quick and dirty way to load andy's demo disk onto a 360K floppy.

1) get the demo file onto your hard disk from ftp.cs.vu.nl [192.31.231.42]
   pub/minix/demo  (This site is in Europe so ftp after 11 AM EST)
2) make sure their is a freshly DOS formatted 360K floppy in drive A
3) type "debug demo-dsk.ibm"
4) type following

rip<cr>
80<cr>

rsp<cr>
fe<cr>

a80<cr>

mov bx,100<cr>
mov cx,28<cr>
mov dx,0<cr>
push dx<cr>
push cx<cr>
push bx<cr>
mov ax,0<cr>
mov cx,12<cr>
int 26<cr>
pop bx<cr>
pop bx<cr>
pop cx<cr>
mov dx,ds<cr>
add dx,240<cr>
mov ds,dx<cr>
pop dx<cr>
add dx,12<cr>
loop 89<cr>
nop<cr>
nop<cr>
nop<cr>
<cr>

g,a6<cr>

4) comments:
	a) must move stack out of data area
	b) must have plenty of free memory (360K min)
	c) this uses the dos argument passing area for program and stack
	d) the extra "pop bx" is needed to remove the flags push on by
	   the int 26.
	e) the loop instruction goes back to the "push dx" line
	f) this program writes memory out to the floppy a track at a time.
	g) the program stops on one of the "nop" instructions.