10
20
30 :
40 IF HIMEM>&FFFF:SYS "OS_GetEnv"TOA$:IFLEFT$(A$,5)<>"B6502":OSCLI"B6502"+MID$(A$,INSTR(A$," "))
50 DIM mem% &3FFF:OSCLI "LOAD MOS120 "+STR$~mem%
60 DEFFNo(A%):P%=A%:O%=P%-&C000+mem%:=opt%
70 :
80 FOR P=0 TO 1:opt%=P*3+4
90
100 [OPT FNo(&DB11):BCS &DB27:EQUS STRING$(&DB27-P%,CHR$&EA):]:
110 [OPT FNo(&DD6F):JMP &DE7F:EQUS STRING$(&DDCA-P%,CHR$&EA):]:
120 [OPT FNo(&DE1A):JMP &DE2B:EQUS STRING$(&DE2B-P%,CHR$&EA):]:
130 [OPT FNo(&E633):EQUW &FFA6:EQUW &FFA6:] :
140 [OPT FNo(&E830):NOP:NOP:NOP:NOP:] :
150 [OPT FNo(&E88B):PLA:JSR &E4B0:PLA:JSR &E4B0 :\ Insert into sound buffer
160 PLP:RTS :\ Restore flags and return
170 EQUS STRING$(&E8AE-P%,CHR$&EA):] :
180 [OPT FNo(&EE13):LDA #&FF:] :
190 [OPT FNo(&EE1E):CPY #&10:BCC &EE59:RTS :\ Only search ROMFS
200 EQUS STRING$(&EE51-P%,CHR$&EA):] :
210 [OPT FNo(&EE55):NOP:NOP:] :
220 [OPT FNo(&EE62):EQUS STRING$(&EEAD-P%,CHR$&EA):] :
230 [OPT FNo(&EEBB):EQUS STRING$(&EEDA-P%,CHR$&EA):] :
240 [OPT FNo(&F075):EQUS STRING$(6,CHR$0):] :
250 NEXT
260
270
280
290
300
310
320
330
340
350
360 A$="SAVE MOS120nosp "+STR$~mem%+"+4000"
370 PRINT A$;:OSCLI A$:PRINT