;
;	>>> SillyPack - Munching Mandy by JAC! <<<
;
;	Creates an XEX file from the DOS3 executable.
;	The DOS3 executable was rescued using COPY32.COM.
;	Heaven knows where the run address comes from (apart from "ba w $2e0").
;
;	@com.wudsn.ide.asm.outputfile=MUNCHING.xex

	opt h+
	org $2000
	.byte 'Munching Mandy -  DOS compatible XEX version by JAC! on 2014-03-03',$9b

	opt h-

	.get "MUNCHING-DOS3.XEX"
	.put [$1b33] = 1		;Force cold start as this will kill DOS
	.sav [0] $1b86

	opt h+
	run $7600


;7600: A9 00             LDA #$00
;7602: 85 80             STA $80
;7604: 85 82             STA $82
;7606: A9 5B             LDA #$5B
;7608: 85 81             STA $81
;760A: A9 0B             LDA #$0B
;760C: 85 83             STA $83
;760E: A0 00             LDY #$00
;7610: B1 80     L7610   LDA ($80),Y
;7612: 91 82             STA ($82),Y
;7614: C8                INY
;7615: D0 F9             BNE $7610
;7617: E6 81             INC $81
;7619: E6 83             INC $83
;761B: A5 81             LDA $81
;761D: C9 76             CMP #$76
;761F: D0 EF             BNE $7610
;7621: 20 B0 25          JSR $25B0
;7624: A9 34             LDA #$34
;7626: 85 0C             STA DOSINI
;7628: A9 76             LDA #$76
;762A: 85 0D             STA DOSINI+1
;762C: A9 00             LDA #$00	;Modified by put
;762E: 8D 44 02          STA COLDST
;7631: 6C 0A 00          JMP (DOSVEC)
;7634: 18                CLC
;7635: 60                RTS
