table 	equ $DA4
patch1	equ rom+$52AA
patch2	equ rom+$BB2;	memvalid
patch3	equ rom+$526A;	getbpb
patch4	equ rom+$131E;	_scrdmp
patch5	equ rom+$B9A;	RTS
patch6	equ rom+$147A
patch7	equ rom+$D1C;	RTE
patch8	equ rom+$10E2
patch9	equ rom+$C06
patch10	equ rom+$693E
patch11	equ rom+$D3A
patch12	equ rom+$F30
patch13	equ rom+$2206;	initmfp
patch14	equ rom+$978
patch15	equ rom+$7354
patch16	equ rom+$72CA
patch17	equ rom+$15006;	_setup
patch18	equ rom+$1A96
patch19	equ rom+$962
patch20	equ rom+$1408
patch21	equ rom+$11F8
patch22	equ rom+$95D;	NULL
patch23	equ patch22-20;	COMMAND
patch24	equ patch22-32;	PATH
patch25	equ rom+$1132;	_bombs
patch26	equ rom+$36CA;	timercint+
patch27	equ rom+$3044
_BCONSTAT	equ rom+$EE2
_BCONIN		equ rom+$EEA
_BCONOUT	equ rom+$EFA
_BCOSTAT	equ rom+$EF2
patch28	equ rom+$5B06;	chksum

BIOS	equ rom+table
XBIOS	equ BIOS+2+12*4
ENTRY	macro
	dc.l offset+\1*4
	dc.w \2>>16
	dc.l offset+\1*4+1
	dc.w \2>>8&$ff
	dc.l offset+\1*4+2
	dc.w \2&$ff
	endm

offset	set table+3
	ENTRY 1,BCONSTAT
	ENTRY 2,BCONIN
	ENTRY 3,BCONOUT
	ENTRY 8,BCOSTAT
offset	set table+3+12*4+2
	ENTRY 0,INITMOUSE
	ENTRY 4,GETREZ
	ENTRY 5,SETSCREEN
	ENTRY 8,FLOPRD
	ENTRY 9,FLOPWR
	ENTRY 10,FLOPFMT
	ENTRY 12,DUMMY
	ENTRY 13,DUMMY
	ENTRY 15,DUMMY
	ENTRY 22,SETTIME
	ENTRY 23,GETTIME
	ENTRY 25,DUMMY
	ENTRY 26,DUMMY
	ENTRY 27,DUMMY
	ENTRY 28,GIACCESS
	ENTRY 29,OFFGIBIT
	ENTRY 30,ONGIBIT
	ENTRY 31,DUMMY
	ENTRY 32,DOSOUND
	ENTRY 40,DUMMY
offset	set patch1
	ENTRY 0,FLOPRD
	dc.l 3222	; BNE->BRA
	dc.w $60	; 66
	dc.l 3238	; BEQ->BRA
	dc.w $60	; 67
	dc.l 3239
	dc.w $68
*	dc.l 6356
*	dc.w io>>16
	dc.l 9272	; NOP
	dc.w $4e
	dc.l 9273
	dc.w $71
	dc.l 14105	; RTE->RTS
	dc.w $75	; 73
*	dc.l 26207
*	dc.w io>>16
	dc.l 27617
	dc.w io>>16
	dc.l 47079
	dc.w io>>16
	dc.l 49977
	dc.w io>>16
*	dc.l 50077
*	dc.w io>>16
	dc.l 50759
	dc.w io>>16
	dc.l 56199
	dc.w io>>16
	dc.l 56449
	dc.w io>>16
*	dc.l 159869
*	dc.w io>>16
