Final Fantasy VI:ROM map/Assembly C0C

From Data Crystal
Jump to: navigation, search

C0/C018 unknow

C0/C018:	A9D3    	LDA #$D3
C0/C01A:	8D2806  	STA $0628
C0/C01D:	A9CF    	LDA #$CF
C0/C01F:	8D2906  	STA $0629
C0/C022:	A9FD    	LDA #$FD
C0/C024:	8D2A06  	STA $062A
C0/C027:	A9FE    	LDA #$FE
C0/C029:	8D2B06  	STA $062B
C0/C02C:	ADB91E  	LDA $1EB9      (load event bits)
C0/C02F:	0980    	ORA #$80       (disables buttons and tweaks map display in multiparty areas)
C0/C031:	8DB91E  	STA $1EB9
C0/C034:	A6E8    	LDX $E8
C0/C036:	A5E5    	LDA $E5
C0/C038:	9D9405  	STA $0594,X
C0/C03B:	A5E6    	LDA $E6
C0/C03D:	9D9505  	STA $0595,X
C0/C040:	A5E7    	LDA $E7
C0/C042:	9D9605  	STA $0596,X
C0/C045:	A924    	LDA #$24
C0/C047:	85E5    	STA $E5
C0/C049:	9DF405  	STA $05F4,X
C0/C04C:	A906    	LDA #$06
C0/C04E:	85E6    	STA $E6
C0/C050:	9DF505  	STA $05F5,X
C0/C053:	A900    	LDA #$00
C0/C055:	85E7    	STA $E7
C0/C057:	9FF60500	STA $0005F6,X
C0/C05B:	E8      	INX
C0/C05C:	E8      	INX
C0/C05D:	E8      	INX
C0/C05E:	86E8    	STX $E8
C0/C060:	A901    	LDA #$01
C0/C062:	9DC405  	STA $05C4,X
C0/C065:	AC0308  	LDY $0803
C0/C068:	B97C08  	LDA $087C,Y
C0/C06B:	997D08  	STA $087D,Y
C0/C06E:	205A9A  	JSR $9A5A
C0/C071:	ADB91E  	LDA $1EB9
C0/C074:	1014    	BPL $C08A
C0/C076:	207875  	JSR $7578
C0/C079:	203C57  	JSR $573C
C0/C07C:	20081F  	JSR $1F08
C0/C07F:	20C21F  	JSR $1FC2
C0/C082:	208120  	JSR $2081
C0/C085:	20371E  	JSR $1E37
C0/C088:	80E4    	BRA $C06E
C0/C08A:	A7E5    	LDA [$E5]
C0/C08C:	C9FE    	CMP #$FE       (is it the "end event" command?)
C0/C08E:	D014    	BNE $C0A4      (branch if not)
C0/C090:	A6E8    	LDX $E8
C0/C092:	CA      	DEX
C0/C093:	CA      	DEX
C0/C094:	CA      	DEX
C0/C095:	BC9405  	LDY $0594,X
C0/C098:	D00A    	BNE $C0A4
C0/C09A:	BD9605  	LDA $0596,X
C0/C09D:	C9CA    	CMP #$CA
C0/C09F:	D003    	BNE $C0A4
C0/C0A1:	205A9A  	JSR $9A5A
C0/C0A4:	ADFA11  	LDA $11FA
C0/C0A7:	2940    	AND #$40
C0/C0A9:	D003    	BNE $C0AE
C0/C0AB:	204D0F  	JSR $0F4D
C0/C0AE:	207E46  	JSR $467E
C0/C0B1:	20A5C8  	JSR $C8A5
C0/C0B4:	204E03  	JSR $034E
C0/C0B7:	9CFA11  	STZ $11FA
C0/C0BA:	6458    	STZ $58
C0/C0BC:	20E57F  	JSR $7FE5		(? Location name loading function)
C0/C0BF:	64DC    	STZ $DC
C0/C0C1:	A5DC    	LDA $DC
C0/C0C3:	C5DD    	CMP $DD
C0/C0C5:	F013    	BEQ $C0DA
C0/C0C7:	AA      	TAX
C0/C0C8:	BC0308  	LDY $0803,X
C0/C0CB:	203958  	JSR $5839
C0/C0CE:	B97708  	LDA $0877,Y
C0/C0D1:	997608  	STA $0876,Y
C0/C0D4:	E6DC    	INC $DC
C0/C0D6:	E6DC    	INC $DC
C0/C0D8:	80E7    	BRA $C0C1
C0/C0DA:	6447    	STZ $47
C0/C0DC:	207B67  	JSR $677B
C0/C0DF:	E647    	INC $47
C0/C0E1:	207B67  	JSR $677B
C0/C0E4:	E647    	INC $47
C0/C0E6:	207B67  	JSR $677B
C0/C0E9:	E647    	INC $47
C0/C0EB:	207B67  	JSR $677B      (JMP fool!)
C0/C0EE:	60      	RTS

C0/C0EF unknow

C0/C0EF:	AD8A07  	LDA $078A
C0/C0F2:	2940    	AND #$40
C0/C0F4:	D005    	BNE $C0FB
C0/C0F6:	A9C1    	LDA #$C1
C0/C0F8:	20D302  	JSR $02D3
C0/C0FB:	AD8A07  	LDA $078A
C0/C0FE:	303D    	BMI $C13D
C0/C100:	6446    	STZ $46
C0/C102:	206405  	JSR $0564
C0/C105:	A546    	LDA $46
C0/C107:	C910    	CMP #$10
C0/C109:	B004    	BCS $C10F
C0/C10B:	2907    	AND #$07
C0/C10D:	8002    	BRA $C111
C0/C10F:	290F    	AND #$0F
C0/C111:	0A      	ASL A
C0/C112:	0A      	ASL A
C0/C113:	0A      	ASL A
C0/C114:	0A      	ASL A
C0/C115:	090F    	ORA #$0F
C0/C117:	8F33827E	STA $7E8233
C0/C11B:	8F37827E	STA $7E8237
C0/C11F:	8F3B827E	STA $7E823B
C0/C123:	8F3F827E	STA $7E823F
C0/C127:	8F43827E	STA $7E8243
C0/C12B:	8F47827E	STA $7E8247
C0/C12F:	8F4B827E	STA $7E824B
C0/C133:	8F4F827E	STA $7E824F
C0/C137:	A546    	LDA $46
C0/C139:	C920    	CMP #$20
C0/C13B:	D0C5    	BNE $C102
C0/C13D:	60      	RTS

C0/C13E unknow

C0/C13E:	20EFC0  	JSR $C0EF		(from C0/0113)
C0/C141:	207403  	JSR $0374
C0/C144:	200505  	JSR $0505
C0/C147:	209170  	JSR $7091
C0/C14A:	AE0308  	LDX $0803
C0/C14D:	8EA61F  	STX $1FA6
C0/C150:	BD7F08  	LDA $087F,X
C0/C153:	8D681F  	STA $1F68
C0/C156:	A5B2    	LDA $B2
C0/C158:	8D4407  	STA $0744
C0/C15B:	08      	PHP 
C0/C15C:	8B      	PHB
C0/C15D:	0B      	PHD
C0/C15E:	220000C2	JSR $C20000
C0/C162:	2B      	PLD 
C0/C163:	AB      	PLB
C0/C164:	28      	PLP 
C0/C165:	207403  	JSR $0374
C0/C168:	201505  	JSR $0515
C0/C16B:	207770  	JSR $7077
C0/C16E:	A901    	LDA #$01
C0/C170:	8558    	STA $58
C0/C172:	207305  	JSR $0573
C0/C175:	60      	RTS

C0/C176 unknow

C0/C176:	7B      	TDC 
C0/C177:	201505  	JSR $0515      (Copy 256 bytes..  from $1200-12FF to $0000-$00FF)
C0/C17A:	AD641F  	LDA $1F64      (load current map, low byte)
C0/C17D:	0A      	ASL A
C0/C17E:	0A      	ASL A
C0/C17F:	0A      	ASL A
C0/C180:	851A    	STA $1A        ($1A will be 0 or 8)
C0/C182:	ADF911  	LDA $11F9
C0/C185:	2907    	AND #$07
C0/C187:	051A    	ORA $1A
C0/C189:	AA      	TAX
C0/C18A:	BF7FC2C0	LDA $C0C27F,X  (load background)
C0/C18E:	8FE21100	STA $0011E2    (store background)
C0/C192:	7B      	TDC 
C0/C193:	8FE31100	STA $0011E3
C0/C197:	8A      	TXA
C0/C198:	2907    	AND #$07
C0/C19A:	AA      	TAX
C0/C19B:	BF8FC2C0	LDA $C0C28F,X
C0/C19F:	8522    	STA $22
C0/C1A1:	6423    	STZ $23
C0/C1A3:	BF97C2C0	LDA $C0C297,X
C0/C1A7:	8520    	STA $20
C0/C1A9:	6421    	STZ $21
C0/C1AB:	AD641F  	LDA $1F64      (load current map, low byte)
C0/C1AE:	851F    	STA $1F
C0/C1B0:	641E    	STZ $1E
C0/C1B2:	AD611F  	LDA $1F61      (load map Y position)
C0/C1B5:	29E0    	AND #$E0
C0/C1B7:	851E    	STA $1E
C0/C1B9:	AD601F  	LDA $1F60      (load map X position)
C0/C1BC:	4A      	LSR A
C0/C1BD:	4A      	LSR A
C0/C1BE:	4A      	LSR A
C0/C1BF:	291C    	AND #$1C
C0/C1C1:	051E    	ORA $1E
C0/C1C3:	851E    	STA $1E
C0/C1C5:	C220    	REP #$20      (16 bit accum./memory)
C0/C1C7:	A51E    	LDA $1E
C0/C1C9:	0520    	ORA $20
C0/C1CB:	AA      	TAX
C0/C1CC:	7B      	TDC 
C0/C1CD:	E220    	SEP #$20      (8 bit accum./memory)
C0/C1CF:	BF0054CF	LDA $CF5400,X  (load overworld 4-packs)
C0/C1D3:	8524    	STA $24
C0/C1D5:	C9FF    	CMP #$FF       (is it a Veldt pack?)
C0/C1D7:	D006    	BNE $C1DF      (branch if not)
C0/C1D9:	A90F    	LDA #$0F
C0/C1DB:	8FE41100	STA $0011E4    (set "no winning stand" and other flags)
C0/C1DF:	C220    	REP #$20      (16 bit accum./memory)
C0/C1E1:	A51E    	LDA $1E
C0/C1E3:	4A      	LSR A
C0/C1E4:	4A      	LSR A
C0/C1E5:	AA      	TAX
C0/C1E6:	7B      	TDC 
C0/C1E7:	E220    	SEP #$20      (8 bit accum./memory)
C0/C1E9:	BF0058CF	LDA $CF5800,X  (load encounter frequency)
C0/C1ED:	A422    	LDY $22
C0/C1EF:	F005    	BEQ $C1F6
C0/C1F1:	4A      	LSR A
C0/C1F2:	4A      	LSR A
C0/C1F3:	88      	DEY 
C0/C1F4:	D0FB    	BNE $C1F1
C0/C1F6:	2903    	AND #$03
C0/C1F8:	C903    	CMP #$03
C0/C1FA:	F07C    	BEQ $C278
C0/C1FC:	851A    	STA $1A
C0/C1FE:	ADDF11  	LDA $11DF      (load party-wide effects)
C0/C201:	2903    	AND #$03       (keep Moogle Charm and Charm Bangle)
C0/C203:	0A      	ASL A
C0/C204:	0A      	ASL A
C0/C205:	051A    	ORA $1A
C0/C207:	0A      	ASL A
C0/C208:	AA      	TAX
C0/C209:	BF9FC2C0	LDA $C0C29F,X
C0/C20D:	1FA0C2C0	ORA $C0C2A0,X
C0/C211:	F065    	BEQ $C278
C0/C213:	C220    	REP #$20      (16 bit accum./memory)
C0/C215:	AD6E1F  	LDA $1F6E      (load encounter counter)
C0/C218:	18      	CLC
C0/C219:	7F9FC2C0	ADC $C0C29F,X
C0/C21D:	9003    	BCC $C222
C0/C21F:	A900FF  	LDA #$FF00     (force an encounter)
C0/C222:	8D6E1F  	STA $1F6E      (store encounter counter)
C0/C225:	7B      	TDC 
C0/C226:	E220    	SEP #$20      (8 bit accum./memory)
C0/C228:	2079C4  	JSR $C479      (determine when you'll trigger the next encounter)
C0/C22B:	CD6F1F  	CMP $1F6F
C0/C22E:	B048    	BCS $C278
C0/C230:	9C6E1F  	STZ $1F6E
C0/C233:	9C6F1F  	STZ $1F6F
C0/C236:	A524    	LDA $24
C0/C238:	C9FF    	CMP #$FF       (was it an invalid/Veldt pack?)
C0/C23A:	D003    	BNE $C23F      (continue if not)
C0/C23C:	4CDFC2  	JMP $C2DF      (if it was, go pick a Veldt formation instead)

C0/C23F unknow

C0/C23F:	C220    	REP #$20      (16 bit accum./memory)
C0/C241:	0A      	ASL A
C0/C242:	0A      	ASL A
C0/C243:	0A      	ASL A
C0/C244:	AA      	TAX
C0/C245:	7B      	TDC 
C0/C246:	E220    	SEP #$20      (8 bit accum./memory)
C0/C248:	2096C4  	JSR $C496
C0/C24B:	C950    	CMP #$50
C0/C24D:	900E    	BCC $C25D      (if random number is less than 50h, skip all incrementations.)
C0/C24F:	E8      	INX
C0/C250:	E8      	INX           (point to second formation in 4-pack)
C0/C251:	C9A0    	CMP #$A0
C0/C253:	9008    	BCC $C25D      (if 50h <= random number < A0h, don't increment index anymore)
C0/C255:	E8      	INX
C0/C256:	E8      	INX           (point to third formation in 4-pack)
C0/C257:	C9F0    	CMP #$F0
C0/C259:	9002    	BCC $C25D      (if A0h <= random number < F0h, don't increment index anymore)
C0/C25B:	E8      	INX
C0/C25C:	E8      	INX           (point to fourth formation in 4-pack)
C0/C25D:	C220    	REP #$20      (16 bit accum./memory)
C0/C25F:	BF0048CF	LDA $CF4800,X  (load formation 4-pack data)
C0/C263:	8FE01100	STA $0011E0    (store formation to encounter)
C0/C267:	7B      	TDC 
C0/C268:	E220    	SEP #$20      (8 bit accum./memory)
C0/C26A:	ADD71E  	LDA $1ED7
C0/C26D:	2910    	AND #$10
C0/C26F:	4A      	LSR A
C0/C270:	8FE41100	STA $0011E4
C0/C274:	A901    	LDA #$01
C0/C276:	8001    	BRA $C279
C0/C278:	7B      	TDC 
C0/C279:	48      	PHA
C0/C27A:	200505  	JSR $0505      (Copy 256 bytes..  from $0000-$00FF to $1200-12FF)
C0/C27D:	68      	PLA
C0/C27E:	6B      	RTL

C0/C27F battle backgrounds (data)

C0/C27F:	00      (WoB grass, nice blue sky)
C2/C280:	01      (WoR forest, brownish cast)   
C0/C281:	02      (WoB desert, blue sky)
C0/C282:	03      (WoB forest, lush green)
C0/C283:	04      (town background.. like Zozo)
C0/C284:	05      (WoR dry land.. pinkish sky)
C0/C285:	06      (WoB Veldt.. dry land, blue sky.. believe I've seen this for WoR Veldt, too)
C0/C286:	07      (falling sky en route to Floating Continent)
C0/C287:	00      (WoB grass, nice blue sky)
C0/C288:	01      (WoR forest, brownish cast)
C0/C289:	2F      (WoR desert, pinkish sky)
C0/C28A:	03      (WoB forest, lush green)
C0/C28B:	05      (WoR dry land.. pinkish sky)
C0/C28C:	05      (WoR dry land.. pinkish sky)
C0/C28D:	06      (WoB Veldt.. dry land, blue sky.. believe I've seen this for WoR Veldt, too)
C0/C28E:	07      (falling sky en route to Floating Continent)

C0/C28F unknow

C0/C28F:	03
C0/C290:	02
C0/C291:	01
C0/C292:	02
C0/C293:	03
C0/C294:	00
C0/C295:	03
C0/C296:	03

C0/C297 unknow

C0/C297:	00
C0/C298:	01
C0/C299:	02
C0/C29A:	01
C0/C29B:	00
C0/C29C:	03
C0/C29D:	00
C0/C29E:	00

C0/C29F encounters frequency (normal)

C0/C29F:	C000   ("less encounter" frequency ==> looks like "normal encounter")
C0/C2A1:	6000   ("norm encounter" frequency ==> looks like "less encounter")
C0/C2A3:	8001   ("more encounter" frequency ==> looks right)
C0/C2A5:	0000   ("no encounter" frequency ==> looks right)

C0/C2A7 encounters frequency (charm bangle)

C0/C2A7:	6000   ("less encounter" frequency ==> looks like "normal encounter")
C0/C2A9:	3000   ("norm encounter" frequency ==> looks like "less encounter")
C0/C2AB:	C000   ("more encounter" frequency ==> looks right)
C0/C2AD:	0000   ("no encounter" frequency ==> looks right)

C0/C2AF encounters frequency (moogle charm without charm bangle)

C0/C2AF:	0000
C0/C2B1:	0000
C0/C2B3:	0000
C0/C2B5:	0000

C0/C2B7 encounters frequency (moogle charm and charm bangle)

C0/C2B7:	0000
C0/C2B9:	0000
C0/C2BB:	0000
C0/C2BD:	0000

C0/C2BF encounters frequency (normal)

C0/C2BF:	7000   ("less encounter" frequency ==> looks like "normal encounter")
C0/C2C1:	4000   ("norm encounter" frequency ==> looks like "less encounter")
C0/C2C3:	6001   ("more encounter" frequency ==> looks right)
C0/C2C5:	0002   ("no encounter" frequency ==> looks like ENCOUNTERS UP THE WAZOO)

C0/C2C7 encounters frequency (charm bangle only)

C0/C2C7:	3800   ("less encounter" frequency ==> looks like "normal encounter")
C0/C2C9:	2000   ("norm encounter" frequency ==> looks like "less encounter")
C0/C2CB:	B000   ("more encounter" frequency ==> looks right)
C0/C2CD:	0001   ("no encounter" frequency ==> looks like ENCOUNTERS UP THE WAZOO)

C0/C2CF encounters frequency (moogle charm only)

C0/C2CF:	0000
C0/C2D1:	0000
C0/C2D3:	0000
C0/C2D5:	0000

C0/C2D7 encounters frequency (moogle charm and charm bangle)

C0/C2D7:	0000
C0/C2D9:	0000
C0/C2DB:	0000
C0/C2DD:	0000

C0/C2DF unknow

C0/C2DF:	EEA51F  	INC $1FA5      (increment Veldt pack #)
C0/C2E2:	ADA51F  	LDA $1FA5      (load Veldt pack #)
C0/C2E5:	293F    	AND #$3F
C0/C2E7:	AA      	TAX
C0/C2E8:	BDDD1D  	LDA $1DDD,X    (load formations seen so they appear on the Veldt)
C0/C2EB:	D007    	BNE $C2F4      (branch if seen at least one formation on this set)
C0/C2ED:	8A      	TXA
C0/C2EE:	1A      	INC A          (check next byte)
C0/C2EF:	293F    	AND #$3F       (keep it within range)
C0/C2F1:	AA      	TAX
C0/C2F2:	80F4    	BRA $C2E8      (and try again)
C0/C2F4:	851A    	STA $1A
C0/C2F6:	8A      	TXA
C0/C2F7:	8DA51F  	STA $1FA5      (store as next Veldt pack encounter)
C0/C2FA:	C220    	REP #$20      (16 bit accum./memory)
C0/C2FC:	0A      	ASL A
C0/C2FD:	0A      	ASL A
C0/C2FE:	0A      	ASL A
C0/C2FF:	851E    	STA $1E        (save (group# * 8) AND #$FFF8)
C0/C301:	7B      	TDC 
C0/C302:	E220    	SEP #$20      (8 bit accum./memory)
C0/C304:	2096C4  	JSR $C496      (use $1FA2 and $1FA3 to get a random number)
C0/C307:	2907    	AND #$07       (keep only the lowest 3 bits)
C0/C309:	AA      	TAX
C0/C30A:	A51A    	LDA $1A
C0/C30C:	3FFCBAC0	AND $C0BAFC,X  (get 01,02,04,08,10,20,40,80 based on value in X)
C0/C310:	D007    	BNE $C319      (if this formation was fought, proceed)
C0/C312:	8A      	TXA           (if not, check next formation)
C0/C313:	1A      	INC A
C0/C314:	2907    	AND #$07       (shave bits, formation 7 wraps to formation 0)
C0/C316:	AA      	TAX
C0/C317:	80F1    	BRA $C30A      (loop until we found some group we've fought)
C0/C319:	C221    	REP #$21
C0/C31B:	8A      	TXA
C0/C31C:	651E    	ADC $1E        (add X to (group # * 8) AND FFF8)
C0/C31E:	8FE01100	STA $0011E0    (store as formation to encounter)
C0/C322:	7B      	TDC 
C0/C323:	E220    	SEP #$20      (8 bit accum./memory)
C0/C325:	48      	PHA
C0/C326:	200505  	JSR $0505      (Copy 256 bytes..  from $0000-$00FF to $1200-12FF)
C0/C329:	68      	PLA
C0/C32A:	A901    	LDA #$01
C0/C32C:	6B      	RTL

C0/C32D unknow

C0/C32D:	A584    	LDA $84		(from C0/00F0)
C0/C32F:	D03A    	BNE $C36B
C0/C331:	AD8E07  	LDA $078E
C0/C334:	D035    	BNE $C36B
C0/C336:	ADB91E  	LDA $1EB9
C0/C339:	2920    	AND #$20       (encounters disabled?)
C0/C33B:	D02E    	BNE $C36B      (branch if so)
C0/C33D:	A6E5    	LDX $E5
C0/C33F:	D02A    	BNE $C36B
C0/C341:	A5E7    	LDA $E7
C0/C343:	C9CA    	CMP #$CA
C0/C345:	D024    	BNE $C36B
C0/C347:	AD2505  	LDA $0525
C0/C34A:	101F    	BPL $C36B
C0/C34C:	AC0308  	LDY $0803
C0/C34F:	B96908  	LDA $0869,Y
C0/C352:	D017    	BNE $C36B
C0/C354:	B96A08  	LDA $086A,Y
C0/C357:	290F    	AND #$0F
C0/C359:	D010    	BNE $C36B
C0/C35B:	B96C08  	LDA $086C,Y
C0/C35E:	D00B    	BNE $C36B
C0/C360:	B96D08  	LDA $086D,Y
C0/C363:	290F    	AND #$0F
C0/C365:	D004    	BNE $C36B
C0/C367:	A557    	LDA $57
C0/C369:	D001    	BNE $C36C
C0/C36B:	60      	RTS

C0/C36C unknow

called for every step in dungeons
C0/C36C:	6457    	STZ $57
C0/C36E:	AE8C07  	LDX $078C
C0/C371:	E8      	INX
C0/C372:	8E8C07  	STX $078C
C0/C375:	AD8200  	LDA $0082
C0/C378:	2903    	AND #$03
C0/C37A:	A8      	TAY
C0/C37B:	C220    	REP #$20      (16 bit accum./memory)
C0/C37D:	AD8200  	LDA $0082
C0/C380:	4A      	LSR A
C0/C381:	4A      	LSR A
C0/C382:	AA      	TAX
C0/C383:	7B      	TDC 
C0/C384:	E220    	SEP #$20      (8 bit accum./memory)
C0/C386:	BF8058CF	LDA $CF5880,X
C0/C38A:	C400    	CPY $00
C0/C38C:	F005    	BEQ $C393
C0/C38E:	4A      	LSR A
C0/C38F:	4A      	LSR A
C0/C390:	88      	DEY 
C0/C391:	D0FB    	BNE $C38E
C0/C393:	2903    	AND #$03
C0/C395:	851A    	STA $1A
C0/C397:	ADDF11  	LDA $11DF      (load party-wide effects)
C0/C39A:	2903    	AND #$03       (keep Moogle Charm and Charm Bangle)
C0/C39C:	0A      	ASL A
C0/C39D:	0A      	ASL A
C0/C39E:	051A    	ORA $1A
C0/C3A0:	0A      	ASL A
C0/C3A1:	AA      	TAX
C0/C3A6:	1FC0C2C0	ORA $C0C2C0,X
C0/C3AA:	D003    	BNE $C3AF
C0/C3AC:	4C78C4  	JMP $C478      (RTS would work just as easily)

C0/C3AF unknow

C0/C3AF:	C221    	REP #$21
C0/C3B1:	AD6E1F  	LDA $1F6E      (load encounter counter)
C0/C3B8:	9003    	BCC $C3BD
C0/C3BA:	A900FF  	LDA #$FF00     (force an encounter)
C0/C3BD:	8D6E1F  	STA $1F6E      (store encounter counter)
C0/C3C0:	7B      	TDC 
C0/C3C1:	E220    	SEP #$20      (8 bit accum./memory)
C0/C3C3:	2079C4  	JSR $C479
C0/C3C6:	CD6F1F  	CMP $1F6F
C0/C3C9:	B0A0    	BCS $C36B
C0/C3CB:	9C6E1F  	STZ $1F6E
C0/C3CE:	9C6F1F  	STZ $1F6F
C0/C3D1:	AE8200  	LDX $0082
C0/C3D4:	BF0056CF	LDA $CF5600,X  (load 4-packs used in zones)
C0/C3D8:	C220    	REP #$20       (16 bit accum./memory)
C0/C3DA:	0A      	ASL A          (multiply by 2)
C0/C3DB:	0A      	ASL A          (multiply by 4)
C0/C3DC:	0A      	ASL A          (multiply by 8)
C0/C3DD:	AA      	TAX
C0/C3DE:	7B      	TDC 
C0/C3DF:	E220    	SEP #$20      (8 bit accum./memory)
C0/C3E1:	2096C4  	JSR $C496
C0/C3E4:	C950    	CMP #$50
C0/C3E6:	900E    	BCC $C3F6
C0/C3E8:	E8      	INX
C0/C3E9:	E8      	INX
C0/C3EA:	C9A0    	CMP #$A0
C0/C3EC:	9008    	BCC $C3F6
C0/C3EE:	E8      	INX
C0/C3EF:	E8      	INX
C0/C3F0:	C9F0    	CMP #$F0
C0/C3F2:	9002    	BCC $C3F6
C0/C3F4:	E8      	INX
C0/C3F5:	E8      	INX
C0/C3F6:	C220    	REP #$20      (16 bit accum./memory)
C0/C3F8:	BF0048CF	LDA $CF4800,X  (load monster 4-pack data)
C0/C3FC:	8FE01100	STA $0011E0    (store formation to encounter)
C0/C400:	7B      	TDC 
C0/C401:	E220    	SEP #$20      (8 bit accum./memory)
C0/C403:	AD2205  	LDA $0522	  (Area default background index)
C0/C406:	297F    	AND #$7F
C0/C408:	8FE21100	STA $0011E2
C0/C40C:	7B      	TDC 
C0/C40D:	8FE31100	STA $0011E3
C0/C411:	AE4105  	LDX $0541
C0/C414:	8E661F  	STX $1F66
C0/C417:	AEAF00  	LDX $00AF
C0/C41A:	8EC01F  	STX $1FC0
C0/C41D:	ADD71E  	LDA $1ED7
C0/C420:	2910    	AND #$10
C0/C422:	4A      	LSR A
C0/C423:	8FE41100	STA $0011E4
C0/C427:	EE8B07  	INC $078B
C0/C42A:	C220    	REP #$20      (16 bit accum./memory)
C0/C42C:	7B      	TDC 
C0/C42D:	997108  	STA $0871,Y
C0/C430:	997308  	STA $0873,Y
C0/C433:	8573    	STA $73
C0/C435:	8575    	STA $75
C0/C437:	8577    	STA $77
C0/C439:	8579    	STA $79
C0/C43B:	857B    	STA $7B
C0/C43D:	857D    	STA $7D
C0/C43F:	E220    	SEP #$20      (8 bit accum./memory)
C0/C441:	A21800  	LDX #$0018
C0/C444:	86E5    	STX $E5
C0/C446:	8EF405  	STX $05F4
C0/C449:	A9CA    	LDA #$CA
C0/C44B:	85E7    	STA $E7        (set event to CA/0018, random battle!)
C0/C44D:	8DF605  	STA $05F6
C0/C450:	A20000  	LDX #$0000     (LDX $00 fool!)
C0/C453:	8E9405  	STX $0594
C0/C456:	A9CA    	LDA #$CA
C0/C458:	8D9605  	STA $0596      (set event to CA/0000)
C0/C45B:	A901    	LDA #$01
C0/C45D:	8DC705  	STA $05C7
C0/C460:	A20300  	LDX #$0003
C0/C463:	86E8    	STX $E8
C0/C465:	AC0308  	LDY $0803
C0/C468:	B97C08  	LDA $087C,Y
C0/C46B:	997D08  	STA $087D,Y
C0/C46E:	A904    	LDA #$04
C0/C470:	997C08  	STA $087C,Y
C0/C473:	A980    	LDA #$80
C0/C475:	8DFA11  	STA $11FA
C0/C478:	60      	RTS

C0/C479 random number generator

get random number from [0,255]
C0/C479:	DA      	PHX
C0/C47A:	EEA11F  	INC $1FA1      (increment index when overworld encounter will occur)
C0/C47D:	D009    	BNE $C488
C0/C47F:	ADA41F  	LDA $1FA4
C0/C482:	18      	CLC
C0/C483:	6911    	ADC #$11
C0/C485:	8DA41F  	STA $1FA4
C0/C488:	ADA11F  	LDA $1FA1      (load index when overworld encounter will occur)
C0/C48B:	AA      	TAX
C0/C48C:	BF00FDC0	LDA $C0FD00,X  (load a random number)
C0/C490:	18      	CLC
C0/C491:	6DA41F  	ADC $1FA4
C0/C494:	FA      	PLX
C0/C495:	60      	RTS

C0/C496 random number generator

get random number between [0,255]
C0/C496:	DA      	PHX
C0/C497:	EEA21F  	INC $1FA2      (increment index when town/dungeon encounter will occur)
C0/C49A:	D009    	BNE $C4A5
C0/C49C:	ADA31F  	LDA $1FA3
C0/C49F:	18      	CLC
C0/C4A0:	6917    	ADC #$17
C0/C4A2:	8DA31F  	STA $1FA3
C0/C4A5:	ADA21F  	LDA $1FA2      (load index when town/dungeon encounter will occur)
C0/C4A8:	AA      	TAX
C0/C4A9:	BF00FDC0	LDA $C0FD00,X  (load a random number)
C0/C4AD:	18      	CLC
C0/C4AE:	6DA31F  	ADC $1FA3
C0/C4B1:	FA      	PLX
C0/C4B2:	60      	RTS

C0/C4B3 unknow

C0/C4B3:	A600    	LDX $00        (from C0/0104)
C0/C4B5:	9B      	TXY
C0/C4B6:	7B      	TDC 
C0/C4B7:	B90016  	LDA $1600,Y
C0/C4BA:	9FC0F17F	STA $7FF1C0,X  (store character ID)
C0/C4BE:	B90816  	LDA $1608,Y
C0/C4C1:	9FD0F17F	STA $7FF1D0,X
C0/C4C5:	B91116  	LDA $1611,Y
C0/C4C8:	9FE0F17F	STA $7FF1E0,X
C0/C4CC:	B91216  	LDA $1612,Y
C0/C4CF:	9FF0F17F	STA $7FF1F0,X
C0/C4D3:	B91316  	LDA $1613,Y
C0/C4D6:	9F00F27F	STA $7FF200,X
C0/C4DA:	C221    	REP #$21
C0/C4DC:	98      	TYA
C0/C4DD:	692500  	ADC #$0025
C0/C4E0:	A8      	TAY
C0/C4E1:	7B      	TDC 
C0/C4E2:	E220    	SEP #$20      (8 bit accum./memory)
C0/C4E4:	E8      	INX
C0/C4E5:	E01000  	CPX #$0010     (have we done 16 characters?)
C0/C4E8:	D0CD    	BNE $C4B7      (branch if not)
C0/C4EA:	200505  	JSR $0505
C0/C4ED:	8B      	PHB
C0/C4EE:	0B      	PHD
C0/C4EF:	08      	PHP 
C0/C4F0:	220F00C3	JSL $C3000F
C0/C4F4:	28      	PLP 
C0/C4F5:	2B      	PLD 
C0/C4F6:	AB      	PLB
C0/C4F7:	201505  	JSR $0515
C0/C4FA:	20BF6E  	JSR $6EBF
C0/C4FD:	7B      	TDC 
C0/C4FE:	AD0502  	LDA $0205
C0/C501:	F003    	BEQ $C506      (if it isn't 0 here, go back to the title screen)
C0/C503:	4C00FF  	JMP $FF00
C0/C506:	A600    	LDX $00
C0/C508:	9B      	TXY
C0/C509:	B90016  	LDA $1600,Y
C0/C50C:	DFC0F17F	CMP $7FF1C0,X
C0/C510:	F003    	BEQ $C515
C0/C512:	4C4BC5  	JMP $C54B      (BRA people!)
C0/C515:	DA      	PHX
C0/C516:	B90816  	LDA $1608,Y
C0/C519:	3A      	DEC A
C0/C51A:	8520    	STA $20
C0/C51C:	6421    	STZ $21
C0/C51E:	BFD0F17F	LDA $7FF1D0,X
C0/C522:	990816  	STA $1608,Y
C0/C525:	3A      	DEC A
C0/C526:	8522    	STA $22
C0/C528:	6423    	STZ $23
C0/C52A:	2062C5  	JSR $C562
C0/C52D:	209BC5  	JSR $C59B
C0/C530:	FA      	PLX
C0/C531:	BFE0F17F	LDA $7FF1E0,X
C0/C535:	991116  	STA $1611,Y
C0/C538:	BFF0F17F	LDA $7FF1F0,X
C0/C53C:	991216  	STA $1612,Y
C0/C53F:	BF00F27F	LDA $7FF200,X
C0/C543:	991316  	STA $1613,Y
C0/C546:	DA      	PHX
C0/C547:	207FA1  	JSR $A17F
C0/C54A:	FA      	PLX
C0/C54B:	C221    	REP #$21
C0/C54D:	98      	TYA
C0/C54E:	692500  	ADC #$0025
C0/C551:	A8      	TAY
C0/C552:	7B      	TDC 
C0/C553:	E220    	SEP #$20      (8 bit accum./memory)
C0/C555:	E8      	INX
C0/C556:	E01000  	CPX #$0010
C0/C559:	F003    	BEQ $C55E
C0/C55B:	4C09C5  	JMP $C509
C0/C55E:	20F36C  	JSR $6CF3
C0/C561:	60      	RTS

C0/C562 determine and set max HP

C0/C562:	C220    	REP #$20      (16 bit accum./memory)
C0/C564:	B90B16  	LDA $160B,Y    (load max HP)
C0/C567:	29FF3F  	AND #$3FFF     (mask out the HP modifiers)
C0/C56A:	851E    	STA $1E        (save it for now)
C0/C56C:	7B      	TDC 
C0/C56D:	E220    	SEP #$20      (8 bit accum./memory)
C0/C56F:	A620    	LDX $20        (load the saved level)
C0/C571:	E422    	CPX $22        (compare it to the new level)
C0/C573:	F012    	BEQ $C587      (branch if they are equal)
C0/C575:	BFA0F4E6	LDA $E6F4A0,X  (load HP gained on level up)
C0/C579:	18      	CLC
C0/C57A:	651E    	ADC $1E        (add it with the current max HP, low byte)
C0/C57C:	851E    	STA $1E        (save it)
C0/C57E:	A51F    	LDA $1F        (load current max HP, high byte)
C0/C580:	6900    	ADC #$00       (incremented if the previous ADC wrapped)
C0/C582:	851F    	STA $1F        (save it)
C0/C584:	E8      	INX            (increment level)
C0/C585:	80EA    	BRA $C571      (loop and keep adding HP)
C0/C587:	A20F27  	LDX #$270F     (9999)
C0/C58A:	E41E    	CPX $1E        (compare that to new max HP)
C0/C58C:	B002    	BCS $C590      (branch if the max HP is less than that)
C0/C58E:	861E    	STX $1E        (save it)
C0/C590:	C220    	REP #$20      (16 bit accum./memory)
C0/C592:	A51E    	LDA $1E        (load new max HP)
C0/C594:	990B16  	STA $160B,Y    (save it)
C0/C597:	7B      	TDC            (A = #$0000)
C0/C598:	E220    	SEP #$20      (8 bit accum./memory)
C0/C59A:	60      	RTS

C0/C59B determine and set max MP

C0/C59B:	C220    	REP #$20      (16 bit accum./memory)
C0/C59D:	B90F16  	LDA $160F,Y    (load max MP)
C0/C5A0:	29FF3F  	AND #$3FFF     (mask out the MP modifiers)
C0/C5A3:	851E    	STA $1E        (save it for now)
C0/C5A5:	7B      	TDC 
C0/C5A6:	E220    	SEP #$20      (8 bit accum./memory)
C0/C5A8:	A620    	LDX $20        (load the saved level)
C0/C5AA:	E422    	CPX $22        (compare it to the new level)
C0/C5AC:	F012    	BEQ $C5C0      (branch if they are equal)
C0/C5AE:	BF02F5E6	LDA $E6F502,X  (load MP gained on level up)
C0/C5B2:	18      	CLC
C0/C5B3:	651E    	ADC $1E        (add it with the current max MP, low byte)
C0/C5B5:	851E    	STA $1E        (save it)
C0/C5B7:	A51F    	LDA $1F        (load current max MP, high byte)
C0/C5B9:	6900    	ADC #$00       (incremented if the previous ADC wrapped)
C0/C5BB:	851F    	STA $1F        (save it)
C0/C5BD:	E8      	INX           (increment level)
C0/C5BE:	80EA    	BRA $C5AA      (loop and keep adding MP)
C0/C5C0:	A2E703  	LDX #$03E7     (999)
C0/C5C3:	E41E    	CPX $1E        (compare that to new max MP)
C0/C5C5:	B002    	BCS $C5C9      (branch if the max MP is less than that)
C0/C5C7:	861E    	STX $1E        (save it)
C0/C5C9:	C220    	REP #$20      (16 bit accum./memory)
C0/C5CB:	A51E    	LDA $1E        (load new max MP)
C0/C5CD:	990F16  	STA $160F,Y    (save it)
C0/C5D0:	7B      	TDC            (A = #$0000)
C0/C5D1:	E220    	SEP #$20      (8 bit accum./memory)
C0/C5D3:	60      	RTS

C0/C5D4 unknow

C0/C5D4:	A559    	LDA $59		(from C0/0173)
C0/C5D6:	D052    	BNE $C62A
C0/C5D8:	A506    	LDA $06
C0/C5DA:	2940    	AND #$40
C0/C5DC:	F04C    	BEQ $C62A
C0/C5DE:	A556    	LDA $56
C0/C5E0:	D048    	BNE $C62A
C0/C5E2:	A584    	LDA $84
C0/C5E4:	D044    	BNE $C62A
C0/C5E6:	A54A    	LDA $4A
C0/C5E8:	D040    	BNE $C62A
C0/C5EA:	AD5E05  	LDA $055E
C0/C5ED:	D03B    	BNE $C62A
C0/C5EF:	A6E5    	LDX $E5
C0/C5F1:	E00000  	CPX #$0000
C0/C5F4:	D034    	BNE $C62A
C0/C5F6:	A5E7    	LDA $E7
C0/C5F8:	C9CA    	CMP #$CA
C0/C5FA:	D02E    	BNE $C62A
C0/C5FC:	AC0308  	LDY $0803
C0/C5FF:	B97E08  	LDA $087E,Y
C0/C602:	D026    	BNE $C62A
C0/C604:	B96908  	LDA $0869,Y
C0/C607:	D021    	BNE $C62A
C0/C609:	B96A08  	LDA $086A,Y
C0/C60C:	290F    	AND #$0F
C0/C60E:	D01A    	BNE $C62A
C0/C610:	B96C08  	LDA $086C,Y
C0/C613:	D015    	BNE $C62A
C0/C615:	B96D08  	LDA $086D,Y
C0/C618:	290F    	AND #$0F
C0/C61A:	D00E    	BNE $C62A
C0/C61C:	ADB81E  	LDA $1EB8
C0/C61F:	2904    	AND #$04
C0/C621:	D007    	BNE $C62A
C0/C623:	A901    	LDA #$01
C0/C625:	8559    	STA $59
C0/C627:	20560F  	JSR $0F56
C0/C62A:	60      	RTS

C0/C62B unknow

C0/C62B:	A54A    	LDA $4A
C0/C62D:	D004    	BNE $C633
C0/C62F:	A559    	LDA $59
C0/C631:	D003    	BNE $C636
C0/C633:	4C7901  	JMP $0179
C0/C636:	6459    	STZ $59
C0/C638:	A900    	LDA #$00
C0/C63A:	8D0002  	STA $0200
C0/C63D:	ADB71E  	LDA $1EB7
C0/C640:	2980    	AND #$80
C0/C642:	851A    	STA $1A
C0/C644:	AD2105  	LDA $0521
C0/C647:	2903    	AND #$03
C0/C649:	051A    	ORA $1A
C0/C64B:	8D0102  	STA $0201
C0/C64E:	20CAC6  	JSR $C6CA
C0/C651:	AD0502  	LDA $0205
C0/C654:	C902    	CMP #$02       (is it a tent?)
C0/C656:	F007    	BEQ $C65F
C0/C658:	C903    	CMP #$03       (is it a warp stone?)
C0/C65A:	F014    	BEQ $C670
C0/C65C:	4C7F00  	JMP $007F
C0/C65F:	A23400  	LDX #$0034
C0/C662:	86E5    	STX $E5        (event that restores HP/MP to full, used by a tent)
C0/C664:	8EF405  	STX $05F4
C0/C667:	A9CA    	LDA #$CA
C0/C669:	85E7    	STA $E7
C0/C66B:	8DF605  	STA $05F6
C0/C66E:	800F    	BRA $C67F
C0/C670:	A23900  	LDX #$0039
C0/C673:	86E5    	STX $E5        (event that warps you out of a dungeon, used by warp stone)
C0/C675:	8EF405  	STX $05F4
C0/C678:	A9CA    	LDA #$CA
C0/C67A:	85E7    	STA $E7
C0/C67C:	8DF605  	STA $05F6
C0/C67F:	AC0308  	LDY $0803
C0/C682:	B97C08  	LDA $087C,Y
C0/C685:	29F0    	AND #$F0
C0/C687:	0904    	ORA #$04
C0/C689:	997C08  	STA $087C,Y
C0/C68C:	A20000  	LDX #$0000
C0/C68F:	8E9405  	STX $0594
C0/C692:	A9CA    	LDA #$CA
C0/C694:	8D9605  	STA $0596
C0/C697:	A901    	LDA #$01
C0/C699:	8DC705  	STA $05C7
C0/C69C:	A20300  	LDX #$0003
C0/C69F:	86E8    	STX $E8
C0/C6A1:	A4DA    	LDY $DA
C0/C6A3:	B97C08  	LDA $087C,Y
C0/C6A6:	997D08  	STA $087D,Y
C0/C6A9:	A904    	LDA #$04
C0/C6AB:	997C08  	STA $087C,Y
C0/C6AE:	6458    	STZ $58
C0/C6B0:	4C7F00  	JMP $007F

C0/C6B3 unknow

C0/C6B3:	209170  	JSR $7091
C0/C6B6:	200505  	JSR $0505       (Copies RAM from 0000-00FF to 1200-12FF)
C0/C6B9:	08      	PHP 
C0/C6BA:	8B      	PHB
C0/C6BB:	0B      	PHD
C0/C6BC:	221500C3	JSL $C30015     (Eventually empties and then fully equips a character)
C0/C6C0:	2B      	PLD 
C0/C6C1:	AB      	PLB
C0/C6C2:	28      	PLP 
C0/C6C3:	201505  	JSR $0515       (Copies RAM from 1200-12FF to 0000-00FF)
C0/C6C6:	207770  	JSR $7077
C0/C6C9:	60      	RTS

C0/C6CA make a call to the menu

C0/C6CA:	207403  	JSR $0374
C0/C6CD:	209170  	JSR $7091
C0/C6D0:	20216F  	JSR $6F21
C0/C6D3:	20886E  	JSR $6E88
C0/C6D6:	200505  	JSR $0505
C0/C6D9:	AE4105  	LDX $0541
C0/C6DC:	8E661F  	STX $1F66
C0/C6DF:	AEAF00  	LDX $00AF
C0/C6E2:	8EC01F  	STX $1FC0
C0/C6E5:	AE0308  	LDX $0803
C0/C6E8:	8EA61F  	STX $1FA6
C0/C6EB:	BD7F08  	LDA $087F,X
C0/C6EE:	8D681F  	STA $1F68
C0/C6F1:	A5B2    	LDA $B2
C0/C6F3:	8D4407  	STA $0744
C0/C6F6:	08      	PHP 
C0/C6F7:	8B      	PHB
C0/C6F8:	0B      	PHD
C0/C6F9:	220000C3	JSL $C30000
C0/C6FD:	2B      	PLD 
C0/C6FE:	AB      	PLB
C0/C6FF:	28      	PLP 
C0/C700:	207403  	JSR $0374
C0/C703:	201505  	JSR $0515
C0/C706:	207770  	JSR $7077
C0/C709:	20BF6E  	JSR $6EBF
C0/C70C:	AD4E1D  	LDA $1D4E
C0/C70F:	2907    	AND #$07
C0/C711:	8D6505  	STA $0565
C0/C714:	A901    	LDA #$01
C0/C716:	8558    	STA $58
C0/C718:	A980    	LDA #$80
C0/C71A:	8DFA11  	STA $11FA
C0/C71D:	207305  	JSR $0573
C0/C720:	644C    	STZ $4C
C0/C722:	60      	RTS

C0/C723 unknow

C0/C723:	2080C8  	JSR $C880		(from C0/BF82)
C0/C726:	202AC7  	JSR $C72A
C0/C729:	60      	RTS

C0/C72A unknow

C0/C72A:	A980    	LDA #$80		(from C0/C726)
C0/C72C:	8D1521  	STA $2115
C0/C72F:	A200C8  	LDX #$C800
C0/C732:	862D    	STX $2D
C0/C734:	A9C0    	LDA #$C0
C0/C736:	852F    	STA $2F
C0/C738:	A400    	LDY $00
C0/C73A:	5A      	PHY
C0/C73B:	B93306  	LDA $0633,Y
C0/C73E:	C220    	REP #$20      (16 bit accum./memory)
C0/C740:	0A      	ASL A
C0/C741:	0A      	ASL A
C0/C742:	0A      	ASL A
C0/C743:	18      	CLC
C0/C744:	69A0EE  	ADC #$EEA0
C0/C747:	852A    	STA $2A
C0/C749:	7B      	TDC 
C0/C74A:	E220    	SEP #$20      (8 bit accum./memory)
C0/C74C:	A9C0    	LDA #$C0
C0/C74E:	852C    	STA $2C
C0/C750:	A400    	LDY $00
C0/C752:	C221    	REP #$21
C0/C754:	A72D    	LDA [$2D]
C0/C756:	8D1621  	STA $2116
C0/C759:	B72A    	LDA [$2A],Y
C0/C75B:	AA      	TAX
C0/C75C:	7B      	TDC 
C0/C75D:	E220    	SEP #$20      (8 bit accum./memory)
C0/C75F:	BFA0E2C0	LDA $C0E2A0,X
C0/C763:	8D1821  	STA $2118
C0/C766:	9C1921  	STZ $2119
C0/C769:	BFA1E2C0	LDA $C0E2A1,X
C0/C76D:	8D1821  	STA $2118
C0/C770:	9C1921  	STZ $2119
C0/C773:	BFA2E2C0	LDA $C0E2A2,X
C0/C777:	8D1821  	STA $2118
C0/C77A:	9C1921  	STZ $2119
C0/C77D:	BFA3E2C0	LDA $C0E2A3,X
C0/C781:	8D1821  	STA $2118
C0/C784:	9C1921  	STZ $2119
C0/C787:	BFA4E2C0	LDA $C0E2A4,X
C0/C78B:	8D1821  	STA $2118
C0/C78E:	9C1921  	STZ $2119
C0/C791:	BFA5E2C0	LDA $C0E2A5,X
C0/C795:	8D1821  	STA $2118
C0/C798:	9C1921  	STZ $2119
C0/C79B:	BFA6E2C0	LDA $C0E2A6,X
C0/C79F:	8D1821  	STA $2118
C0/C7A2:	9C1921  	STZ $2119
C0/C7A5:	BFA7E2C0	LDA $C0E2A7,X
C0/C7A9:	8D1821  	STA $2118
C0/C7AC:	9C1921  	STZ $2119
C0/C7AF:	9C1821  	STZ $2118
C0/C7B2:	9C1921  	STZ $2119
C0/C7B5:	9C1821  	STZ $2118
C0/C7B8:	9C1921  	STZ $2119
C0/C7BB:	9C1821  	STZ $2118
C0/C7BE:	9C1921  	STZ $2119
C0/C7C1:	9C1821  	STZ $2118
C0/C7C4:	9C1921  	STZ $2119
C0/C7C7:	9C1821  	STZ $2118
C0/C7CA:	9C1921  	STZ $2119
C0/C7CD:	9C1821  	STZ $2118
C0/C7D0:	9C1921  	STZ $2119
C0/C7D3:	9C1821  	STZ $2118
C0/C7D6:	9C1921  	STZ $2119
C0/C7D9:	9C1821  	STZ $2118
C0/C7DC:	9C1921  	STZ $2119
C0/C7DF:	C221    	REP #$21
C0/C7E1:	A52D    	LDA $2D
C0/C7E3:	690200  	ADC #$0002
C0/C7E6:	852D    	STA $2D
C0/C7E8:	7B      	TDC 
C0/C7E9:	E220    	SEP #$20      (8 bit accum./memory)
C0/C7EB:	C8      	INY 
C0/C7EC:	C8      	INY 
C0/C7ED:	C00800  	CPY #$0008
C0/C7F0:	F003    	BEQ $C7F5
C0/C7F2:	4C52C7  	JMP $C752
C0/C7F5:	7A      	PLY
C0/C7F6:	C8      	INY 
C0/C7F7:	C01000  	CPY #$0010
C0/C7FA:	F003    	BEQ $C7FF
C0/C7FC:	4C3AC7  	JMP $C73A
C0/C7FF:	60      	RTS

C0/C800 unknow

C0/C800:	006C    	BRK #$6C
C0/C802:	106C    	BPL $C870
C0/C804:	006D    	BRK #$6D
C0/C806:	106D    	BPL $C875
C0/C808:	206C30  	JSR $306C
C0/C80B:	6C206D  	JMP ($6D20)
C0/C80E:	306D    	BMI $C87D
C0/C810:	40      	RTI

C0/C811 unknow

C0/C811:	6C506C  	JMP ($6C50)
C0/C814:	40      	RTI
C0/C815:	6D506D  	ADC $6D50
C0/C818:	60      	RTS

C0/C819 unknow

C0/C819:	6C706C  	JMP ($6C70)
C0/C81C:	60      	RTS

C0/C81D unknow

C0/C81D:	6D706D  	ADC $6D70
C0/C820:	806C    	BRA $C88E
C0/C822:	906C    	BCC $C890
C0/C824:	806D    	BRA $C893
C0/C826:	906D    	BCC $C895
C0/C828:	A06CB0  	LDY #$B06C
C0/C82B:	6CA06D  	JMP ($6DA0)
C0/C82E:	B06D    	BCS $C89D
C0/C830:	C06CD0  	CPY #$D06C
C0/C833:	6CC06D  	JMP ($6DC0)
C0/C836:	D06D    	BNE $C8A5
C0/C838:	E06CF0  	CPX #$F06C
C0/C83B:	6CE06D  	JMP ($6DE0)
C0/C83E:	F06D    	BEQ $C8AD
C0/C840:	006E    	BRK #$6E
C0/C842:	106E    	BPL $C8B2
C0/C844:	006F    	BRK #$6F
C0/C846:	106F    	BPL $C8B7
C0/C848:	206E30  	JSR $306E
C0/C84B:	6E206F  	ROR $6F20
C0/C84E:	306F    	BMI $C8BF
C0/C850:	40      	RTI

C0/C851 unknow

C0/C851:	6E506E  	ROR $6E50
C0/C854:	40      	RTI
C0/C855:	6F506F60	ADC $606F50
C0/C859:	6E706E  	ROR $6E70
C0/C85C:	60      	RTS

C0/C85D unknow

C0/C85D:	6F706F80	ADC $806F70
C0/C861:	6E906E  	ROR $6E90
C0/C864:	806F    	BRA $C8D5
C0/C866:	906F    	BCC $C8D7
C0/C868:	A06EB0  	LDY #$B06E
C0/C86B:	6EA06F  	ROR $6FA0
C0/C86E:	B06F    	BCS $C8DF
C0/C870:	C06ED0  	CPY #$D06E
C0/C873:	6EC06F  	ROR $6FC0
C0/C876:	D06F    	BNE $C8E7
C0/C878:	E06EF0  	CPX #$F06E
C0/C87B:	6EE06F  	ROR $6FE0
C0/C87E:	F06F    	BEQ $C8EF

C0/C880 unknow

C0/C880:	AD3105  	LDA $0531		(from C0/C723)
C0/C883:	0A      	ASL A
C0/C884:	AA      	TAX
C0/C885:	C221    	REP #$21
C0/C887:	BFA0F4C0	LDA $C0F4A0,X
C0/C88B:	6900F5  	ADC #$F500
C0/C88E:	85F3    	STA $F3
C0/C890:	7B      	TDC 
C0/C891:	E220    	SEP #$20      (8 bit accum./memory)
C0/C893:	A9C0    	LDA #$C0
C0/C895:	85F5    	STA $F5
C0/C897:	A23306  	LDX #$0633
C0/C89A:	86F6    	STX $F6
C0/C89C:	A900    	LDA #$00
C0/C89E:	85F8    	STA $F8
C0/C8A0:	226C04C0	JSL $C0046C    (LZ decompression)
C0/C8A4:	60      	RTS

C0/C8A5 unknow

C0/C8A5:	AC0308  	LDY $0803
C0/C8A8:	B97C08  	LDA $087C,Y
C0/C8AB:	290F    	AND #$0F
C0/C8AD:	C902    	CMP #$02
C0/C8AF:	F001    	BEQ $C8B2
C0/C8B1:	60      	RTS

C0/C8B2 unknow

C0/C8B2:	C220    	REP #$20      (16 bit accum./memory)
C0/C8B4:	B96D08  	LDA $086D,Y
C0/C8B7:	18      	CLC
C0/C8B8:	E560    	SBC $60
C0/C8BA:	8528    	STA $28
C0/C8BC:	B96A08  	LDA $086A,Y
C0/C8BF:	38      	SEC 
C0/C8C0:	E55C    	SBC $5C
C0/C8C2:	18      	CLC
C0/C8C3:	690800  	ADC #$0008
C0/C8C6:	8526    	STA $26
C0/C8C8:	7B      	TDC 
C0/C8C9:	E220    	SEP #$20      (8 bit accum./memory)
C0/C8CB:	A527    	LDA $27
C0/C8CD:	A529    	LDA $29
C0/C8CF:	A97E    	LDA #$7E
C0/C8D1:	8D8321  	STA $2183
C0/C8D4:	A26307  	LDX #$0763
C0/C8D7:	8E8121  	STX $2181
C0/C8DA:	A5B8    	LDA $B8
C0/C8DC:	29C0    	AND #$C0
C0/C8DE:	F00C    	BEQ $C8EC
C0/C8E0:	A5B8    	LDA $B8
C0/C8E2:	2904    	AND #$04
C0/C8E4:	F009    	BEQ $C8EF
C0/C8E6:	A5B2    	LDA $B2
C0/C8E8:	C901    	CMP #$01
C0/C8EA:	F000    	BEQ $C8EC	(pointless)
C0/C8EF:	B97E08  	LDA $087E,Y
C0/C8F2:	F00A    	BEQ $C8FE
C0/C8F4:	C905    	CMP #$05
C0/C8F6:	B003    	BCS $C8FB
C0/C8F8:	4C1ACA  	JMP $CA1A
C0/C8FB:	38      	SEC 
C0/C8FC:	E904    	SBC #$04
C0/C8FE:	851A    	STA $1A
C0/C900:	0A      	ASL A
C0/C901:	0A      	ASL A
C0/C902:	0A      	ASL A
C0/C903:	18      	CLC
C0/C904:	651A    	ADC $1A
C0/C906:	851A    	STA $1A
C0/C908:	AA      	TAX
C0/C909:	A526    	LDA $26
C0/C90B:	18      	CLC
C0/C910:	8D8021  	STA $2180
C0/C913:	A528    	LDA $28
C0/C915:	18      	CLC
C0/C916:	7FEEC9C0	ADC $C0C9EE,X
C0/C91A:	8D8021  	STA $2180
C0/C921:	A8      	TAY
C0/C922:	DA      	PHX
C0/C923:	B9A300  	LDA $00A3,Y
C0/C926:	AA      	TAX
C0/C927:	A8      	TAY
C0/C928:	BF00767E	LDA $7E7600,X
C0/C92C:	FA      	PLX
C0/C92D:	2904    	AND #$04
C0/C92F:	F005    	BEQ $C936
C0/C931:	A5B2    	LDA $B2
C0/C933:	3A      	DEC A
C0/C934:	F00E    	BEQ $C944
C0/C936:	B94306  	LDA $0643,Y
C0/C939:	C9FF    	CMP #$FF
C0/C93B:	F007    	BEQ $C944
C0/C93D:	293F    	AND #$3F
C0/C93F:	18      	CLC
C0/C940:	69C0    	ADC #$C0
C0/C942:	8001    	BRA $C945
C0/C944:	7B      	TDC 
C0/C945:	8D8021  	STA $2180
C0/C948:	B94306  	LDA $0643,Y
C0/C94B:	29C0    	AND #$C0
C0/C94D:	8D8021  	STA $2180
C0/C950:	A526    	LDA $26
C0/C952:	18      	CLC
C0/C953:	7FF0C9C0	ADC $C0C9F0,X
C0/C957:	8D8021  	STA $2180
C0/C95A:	A528    	LDA $28
C0/C95C:	18      	CLC
C0/C95D:	7FF1C9C0	ADC $C0C9F1,X
C0/C961:	8D8021  	STA $2180
C0/C964:	BFF2C9C0	LDA $C0C9F2,X
C0/C968:	A8      	TAY
C0/C969:	DA      	PHX
C0/C96A:	B9A300  	LDA $00A3,Y
C0/C96D:	AA      	TAX
C0/C96E:	A8      	TAY
C0/C96F:	BF00767E	LDA $7E7600,X
C0/C973:	FA      	PLX
C0/C974:	2904    	AND #$04
C0/C976:	F005    	BEQ $C97D
C0/C978:	A5B2    	LDA $B2
C0/C97A:	3A      	DEC A
C0/C97B:	F00E    	BEQ $C98B
C0/C97D:	B94306  	LDA $0643,Y
C0/C980:	C9FF    	CMP #$FF
C0/C982:	F007    	BEQ $C98B
C0/C984:	293F    	AND #$3F
C0/C986:	18      	CLC
C0/C987:	69C0    	ADC #$C0
C0/C989:	8001    	BRA $C98C
C0/C98B:	7B      	TDC 
C0/C98C:	8D8021  	STA $2180
C0/C98F:	B94306  	LDA $0643,Y
C0/C992:	29C0    	AND #$C0
C0/C994:	8D8021  	STA $2180
C0/C997:	A526    	LDA $26
C0/C999:	18      	CLC
C0/C99A:	7FF3C9C0	ADC $C0C9F3,X
C0/C99E:	8D8021  	STA $2180
C0/C9A1:	A528    	LDA $28
C0/C9A3:	18      	CLC
C0/C9A4:	7FF4C9C0	ADC $C0C9F4,X
C0/C9A8:	8D8021  	STA $2180
C0/C9AF:	A8      	TAY
C0/C9B0:	DA      	PHX
C0/C9B1:	B9A300  	LDA $00A3,Y
C0/C9B4:	AA      	TAX
C0/C9B5:	A8      	TAY
C0/C9B6:	BF00767E	LDA $7E7600,X
C0/C9BA:	FA      	PLX
C0/C9BB:	2904    	AND #$04
C0/C9BD:	F005    	BEQ $C9C4
C0/C9BF:	A5B2    	LDA $B2
C0/C9C1:	3A      	DEC A
C0/C9C2:	F00E    	BEQ $C9D2
C0/C9C4:	B94306  	LDA $0643,Y
C0/C9C7:	C9FF    	CMP #$FF
C0/C9C9:	F007    	BEQ $C9D2
C0/C9CB:	293F    	AND #$3F
C0/C9CD:	18      	CLC
C0/C9CE:	69C0    	ADC #$C0
C0/C9D0:	8001    	BRA $C9D3
C0/C9D2:	7B      	TDC 
C0/C9D3:	8D8021  	STA $2180
C0/C9D6:	B94306  	LDA $0643,Y
C0/C9D9:	29C0    	AND #$C0
C0/C9DB:	8D8021  	STA $2180
C0/C9DE:	A9EF    	LDA #$EF
C0/C9E0:	8D8021  	STA $2180
C0/C9E3:	8D8021  	STA $2180
C0/C9E6:	8D8021  	STA $2180
C0/C9E9:	8D8021  	STA $2180
C0/C9EC:	60      	RTS

C0/C9ED unknow

C0/C9ED:	0000    	BRK #$00
C0/C9EF:	0710    	ORA [$10]
C0/C9F1:	F005    	BEQ $C9F8
C0/C9F3:	1000    	BPL $C9F5
C0/C9F5:	08      	PHP 
C0/C9F6:	1000    	BPL $C9F8
C0/C9F8:	0500    	ORA $00
C0/C9FA:	1007    	BPL $CA03
C0/C9FC:	1010    	BPL $CA0E
C0/C9FE:	08      	PHP 
C0/C9FF:	0000    	BRK #$00
C0/CA01:	0700    	ORA [$00]
C0/CA03:	100A    	BPL $CA0F
C0/CA05:	1010    	BPL $CA17
C0/CA07:	0B      	PHD
C0/CA08:	1000    	BPL $CA0A
C0/CA0A:	0710    	ORA [$10]
C0/CA0C:	100A    	BPL $CA18
C0/CA0E:	0010    	BRK #$10
C0/CA10:	0910    	ORA #$10
C0/CA12:	1007    	BPL $CA1B
C0/CA14:	0000    	BRK #$00
C0/CA16:	0300    	ORA $00,S
C0/CA18:	1006    	BPL $CA20
C0/CA1A:	A5B8    	LDA $B8
C0/CA1C:	2904    	AND #$04
C0/CA1E:	F007    	BEQ $CA27
C0/CA20:	A5B2    	LDA $B2
C0/CA22:	3A      	DEC A
C0/CA23:	F039    	BEQ $CA5E
C0/CA25:	801B    	BRA $CA42
C0/CA27:	A5AA    	LDA $AA
C0/CA29:	A8      	TAY
C0/CA2A:	B94306  	LDA $0643,Y
C0/CA2D:	C9FF    	CMP #$FF
C0/CA2F:	F02D    	BEQ $CA5E
C0/CA31:	851A    	STA $1A
C0/CA33:	293F    	AND #$3F
C0/CA35:	18      	CLC
C0/CA36:	69C0    	ADC #$C0
C0/CA38:	851B    	STA $1B
C0/CA3A:	A51A    	LDA $1A
C0/CA3C:	29C0    	AND #$C0
C0/CA3E:	851A    	STA $1A
C0/CA40:	8022    	BRA $CA64
C0/CA42:	A5AA    	LDA $AA
C0/CA44:	A8      	TAY
C0/CA45:	B94306  	LDA $0643,Y
C0/CA48:	C9FF    	CMP #$FF
C0/CA4A:	F012    	BEQ $CA5E
C0/CA4C:	851A    	STA $1A
C0/CA4E:	293F    	AND #$3F
C0/CA50:	18      	CLC
C0/CA51:	69C0    	ADC #$C0
C0/CA53:	851B    	STA $1B
C0/CA55:	A51A    	LDA $1A
C0/CA57:	29C0    	AND #$C0
C0/CA59:	1A      	INC A
C0/CA5A:	851A    	STA $1A
C0/CA5C:	8006    	BRA $CA64
C0/CA5E:	A901    	LDA #$01
C0/CA60:	851A    	STA $1A
C0/CA62:	641B    	STZ $1B
C0/CA64:	AD7400  	LDA $0074
C0/CA67:	1007    	BPL $CA70
C0/CA69:	A526    	LDA $26
C0/CA6B:	18      	CLC
C0/CA6C:	6910    	ADC #$10
C0/CA6E:	8526    	STA $26
C0/CA70:	A526    	LDA $26
C0/CA72:	8D8021  	STA $2180
C0/CA75:	AD7600  	LDA $0076
C0/CA78:	1007    	BPL $CA81
C0/CA7A:	A528    	LDA $28
C0/CA7C:	18      	CLC
C0/CA7D:	6910    	ADC #$10
C0/CA7F:	8528    	STA $28
C0/CA81:	A528    	LDA $28
C0/CA83:	8D8021  	STA $2180
C0/CA86:	A51B    	LDA $1B
C0/CA88:	8D8021  	STA $2180
C0/CA8B:	A51A    	LDA $1A
C0/CA8D:	8D8021  	STA $2180
C0/CA90:	A5B8    	LDA $B8
C0/CA92:	2904    	AND #$04
C0/CA94:	F007    	BEQ $CA9D
C0/CA96:	A5B2    	LDA $B2
C0/CA98:	3A      	DEC A
C0/CA99:	F068    	BEQ $CB03
C0/CA9B:	804A    	BRA $CAE7
C0/CA9D:	A5B8    	LDA $B8
C0/CA9F:	2903    	AND #$03
C0/CAA1:	C902    	CMP #$02
C0/CAA3:	F011    	BEQ $CAB6
C0/CAA5:	C903    	CMP #$03
C0/CAA7:	F017    	BEQ $CAC0
C0/CAA9:	A5B6    	LDA $B6
C0/CAAB:	C9F7    	CMP #$F7
C0/CAAF:	2907    	AND #$07
C0/CAB1:	3A      	DEC A
C0/CAB2:	F018    	BEQ $CACC
C0/CAB4:	804D    	BRA $CB03
C0/CAB6:	A5B6    	LDA $B6
C0/CAB8:	2907    	AND #$07
C0/CABA:	C901    	CMP #$01
C0/CABC:	F045    	BEQ $CB03
C0/CABE:	800C    	BRA $CACC
C0/CAC0:	A5B6    	LDA $B6
C0/CAC2:	C9F7    	CMP #$F7
C0/CAC4:	F006    	BEQ $CACC
C0/CAC6:	2902    	AND #$02
C0/CAC8:	D002    	BNE $CACC
C0/CACA:	8037    	BRA $CB03
C0/CACC:	A5A7    	LDA $A7
C0/CACE:	A8      	TAY
C0/CACF:	B94306  	LDA $0643,Y
C0/CAD2:	C9FF    	CMP #$FF
C0/CAD4:	F02D    	BEQ $CB03
C0/CAD6:	851A    	STA $1A
C0/CAD8:	293F    	AND #$3F
C0/CADA:	18      	CLC
C0/CADB:	69C0    	ADC #$C0
C0/CADD:	851B    	STA $1B
C0/CADF:	A51A    	LDA $1A
C0/CAE1:	29C0    	AND #$C0
C0/CAE3:	851A    	STA $1A
C0/CAE5:	8022    	BRA $CB09
C0/CAE7:	A5A7    	LDA $A7
C0/CAE9:	A8      	TAY
C0/CAEA:	B94306  	LDA $0643,Y
C0/CAED:	C9FF    	CMP #$FF
C0/CAEF:	F012    	BEQ $CB03
C0/CAF1:	851A    	STA $1A
C0/CAF3:	293F    	AND #$3F
C0/CAF5:	18      	CLC
C0/CAF6:	69C0    	ADC #$C0
C0/CAF8:	851B    	STA $1B
C0/CAFA:	A51A    	LDA $1A
C0/CAFC:	29C0    	AND #$C0
C0/CAFE:	1A      	INC A
C0/CAFF:	851A    	STA $1A
C0/CB01:	8006    	BRA $CB09
C0/CB03:	A901    	LDA #$01
C0/CB05:	851A    	STA $1A
C0/CB07:	641B    	STZ $1B
C0/CB09:	A526    	LDA $26
C0/CB0B:	8D8021  	STA $2180
C0/CB0E:	A528    	LDA $28
C0/CB10:	38      	SEC 
C0/CB11:	E910    	SBC #$10
C0/CB13:	8D8021  	STA $2180
C0/CB16:	A51B    	LDA $1B
C0/CB18:	8D8021  	STA $2180
C0/CB1B:	A51A    	LDA $1A
C0/CB1D:	8D8021  	STA $2180
C0/CB20:	AC0308  	LDY $0803
C0/CB23:	B97E08  	LDA $087E,Y
C0/CB26:	AA      	TAX
C0/CB27:	BF73CCC0	LDA $C0CC73,X
C0/CB2B:	AA      	TAX
C0/CB2C:	862A    	STX $2A
C0/CB2E:	B97E08  	LDA $087E,Y
C0/CB31:	F061    	BEQ $CB94
C0/CB37:	AA      	TAX
C0/CB38:	B5A3    	LDA $A3,X
C0/CB3A:	AA      	TAX
C0/CB3B:	BF00767E	LDA $7E7600,X
C0/CB3F:	851E    	STA $1E
C0/CB41:	2904    	AND #$04
C0/CB43:	F016    	BEQ $CB5B
C0/CB45:	A5B8    	LDA $B8
C0/CB47:	2904    	AND #$04
C0/CB49:	F007    	BEQ $CB52
C0/CB4B:	A5B2    	LDA $B2
C0/CB4D:	3A      	DEC A
C0/CB4E:	F044    	BEQ $CB94
C0/CB50:	8029    	BRA $CB7B
C0/CB52:	A5B8    	LDA $B8
C0/CB54:	2903    	AND #$03
C0/CB56:	3A      	DEC A
C0/CB57:	F03B    	BEQ $CB94
C0/CB59:	8020    	BRA $CB7B
C0/CB5B:	A5B8    	LDA $B8
C0/CB5D:	2904    	AND #$04
C0/CB5F:	8002    	BRA $CB63
C0/CB61:	80E8    	BRA $CB4B
C0/CB63:	BD4306  	LDA $0643,X
C0/CB66:	C9FF    	CMP #$FF
C0/CB68:	F02A    	BEQ $CB94
C0/CB6A:	851A    	STA $1A
C0/CB6C:	293F    	AND #$3F
C0/CB6E:	18      	CLC
C0/CB6F:	69C0    	ADC #$C0
C0/CB71:	851B    	STA $1B
C0/CB73:	A51A    	LDA $1A
C0/CB75:	29C0    	AND #$C0
C0/CB77:	851A    	STA $1A
C0/CB79:	801F    	BRA $CB9A
C0/CB7B:	BD4306  	LDA $0643,X
C0/CB7E:	C9FF    	CMP #$FF
C0/CB80:	F012    	BEQ $CB94
C0/CB82:	851A    	STA $1A
C0/CB84:	293F    	AND #$3F
C0/CB86:	18      	CLC
C0/CB87:	69C0    	ADC #$C0
C0/CB89:	851B    	STA $1B
C0/CB8B:	A51A    	LDA $1A
C0/CB8D:	29C0    	AND #$C0
C0/CB8F:	1A      	INC A
C0/CB90:	851A    	STA $1A
C0/CB92:	8006    	BRA $CB9A
C0/CB94:	A901    	LDA #$01
C0/CB96:	851A    	STA $1A
C0/CB98:	641B    	STZ $1B
C0/CB9A:	A62A    	LDX $2A
C0/CB9C:	A526    	LDA $26
C0/CB9E:	18      	CLC
C0/CBA3:	8D8021  	STA $2180
C0/CBA6:	A528    	LDA $28
C0/CBA8:	18      	CLC
C0/CBAD:	8D8021  	STA $2180
C0/CBB0:	A51B    	LDA $1B
C0/CBB2:	8D8021  	STA $2180
C0/CBB5:	A51A    	LDA $1A
C0/CBB7:	8D8021  	STA $2180
C0/CBBA:	AC0308  	LDY $0803
C0/CBBD:	B97E08  	LDA $087E,Y
C0/CBC0:	D003    	BNE $CBC5
C0/CBC9:	AA      	TAX
C0/CBCA:	B5A3    	LDA $A3,X
C0/CBCC:	AA      	TAX
C0/CBCD:	A51E    	LDA $1E
C0/CBCF:	2904    	AND #$04
C0/CBD1:	F013    	BEQ $CBE6
C0/CBD3:	A5B8    	LDA $B8
C0/CBD5:	2907    	AND #$07
C0/CBD7:	C901    	CMP #$01
C0/CBD9:	F071    	BEQ $CC4C
C0/CBDB:	C902    	CMP #$02
C0/CBDD:	F054    	BEQ $CC33
C0/CBDF:	A5B2    	LDA $B2
C0/CBE1:	3A      	DEC A
C0/CBE2:	F068    	BEQ $CC4C
C0/CBE4:	804D    	BRA $CC33
C0/CBE6:	A51E    	LDA $1E
C0/CBE8:	2903    	AND #$03
C0/CBEA:	C902    	CMP #$02
C0/CBEC:	F013    	BEQ $CC01
C0/CBEE:	C903    	CMP #$03
C0/CBF0:	F01B    	BEQ $CC0D
C0/CBF2:	BF00767E	LDA $7E7600,X
C0/CBF6:	C9F7    	CMP #$F7
C0/CBF8:	F021    	BEQ $CC1B
C0/CBFA:	2907    	AND #$07
C0/CBFC:	3A      	DEC A
C0/CBFD:	F01C    	BEQ $CC1B
C0/CBFF:	804B    	BRA $CC4C
C0/CC01:	BF00767E	LDA $7E7600,X
C0/CC05:	2907    	AND #$07
C0/CC07:	C901    	CMP #$01
C0/CC09:	F041    	BEQ $CC4C
C0/CC0B:	800E    	BRA $CC1B
C0/CC0D:	BF00767E	LDA $7E7600,X
C0/CC11:	C9F7    	CMP #$F7
C0/CC13:	F006    	BEQ $CC1B
C0/CC15:	2902    	AND #$02
C0/CC17:	D002    	BNE $CC1B
C0/CC19:	8031    	BRA $CC4C
C0/CC1B:	BD4306  	LDA $0643,X
C0/CC1E:	C9FF    	CMP #$FF
C0/CC20:	F02A    	BEQ $CC4C
C0/CC22:	851A    	STA $1A
C0/CC24:	293F    	AND #$3F
C0/CC26:	18      	CLC
C0/CC27:	69C0    	ADC #$C0
C0/CC29:	851B    	STA $1B
C0/CC2B:	A51A    	LDA $1A
C0/CC2D:	29C0    	AND #$C0
C0/CC2F:	851A    	STA $1A
C0/CC31:	801F    	BRA $CC52
C0/CC33:	BD4306  	LDA $0643,X
C0/CC36:	C9FF    	CMP #$FF
C0/CC38:	F012    	BEQ $CC4C
C0/CC3A:	851A    	STA $1A
C0/CC3C:	293F    	AND #$3F
C0/CC3E:	18      	CLC
C0/CC3F:	69C0    	ADC #$C0
C0/CC41:	851B    	STA $1B
C0/CC43:	A51A    	LDA $1A
C0/CC45:	29C0    	AND #$C0
C0/CC47:	1A      	INC A
C0/CC48:	851A    	STA $1A
C0/CC4A:	8006    	BRA $CC52
C0/CC4C:	A901    	LDA #$01
C0/CC4E:	851A    	STA $1A
C0/CC50:	641B    	STZ $1B
C0/CC52:	A62A    	LDX $2A
C0/CC54:	A526    	LDA $26
C0/CC56:	18      	CLC
C0/CC57:	7F80CCC0	ADC $C0CC80,X
C0/CC5B:	8D8021  	STA $2180
C0/CC5E:	A528    	LDA $28
C0/CC60:	18      	CLC
C0/CC61:	7F81CCC0	ADC $C0CC81,X
C0/CC65:	8D8021  	STA $2180
C0/CC68:	A51B    	LDA $1B
C0/CC6A:	8D8021  	STA $2180
C0/CC6D:	A51A    	LDA $1A
C0/CC6F:	8D8021  	STA $2180
C0/CC72:	60      	RTS

C0/CC73 unknow

C0/CC73:	0000    	BRK #$00
C0/CC75:	060C    	ASL $0C
C0/CC77:	1218    	ORA ($18)
C0/CC79:	1E242A  	ASL $2A24,X
C0/CC7C:	3000    	BMI $CC7E
C0/CC7E:	F004    	BEQ $CC84
C0/CC80:	00E0    	BRK #$E0
C0/CC82:	0110    	ORA ($10,X)
C0/CC84:	0008    	BRK #$08
C0/CC86:	10F0    	BPL $CC78
C0/CC88:	0500    	ORA $00
C0/CC8A:	100A    	BPL $CC96
C0/CC8C:	0000    	BRK #$00
C0/CC8E:	07F0    	ORA [$F0]
C0/CC90:	0006    	BRK #$06
C0/CC92:	F0F0    	BEQ $CC84
C0/CC94:	03A6    	ORA $A6,S
C0/CC96:	009B    	BRK #$9B
C0/CC98:	A574    	LDA $74
C0/CC9A:	F00C    	BEQ $CCA8
C0/CC9C:	300A    	BMI $CCA8
C0/CC9E:	A55C    	LDA $5C
C0/CCA0:	3A      	DEC A
C0/CCA1:	290F    	AND #$0F
C0/CCA3:	1A      	INC A
C0/CCA4:	49FF    	EOR #$FF
C0/CCA6:	8006    	BRA $CCAE
C0/CCA8:	A55C    	LDA $5C
C0/CCAA:	290F    	AND #$0F
C0/CCAC:	49FF    	EOR #$FF
C0/CCAE:	38      	SEC 
C0/CCAF:	7D6307  	ADC $0763,X
C0/CCB2:	851A    	STA $1A
C0/CCB4:	A576    	LDA $76
C0/CCB6:	F00C    	BEQ $CCC4
C0/CCB8:	300A    	BMI $CCC4
C0/CCBA:	A560    	LDA $60
C0/CCBC:	3A      	DEC A
C0/CCBD:	290F    	AND #$0F
C0/CCBF:	1A      	INC A
C0/CCC0:	49FF    	EOR #$FF
C0/CCC2:	8006    	BRA $CCCA
C0/CCC4:	A560    	LDA $60
C0/CCC6:	290F    	AND #$0F
C0/CCC8:	49FF    	EOR #$FF
C0/CCCA:	38      	SEC 
C0/CCCB:	7D6407  	ADC $0764,X
C0/CCCE:	38      	SEC 
C0/CCCF:	E57F    	SBC $7F
C0/CCD1:	851B    	STA $1B
C0/CCD3:	BD6507  	LDA $0765,X
C0/CCD6:	F043    	BEQ $CD1B
C0/CCD8:	BD6607  	LDA $0766,X
C0/CCDB:	2901    	AND #$01
C0/CCDF:	A51A    	LDA $1A
C0/CCE1:	99E003  	STA $03E0,Y
C0/CCE4:	A51B    	LDA $1B
C0/CCE6:	99E103  	STA $03E1,Y
C0/CCE9:	BD6507  	LDA $0765,X
C0/CCEC:	99E203  	STA $03E2,Y
C0/CCEF:	BD6607  	LDA $0766,X
C0/CCF2:	29CE    	AND #$CE
C0/CCF4:	99E303  	STA $03E3,Y
C0/CCF7:	A9EF    	LDA #$EF
C0/CCF9:	99A104  	STA $04A1,Y
C0/CCFC:	801D    	BRA $CD1B
C0/CCFE:	A51A    	LDA $1A
C0/CD00:	99A004  	STA $04A0,Y
C0/CD03:	A51B    	LDA $1B
C0/CD05:	99A104  	STA $04A1,Y
C0/CD08:	BD6507  	LDA $0765,X
C0/CD0B:	99A204  	STA $04A2,Y
C0/CD0E:	BD6607  	LDA $0766,X
C0/CD11:	29CE    	AND #$CE
C0/CD13:	99A304  	STA $04A3,Y
C0/CD16:	A9EF    	LDA #$EF
C0/CD18:	99E103  	STA $03E1,Y
C0/CD1B:	C8      	INY 
C0/CD1C:	C8      	INY 
C0/CD1D:	C8      	INY 
C0/CD1E:	C8      	INY 
C0/CD1F:	E8      	INX
C0/CD20:	E8      	INX
C0/CD21:	E8      	INX
C0/CD22:	E8      	INX
C0/CD23:	E01000  	CPX #$0010
C0/CD26:	F003    	BEQ $CD2B
C0/CD28:	4C98CC  	JMP $CC98
C0/CD2B:	60      	RTS

C0/CD2C unknow

C0/CD2C:	7B      	TDC 
C0/CD2D:	8D6507  	STA $0765
C0/CD30:	8D6907  	STA $0769
C0/CD33:	8D6D07  	STA $076D
C0/CD36:	8D7107  	STA $0771
C0/CD39:	60      	RTS

C0/CD3A unknow

C0/CD3A:	0000    	BRK #$00
C0/CD3C:	0000    	BRK #$00
C0/CD3E:	0000    	BRK #$00
C0/CD40:	0000    	BRK #$00
C0/CD42:	0000    	BRK #$00
C0/CD44:	0000    	BRK #$00
C0/CD46:	0000    	BRK #$00
C0/CD48:	0000    	BRK #$00
C0/CD4A:	0000    	BRK #$00
C0/CD4C:	0000    	BRK #$00
C0/CD4E:	0000    	BRK #$00
C0/CD50:	0000    	BRK #$00
C0/CD52:	0000    	BRK #$00
C0/CD54:	0000    	BRK #$00
C0/CD56:	0000    	BRK #$00
C0/CD58:	0000    	BRK #$00
C0/CD5A:	0000    	BRK #$00
C0/CD5C:	0000    	BRK #$00
C0/CD5E:	0000    	BRK #$00
C0/CD60:	0000    	BRK #$00
C0/CD62:	0000    	BRK #$00
C0/CD64:	0000    	BRK #$00
C0/CD66:	0000    	BRK #$00
C0/CD68:	0000    	BRK #$00
C0/CD6A:	0000    	BRK #$00
C0/CD6C:	0000    	BRK #$00
C0/CD6E:	0000    	BRK #$00
C0/CD70:	0000    	BRK #$00
C0/CD72:	0000    	BRK #$00
C0/CD74:	0000    	BRK #$00
C0/CD76:	0000    	BRK #$00
C0/CD78:	0000    	BRK #$00
C0/CD7A:	40      	RTI
C0/CD7B:	40      	RTI
C0/CD7C:	40      	RTI
C0/CD7D:	40      	RTI
C0/CD7E:	40      	RTI
C0/CD7F:	40      	RTI
C0/CD80:	40      	RTI
C0/CD81:	40      	RTI
C0/CD82:	40      	RTI
C0/CD83:	40      	RTI
C0/CD84:	40      	RTI
C0/CD85:	40      	RTI
C0/CD86:	40      	RTI
C0/CD87:	40      	RTI
C0/CD88:	40      	RTI
C0/CD89:	40      	RTI
C0/CD8A:	40      	RTI
C0/CD8B:	40      	RTI
C0/CD8C:	40      	RTI
C0/CD8D:	40      	RTI
C0/CD8E:	40      	RTI
C0/CD8F:	40      	RTI
C0/CD90:	40      	RTI
C0/CD91:	40      	RTI
C0/CD92:	40      	RTI
C0/CD93:	40      	RTI
C0/CD94:	40      	RTI
C0/CD95:	40      	RTI
C0/CD96:	40      	RTI
C0/CD97:	40      	RTI
C0/CD98:	40      	RTI
C0/CD99:	40      	RTI
C0/CD9A:	40      	RTI
C0/CD9B:	40      	RTI
C0/CD9C:	40      	RTI
C0/CD9D:	40      	RTI
C0/CD9E:	40      	RTI
C0/CD9F:	40      	RTI
C0/CDA0:	40      	RTI
C0/CDA1:	40      	RTI
C0/CDA2:	40      	RTI
C0/CDA3:	40      	RTI
C0/CDA4:	40      	RTI
C0/CDA5:	40      	RTI
C0/CDA6:	40      	RTI
C0/CDA7:	40      	RTI
C0/CDA8:	40      	RTI
C0/CDA9:	40      	RTI
C0/CDAA:	40      	RTI
C0/CDAB:	40      	RTI
C0/CDAC:	40      	RTI
C0/CDAD:	40      	RTI
C0/CDAE:	40      	RTI
C0/CDAF:	40      	RTI
C0/CDB0:	40      	RTI
C0/CDB1:	40      	RTI
C0/CDB2:	40      	RTI
C0/CDB3:	40      	RTI
C0/CDB4:	40      	RTI
C0/CDB5:	40      	RTI
C0/CDB6:	40      	RTI
C0/CDB7:	40      	RTI
C0/CDB8:	40      	RTI
C0/CDB9:	40      	RTI
C0/CDBA:	0000    	BRK #$00
C0/CDBC:	40      	RTI
C0/CDBD:	0000    	BRK #$00
C0/CDBF:	40      	RTI
C0/CDC0:	0000    	BRK #$00
C0/CDC2:	0000    	BRK #$00
C0/CDC4:	0000    	BRK #$00
C0/CDC6:	0000    	BRK #$00
C0/CDC8:	0000    	BRK #$00
C0/CDCA:	0000    	BRK #$00
C0/CDCC:	0000    	BRK #$00
C0/CDCE:	0000    	BRK #$00
C0/CDD0:	0000    	BRK #$00
C0/CDD2:	0000    	BRK #$00
C0/CDD4:	0000    	BRK #$00
C0/CDD6:	0000    	BRK #$00
C0/CDD8:	0000    	BRK #$00
C0/CDDA:	0000    	BRK #$00
C0/CDDC:	0000    	BRK #$00
C0/CDDE:	0000    	BRK #$00
C0/CDE0:	0000    	BRK #$00
C0/CDE2:	0000    	BRK #$00
C0/CDE4:	0000    	BRK #$00
C0/CDE6:	0000    	BRK #$00
C0/CDE8:	0000    	BRK #$00
C0/CDEA:	0000    	BRK #$00
C0/CDEC:	0000    	BRK #$00
C0/CDEE:	0000    	BRK #$00
C0/CDF0:	0000    	BRK #$00
C0/CDF2:	0000    	BRK #$00
C0/CDF4:	0000    	BRK #$00
C0/CDF6:	0000    	BRK #$00
C0/CDF8:	0000    	BRK #$00
C0/CDFA:	40      	RTI
C0/CDFB:	40      	RTI
C0/CDFC:	40      	RTI
C0/CDFD:	0040    	BRK #$40
C0/CDFF:	0040    	BRK #$40
C0/CE01:	40      	RTI
C0/CE02:	40      	RTI
C0/CE03:	40      	RTI
C0/CE04:	40      	RTI
C0/CE05:	40      	RTI
C0/CE06:	40      	RTI
C0/CE07:	40      	RTI
C0/CE08:	40      	RTI
C0/CE09:	40      	RTI
C0/CE0A:	40      	RTI
C0/CE0B:	40      	RTI
C0/CE0C:	40      	RTI
C0/CE0D:	40      	RTI
C0/CE0E:	40      	RTI
C0/CE0F:	40      	RTI
C0/CE10:	40      	RTI
C0/CE11:	40      	RTI
C0/CE12:	40      	RTI
C0/CE13:	40      	RTI
C0/CE14:	40      	RTI
C0/CE15:	40      	RTI
C0/CE16:	40      	RTI
C0/CE17:	40      	RTI
C0/CE18:	40      	RTI
C0/CE19:	40      	RTI
C0/CE1A:	40      	RTI
C0/CE1B:	40      	RTI
C0/CE1C:	40      	RTI
C0/CE1D:	40      	RTI
C0/CE1E:	40      	RTI
C0/CE1F:	40      	RTI
C0/CE20:	40      	RTI
C0/CE21:	40      	RTI
C0/CE22:	40      	RTI
C0/CE23:	40      	RTI
C0/CE24:	40      	RTI
C0/CE25:	40      	RTI
C0/CE26:	40      	RTI
C0/CE27:	40      	RTI
C0/CE28:	40      	RTI
C0/CE29:	40      	RTI
C0/CE2A:	40      	RTI
C0/CE2B:	40      	RTI
C0/CE2C:	40      	RTI
C0/CE2D:	40      	RTI
C0/CE2E:	40      	RTI
C0/CE2F:	40      	RTI
C0/CE30:	40      	RTI
C0/CE31:	40      	RTI
C0/CE32:	40      	RTI
C0/CE33:	40      	RTI
C0/CE34:	40      	RTI
C0/CE35:	40      	RTI
C0/CE36:	40      	RTI
C0/CE37:	40      	RTI
C0/CE38:	40      	RTI
C0/CE39:	40      	RTI

C0/CE3A offsets of map character sprites (parts)

C0/CE3A:	00 00 20 00 40 00
C0/CE40:	60 00 80 00 A0 00
C0/CE46:	00 00 20 00 C0 00
C0/CE4C:	E0 00 00 01 20 01
C0/CE52:	00 00 20 00 40 01
C0/CE58:	60 01 80 00 A0 00
C0/CE5E:	80 01 A0 01 C0 01
C0/CE64:	E0 01 00 02 20 02
C0/CE6A:	80 01 A0 01 40 02
C0/CE70:	60 02 80 02 A0 02
C0/CE76:	80 01 A0 01 C0 02
C0/CE7C:	E0 02 00 02 20 02
C0/CE82:	00 03 20 03 40 03
C0/CE88:	60 03 80 03 A0 03
C0/CE8E:	C0 03 E0 03 00 04
C0/CE94:	20 04 40 04 60 04
C0/CE9A:	00 03 20 03 80 04
C0/CEA0:	A0 04 C0 04 E0 04
C0/CEA6:	00 07 20 07 40 07
C0/CEAC:	60 07 80 07 A0 07
C0/CEB2:	C0 07 E0 07 00 08
C0/CEB8:	20 08 40 08 60 08
C0/CEBE:	80 08 A0 08 C0 08
C0/CEC4:	E0 08 00 09 20 09
C0/CECA:	C0 03 E0 03 00 05
C0/CED0:	20 05 40 05 60 05
C0/CED6:	00 03 20 03 80 05
C0/CEDC:	60 03 A0 05 A0 03
C0/CEE2:	00 03 C0 05 E0 05
C0/CEE8:	00 06 20 06 40 06
C0/CEEE:	C0 03 60 06 80 06
C0/CEF4:	A0 06 C0 06 E0 06
C0/CEFA:	40 09 60 09 80 09
C0/CF00:	A0 09 C0 09 E0 09
C0/CF06:	40 09 60 09 00 0A
C0/CF0C:	A0 09 C0 09 E0 09
C0/CF12:	20 0A 40 0A 60 0A
C0/CF18:	80 0A A0 0A C0 0A
C0/CF1E:	00 00 20 00 A0 0B
C0/CF24:	C0 0B 00 01 20 01
C0/CF2A:	00 00 20 00 C0 00
C0/CF30:	E0 0B 00 01 20 01
C0/CF36:	C0 12 E0 03 E0 12
C0/CF3C:	20 04 40 04 60 04
C0/CF42:	40 0D 60 0D 80 0D
C0/CF48:	A0 0D C0 0D E0 0D
C0/CF4E:	00 0E 20 0E 40 0E
C0/CF54:	60 0E 80 0E A0 0E
C0/CF5A:	C0 0E E0 0E 00 0F
C0/CF60:	20 0F 40 0F 60 0F
C0/CF66:	40 0D 20 00 80 0D
C0/CF6C:	E0 00 C0 0D 20 01
C0/CF72:	40 10 20 00 60 10
C0/CF78:	E0 00 C0 0D 20 01
C0/CF7E:	80 01 20 0E 40 02
C0/CF84:	60 0E 80 02 A0 0E
C0/CF8A:	80 01 80 10 40 02
C0/CF90:	A0 10 80 02 A0 0E
C0/CF96:	00 0C 20 0C 40 0C
C0/CF9C:	60 0C 80 0C A0 0C
C0/CFA2:	C0 0C E0 0C 00 0D
C0/CFA8:	20 0D 80 0C A0 0C
C0/CFAE:	80 0F A0 0F C0 0F
C0/CFB4:	E0 0F 00 10 20 10
C0/CFBA:	C0 10 E0 10 00 11
C0/CFC0:	20 11 00 01 20 01
C0/CFC6:	40 11 60 11 80 11
C0/CFCC:	A0 11 80 02 A0 02
C0/CFD2:	C0 11 E0 11 00 12
C0/CFD8:	20 12 40 04 60 04
C0/CFDE:	40 12 60 12 80 12
C0/CFE4:	A0 12 00 01 20 01
C0/CFEA:	60 14 80 14 00 13
C0/CFF0:	20 13 40 13 60 13
C0/CFF6:	60 14 80 14 80 13
C0/CFFC:	20 13 40 13 60 13
C0/D002:	A0 13 C0 13 E0 13
C0/D008:	00 14 20 14 40 14
C0/D00E:	A0 14 C0 14 E0 14
C0/D014:	00 15 20 15 40 15
C0/D01A:	20 0A 40 0A 60 0A
C0/D020:	80 0A A0 0A C0 0A
C0/D026:	20 06 40 06 60 06
C0/D02C:	80 06 A0 06 C0 06
C0/D032:	00 05 20 00 20 05
C0/D038:	E0 00 40 05 20 01
C0/D03E:	60 05 20 00 80 05
C0/D044:	E0 00 40 05 20 01
C0/D04A:	A0 05 C0 05 E0 05
C0/D050:	00 06 00 01 20 01
C0/D056:	00 05 20 05 40 05
C0/D05C:	60 05 80 05 A0 05
C0/D062:	20 16 40 16 60 16
C0/D068:	80 16 E0 15 00 16
C0/D06E:	60 15 80 15 A0 15
C0/D074:	C0 15 E0 15 00 16
C0/D07A:	C0 00 20 00 E0 00
C0/D080:	60 00 00 01 A0 00
C0/D086:	20 01 40 01 40 00
C0/D08C:	60 00 80 00 A0 00
C0/D092:	00 00 00 00 20 00
C0/D098:	40 00 60 00 80 00
C0/D09E:	00 00 00 00 A0 00
C0/D0A4:	C0 00 E0 00 00 01
C0/D0AA:	00 00 00 00 20 01
C0/D0B0:	40 01 60 01 80 01
C0/D0B6:	00 00 00 00 A0 01
C0/D0BC:	C0 01 E0 01 00 02
C0/D0C2:	C0 05 E0 05 00 06
C0/D0C8:	20 06 40 06 60 06
C0/D0CE:	80 06 A0 06 C0 06
C0/D0D4:	E0 06 40 06 60 06
C0/D0DA:	80 06 A0 06 C0 06
C0/D0E0:	E0 06 40 06 60 06
C0/D0E6:	00 00 20 00 40 00
C0/D0EC:	40 00 40 00 40 00