Final Fantasy VI:ROM map/Assembly C04

From Data Crystal
Jump to: navigation, search

C0/4007 unknow

C0/4007:	A97E    	LDA #$7E
C0/4009:	48      	PHA
C0/400A:	AB      	PLB            (make the data bank reg. hold #$7E)
C0/400B:	A546    	LDA $46
C0/400D:	0A      	ASL A
C0/400E:	0A      	ASL A
C0/400F:	AA      	TAX
C0/4010:	A400    	LDY $00
C0/4012:	BF00FDC0	LDA $C0FD00,X  (random number!)
C0/4016:	C9C0    	CMP #$C0
C0/4018:	9006    	BCC $4020
C0/401A:	2930    	AND #$30
C0/401C:	0904    	ORA #$04
C0/401E:	8001    	BRA $4021
C0/4020:	7B      	TDC 
C0/4021:	99D381  	STA $81D3,Y
C0/4024:	E8      	INX
C0/4025:	C8      	INY 
C0/4026:	C8      	INY 
C0/4027:	C8      	INY 
C0/4028:	C8      	INY 
C0/4029:	C02000  	CPY #$0020
C0/402C:	D0E4    	BNE $4012
C0/402E:	7B      	TDC 
C0/402F:	48      	PHA
C0/4030:	AB      	PLB            (make the data bank reg. hold #$00)
C0/4031:	60      	RTS

C0/4032 unknow

C0/4032:	A97E    	LDA #$7E		(from only C0/394C)
C0/4034:	48      	PHA
C0/4035:	AB      	PLB            (make the data bank reg. hold #$7E)
C0/4036:	C220    	REP #$20      	(16 bit accum./memory)
C0/4038:	A600    	LDX $00
C0/403A:	A97382  	LDA #$8273
C0/403D:	9DFA7B  	STA $7BFA,X
C0/4040:	A99382  	LDA #$8293
C0/4043:	9DFD7B  	STA $7BFD,X
C0/4046:	A9B382  	LDA #$82B3
C0/4049:	9D557C  	STA $7C55,X
C0/404C:	A9D382  	LDA #$82D3
C0/404F:	9D587C  	STA $7C58,X
C0/4052:	A9F382  	LDA #$82F3
C0/4055:	9DB07C  	STA $7CB0,X
C0/4058:	9DB37C  	STA $7CB3,X
C0/405B:	E8      	INX
C0/405C:	E8      	INX
C0/405D:	E8      	INX
C0/405E:	E8      	INX
C0/405F:	E8      	INX
C0/4060:	E8      	INX
C0/4061:	E04E00  	CPX #$004E
C0/4064:	D0D4    	BNE $403A
C0/4066:	A600    	LDX $00
C0/4068:	7B      	TDC 
C0/4069:	9D1383  	STA $8313,X
C0/406C:	E8      	INX
C0/406D:	E8      	INX
C0/406E:	E02002  	CPX #$0220
C0/4071:	D0F6    	BNE $4069
C0/4073:	A600    	LDX $00
C0/4075:	9B      	TXY
C0/4076:	BF3642C0	LDA $C04236,X
C0/407A:	29FF00  	AND #$00FF
C0/407D:	993583  	STA $8335,Y
C0/4080:	C8      	INY 
C0/4081:	C8      	INY 
C0/4082:	C8      	INY 
C0/4083:	C8      	INY 
C0/4084:	E8      	INX
C0/4085:	E08000  	CPX #$0080
C0/4088:	D0EC    	BNE $4076
C0/408A:	A600    	LDX $00
C0/408C:	9B      	TXY
C0/408D:	7B      	TDC 
C0/408E:	99F385  	STA $85F3,Y
C0/4091:	BF1641C0	LDA $C04116,X
C0/4095:	29FF00  	AND #$00FF
C0/4098:	99F585  	STA $85F5,Y
C0/409B:	E8      	INX
C0/409C:	E8      	INX
C0/409D:	C8      	INY 
C0/409E:	C8      	INY 
C0/409F:	C8      	INY 
C0/40A0:	C8      	INY 
C0/40A1:	C02001  	CPY #$0120
C0/40A4:	D0E7    	BNE $408D
C0/40A6:	A600    	LDX $00
C0/40A8:	9B      	TXY
C0/40A9:	7B      	TDC 
C0/40AA:	997385  	STA $8573,Y
C0/40AD:	BFF241C0	LDA $C041F2,X
C0/40B1:	29FF00  	AND #$00FF
C0/40B4:	997585  	STA $8575,Y
C0/40B7:	E8      	INX
C0/40B8:	E8      	INX
C0/40B9:	C8      	INY 
C0/40BA:	C8      	INY 
C0/40BB:	C8      	INY 
C0/40BC:	C8      	INY 
C0/40BD:	C08000  	CPY #$0080
C0/40C0:	D0E7    	BNE $40A9
C0/40C2:	A600    	LDX $00
C0/40C4:	7B      	TDC 
C0/40C5:	9D3385  	STA $8533,X
C0/40C8:	E8      	INX
C0/40C9:	E8      	INX
C0/40CA:	E02000  	CPX #$0020
C0/40CD:	D0F6    	BNE $40C5
C0/40CF:	A600    	LDX $00
C0/40D1:	7B      	TDC 
C0/40D2:	7B      	TDC 
C0/40D3:	9D5385  	STA $8553,X
C0/40D6:	A92800  	LDA #$0028
C0/40D9:	9D5585  	STA $8555,X
C0/40DC:	E8      	INX
C0/40DD:	E8      	INX
C0/40DE:	E8      	INX
C0/40DF:	E8      	INX
C0/40E0:	E02000  	CPX #$0020
C0/40E3:	D0ED    	BNE $40D2
C0/40E5:	A600    	LDX $00
C0/40E7:	A9B000  	LDA #$00B0
C0/40EA:	9D1587  	STA $8715,X
C0/40ED:	7B      	TDC 
C0/40EE:	9D1387  	STA $8713,X
C0/40F1:	E8      	INX
C0/40F2:	E8      	INX
C0/40F3:	E8      	INX
C0/40F4:	E8      	INX
C0/40F5:	E02000  	CPX #$0020
C0/40F8:	D0ED    	BNE $40E7
C0/40FA:	A600    	LDX $00
C0/40FC:	A9B800  	LDA #$00B8
C0/40FF:	9D3587  	STA $8735,X
C0/4102:	7B      	TDC 
C0/4103:	9D3387  	STA $8733,X
C0/4106:	E8      	INX
C0/4107:	E8      	INX
C0/4108:	E8      	INX
C0/4109:	E8      	INX
C0/410A:	E02000  	CPX #$0020
C0/410D:	D0ED    	BNE $40FC
C0/410F:	7B      	TDC 
C0/4110:	E220    	SEP #$20       (8 bit accum./memory)
C0/4112:	7B      	TDC 
C0/4113:	48      	PHA
C0/4114:	AB      	PLB            (make the data bank reg. hold #$00)
C0/4115:	60      	RTS

C0/4116 unknow

C0/4116:	FCFFFC  	JSR ($FCFF,X)
C0/4195:	FFFFFF00	SBC $00FFFF,X
C0/4199:	0000    	BRK #$00
C0/419B:	0000    	BRK #$00
C0/419D:	0000    	BRK #$00
C0/419F:	0000    	BRK #$00
C0/41A1:	0000    	BRK #$00
C0/41A3:	0000    	BRK #$00
C0/41A5:	0000    	BRK #$00
C0/41A7:	0000    	BRK #$00
C0/41A9:	0000    	BRK #$00
C0/41AB:	0000    	BRK #$00
C0/41AD:	0000    	BRK #$00
C0/41AF:	0000    	BRK #$00
C0/41B1:	0000    	BRK #$00
C0/41B3:	0000    	BRK #$00
C0/41B5:	0001    	BRK #$01
C0/41B7:	0001    	BRK #$01
C0/41B9:	0001    	BRK #$01
C0/41BB:	0001    	BRK #$01
C0/41BD:	0001    	BRK #$01
C0/41BF:	0001    	BRK #$01
C0/41C1:	0001    	BRK #$01
C0/41C3:	0001    	BRK #$01
C0/41C5:	0001    	BRK #$01
C0/41C7:	0001    	BRK #$01
C0/41C9:	0001    	BRK #$01
C0/41CB:	0001    	BRK #$01
C0/41CD:	0001    	BRK #$01
C0/41CF:	0001    	BRK #$01
C0/41D1:	0001    	BRK #$01
C0/41D3:	0001    	BRK #$01
C0/41D5:	0001    	BRK #$01
C0/41D7:	0001    	BRK #$01
C0/41D9:	0001    	BRK #$01
C0/41DB:	0001    	BRK #$01
C0/41DD:	0001    	BRK #$01
C0/41DF:	0001    	BRK #$01
C0/41E1:	0001    	BRK #$01
C0/41E3:	0001    	BRK #$01
C0/41E5:	0001    	BRK #$01
C0/41E7:	0001    	BRK #$01
C0/41E9:	0001    	BRK #$01
C0/41EB:	0001    	BRK #$01
C0/41ED:	0001    	BRK #$01
C0/41EF:	0001    	BRK #$01
C0/41F1:	00FA    	BRK #$FA
C0/421F:	0000    	BRK #$00
C0/4221:	0000    	BRK #$00
C0/4223:	0000    	BRK #$00
C0/4225:	0000    	BRK #$00
C0/4227:	0000    	BRK #$00
C0/4229:	0000    	BRK #$00
C0/422B:	0000    	BRK #$00
C0/422D:	0000    	BRK #$00
C0/422F:	0000    	BRK #$00
C0/4231:	0000    	BRK #$00
C0/4233:	0000    	BRK #$00
C0/4235:	00F8    	BRK #$F8
C0/4237:	F8      	SED 
C0/4238:	F9F9F9  	SBC $F9F9,Y
C0/423E:	FA      	PLX
C0/423F:	FB      	XCE 
C0/4240:	FB      	XCE 
C0/4241:	FB      	XCE 
C0/4242:	FB      	XCE 
C0/4243:	FCFCFC  	JSR ($FCFC,X)
C0/424F:	FFFF0000	SBC $0000FF,X
C0/4253:	0101    	ORA ($01,X)
C0/4255:	0101    	ORA ($01,X)
C0/4257:	0202    	COP #$02
C0/4259:	0203    	COP #$03
C0/425B:	0303    	ORA $03,S
C0/425D:	0304    	ORA $04,S
C0/425F:	0404    	TSB $04
C0/4261:	0505    	ORA $05
C0/4263:	0505    	ORA $05
C0/4265:	0606    	ASL $06
C0/4267:	0607    	ASL $07
C0/4269:	0707    	ORA [$07]
C0/426B:	0708    	ORA [$08]
C0/426D:	08      	PHP 
C0/426E:	F0F1    	BEQ $4261
C0/4270:	F2F2    	SBC ($F2)
C0/4272:	F3F4    	SBC ($F4,S),Y
C0/4274:	F5F6    	SBC $F6,X
C0/4276:	F6F7    	INC $F7,X
C0/4278:	F8      	SED 
C0/4279:	F9FAFA  	SBC $FAFA,Y
C0/427C:	FB      	XCE 
C0/4280:	FEFF01  	INC $01FF,X
C0/4283:	0202    	COP #$02
C0/4285:	0304    	ORA $04,S
C0/4287:	0506    	ORA $06
C0/4289:	0607    	ASL $07
C0/428B:	08      	PHP 
C0/428C:	090A    	ORA #$0A
C0/428E:	0A      	ASL A
C0/428F:	0B      	PHD
C0/4290:	0C0D0E  	TSB $0E0D
C0/4293:	0E0F10  	ASL $100F
C0/4296:	E8      	INX
C0/4297:	EA      	NOP
C0/4298:	ECEEF0  	CPX $F0EE
C0/429B:	F2F4    	SBC ($F4)
C0/429D:	F6F8    	INC $F8,X
C0/429F:	FA      	PLX
C0/42A0:	FCFE02  	JSR ($02FE,X)
C0/42A3:	0406    	TSB $06
C0/42A5:	08      	PHP 
C0/42A6:	0A      	ASL A
C0/42A7:	0C0E10  	TSB $100E
C0/42AA:	1214    	ORA ($14)
C0/42AC:	1618    	ASL $18,X
C0/42AE:	E0E8F0  	CPX #$F0E8
C0/42B1:	F8      	SED 
C0/42B2:	08      	PHP 
C0/42B3:	1018    	BPL $42CD
C0/42B5:	20

C0/42B6 unknow

C0/42B6:	C220    	REP #$20      	(from C0/BFA0, 8 bit accum./memory)
C0/42B8:	A564    	LDA $64
C0/42BA:	38      	SEC 
C0/42BB:	E90800  	SBC #$0008
C0/42BE:	E220    	SEP #$20
C0/42C0:	8D0F21  	STA $210F
C0/42C3:	EB      	XBA
C0/42C4:	8D0F21  	STA $210F
C0/42C7:	C220    	REP #$20      	(16 bit accum./memory)
C0/42C9:	A568    	LDA $68
C0/42CB:	18      	CLC
C0/42CC:	6D4E07  	ADC $074E
C0/42CF:	E220    	SEP #$20      	(8 bit accum./memory)
C0/42D1:	8D1021  	STA $2110
C0/42D4:	EB      	XBA
C0/42D5:	8D1021  	STA $2110
C0/42D8:	7B      	TDC 
C0/42D9:	A97E    	LDA #$7E
C0/42DB:	48      	PHA
C0/42DC:	AB      	PLB            (make the data bank reg. hold #$7E)
C0/42DD:	C220    	REP #$20      	(16 bit accum./memory)
C0/42DF:	A55C    	LDA $5C
C0/42E1:	38      	SEC 
C0/42E2:	E90800  	SBC #$0008
C0/42E5:	8D7382  	STA $8273
C0/42E8:	8D7782  	STA $8277
C0/42EB:	8D7B82  	STA $827B
C0/42EE:	8D7F82  	STA $827F
C0/42F1:	8D8382  	STA $8283
C0/42F4:	8D8782  	STA $8287
C0/42F7:	8D8B82  	STA $828B
C0/42FA:	8D8F82  	STA $828F
C0/42FD:	8D9382  	STA $8293
C0/4300:	8D9782  	STA $8297
C0/4303:	8D9B82  	STA $829B
C0/4306:	8D9F82  	STA $829F
C0/4309:	8DA382  	STA $82A3
C0/430C:	8DA782  	STA $82A7
C0/430F:	8DAB82  	STA $82AB
C0/4312:	8DAF82  	STA $82AF
C0/4315:	A564    	LDA $64
C0/4317:	38      	SEC 
C0/4318:	E90800  	SBC #$0008
C0/431B:	8DB382  	STA $82B3
C0/431E:	8DB782  	STA $82B7
C0/4321:	8DBB82  	STA $82BB
C0/4324:	8DBF82  	STA $82BF
C0/4327:	8DC382  	STA $82C3
C0/432A:	8DC782  	STA $82C7
C0/432D:	8DCB82  	STA $82CB
C0/4330:	8DCF82  	STA $82CF
C0/4333:	8DD382  	STA $82D3
C0/4336:	8DD782  	STA $82D7
C0/4339:	8DDB82  	STA $82DB
C0/433C:	8DDF82  	STA $82DF
C0/433F:	8DE382  	STA $82E3
C0/4342:	8DE782  	STA $82E7
C0/4345:	8DEB82  	STA $82EB
C0/4348:	8DEF82  	STA $82EF
C0/434B:	A56C    	LDA $6C
C0/434D:	38      	SEC 
C0/434E:	E90800  	SBC #$0008
C0/4351:	8DF382  	STA $82F3
C0/4354:	8DF782  	STA $82F7
C0/4357:	8DFB82  	STA $82FB
C0/435A:	8DFF82  	STA $82FF
C0/435D:	8D0383  	STA $8303
C0/4360:	8D0783  	STA $8307
C0/4363:	8D0B83  	STA $830B
C0/4366:	8D0F83  	STA $830F
C0/4369:	A560    	LDA $60
C0/436B:	18      	CLC
C0/436C:	6D4C07  	ADC $074C
C0/436F:	8D7582  	STA $8275
C0/4372:	8D7982  	STA $8279
C0/4375:	8D7D82  	STA $827D
C0/4378:	8D8182  	STA $8281
C0/437B:	8D8582  	STA $8285
C0/437E:	8D8982  	STA $8289
C0/4381:	8D8D82  	STA $828D
C0/4384:	8D9182  	STA $8291
C0/4387:	8D9582  	STA $8295
C0/438A:	8D9982  	STA $8299
C0/438D:	8D9D82  	STA $829D
C0/4390:	8DA182  	STA $82A1
C0/4393:	8DA582  	STA $82A5
C0/4396:	8DA982  	STA $82A9
C0/4399:	8DAD82  	STA $82AD
C0/439C:	8DB182  	STA $82B1
C0/439F:	7B      	TDC 
C0/43A0:	E220    	SEP #$20      	(8 bit accum./memory)
C0/43A2:	AD2105  	LDA $0521
C0/43A5:	2910    	AND #$10
C0/43A7:	D003    	BNE $43AC
C0/43A9:	4C4A44  	JMP $444A

C0/43AC unknow

C0/43AC:	A546    	LDA $46
C0/43AE:	4A      	LSR A
C0/43AF:	18      	CLC
C0/43B0:	6560    	ADC $60
C0/43B2:	290F    	AND #$0F
C0/43B4:	0A      	ASL A
C0/43B5:	AA      	TAX
C0/43B6:	C220    	REP #$20      	(16 bit accum./memory)
C0/43B8:	A460    	LDY $60
C0/43BA:	98      	TYA
C0/43BB:	18      	CLC
C0/43BC:	7F6745C0	ADC $C04567,X
C0/43C0:	8D7582  	STA $8275
C0/43C3:	98      	TYA
C0/43C4:	18      	CLC
C0/43C5:	7F6945C0	ADC $C04569,X
C0/43C9:	8D7982  	STA $8279
C0/43CC:	98      	TYA
C0/43CD:	18      	CLC
C0/43CE:	7F6B45C0	ADC $C0456B,X
C0/43D2:	8D7D82  	STA $827D
C0/43D5:	98      	TYA
C0/43D6:	18      	CLC
C0/43D7:	7F6D45C0	ADC $C0456D,X
C0/43DB:	8D8182  	STA $8281
C0/43DE:	98      	TYA
C0/43DF:	18      	CLC
C0/43E0:	7F6F45C0	ADC $C0456F,X
C0/43E4:	8D8582  	STA $8285
C0/43E7:	98      	TYA
C0/43E8:	18      	CLC
C0/43E9:	7F7145C0	ADC $C04571,X
C0/43ED:	8D8982  	STA $8289
C0/43F0:	98      	TYA
C0/43F1:	18      	CLC
C0/43F2:	7F7345C0	ADC $C04573,X
C0/43F6:	8D8D82  	STA $828D
C0/43F9:	98      	TYA
C0/43FA:	18      	CLC
C0/43FB:	7F7545C0	ADC $C04575,X
C0/43FF:	8D9182  	STA $8291
C0/4402:	98      	TYA
C0/4403:	18      	CLC
C0/4404:	7F7745C0	ADC $C04577,X
C0/4408:	8D9582  	STA $8295
C0/440B:	98      	TYA
C0/440C:	18      	CLC
C0/440D:	7F7945C0	ADC $C04579,X
C0/4411:	8D9982  	STA $8299
C0/4414:	98      	TYA
C0/4415:	18      	CLC
C0/4416:	7F7B45C0	ADC $C0457B,X
C0/441A:	8D9D82  	STA $829D
C0/441D:	98      	TYA
C0/441E:	18      	CLC
C0/441F:	7F7D45C0	ADC $C0457D,X
C0/4423:	8DA182  	STA $82A1
C0/4426:	98      	TYA
C0/4427:	18      	CLC
C0/4428:	7F7F45C0	ADC $C0457F,X
C0/442C:	8DA582  	STA $82A5
C0/442F:	98      	TYA
C0/4430:	18      	CLC
C0/4431:	7F8145C0	ADC $C04581,X
C0/4435:	8DA982  	STA $82A9
C0/4438:	98      	TYA
C0/4439:	18      	CLC
C0/443A:	7F8345C0	ADC $C04583,X
C0/443E:	8DAD82  	STA $82AD
C0/4441:	98      	TYA
C0/4442:	18      	CLC
C0/4443:	7F8545C0	ADC $C04585,X
C0/4447:	8DB182  	STA $82B1
C0/444A:	7B      	TDC 
C0/444B:	E220    	SEP #$20      	(8 bit accum./memory)
C0/444D:	AD2105  	LDA $0521
C0/4450:	2908    	AND #$08
C0/4452:	D003    	BNE $4457
C0/4454:	4CF844  	JMP $44F8

C0/4457 unknow

C0/4457:	A546    	LDA $46
C0/4459:	4A      	LSR A
C0/445A:	18      	CLC
C0/445B:	6568    	ADC $68
C0/445D:	18      	CLC
C0/445E:	6908    	ADC #$08
C0/4460:	290F    	AND #$0F
C0/4462:	0A      	ASL A
C0/4463:	AA      	TAX
C0/4464:	C220    	REP #$20      	(16 bit accum./memory)
C0/4466:	A468    	LDY $68
C0/4468:	98      	TYA
C0/4469:	18      	CLC
C0/446A:	7F6745C0	ADC $C04567,X
C0/446E:	8DB582  	STA $82B5
C0/4471:	98      	TYA
C0/4472:	18      	CLC
C0/4473:	7F6945C0	ADC $C04569,X
C0/4477:	8DB982  	STA $82B9
C0/447A:	98      	TYA
C0/447B:	18      	CLC
C0/447C:	7F6B45C0	ADC $C0456B,X
C0/4480:	8DBD82  	STA $82BD
C0/4483:	98      	TYA
C0/4484:	18      	CLC
C0/4485:	7F6D45C0	ADC $C0456D,X
C0/4489:	8DC182  	STA $82C1
C0/448C:	98      	TYA
C0/448D:	18      	CLC
C0/448E:	7F6F45C0	ADC $C0456F,X
C0/4492:	8DC582  	STA $82C5
C0/4495:	98      	TYA
C0/4496:	18      	CLC
C0/4497:	7F7145C0	ADC $C04571,X
C0/449B:	8DC982  	STA $82C9
C0/449E:	98      	TYA
C0/449F:	18      	CLC
C0/44A0:	7F7345C0	ADC $C04573,X
C0/44A4:	8DCD82  	STA $82CD
C0/44A7:	98      	TYA
C0/44A8:	18      	CLC
C0/44A9:	7F7545C0	ADC $C04575,X
C0/44AD:	8DD182  	STA $82D1
C0/44B0:	98      	TYA
C0/44B1:	18      	CLC
C0/44B2:	7F7745C0	ADC $C04577,X
C0/44B6:	8DD582  	STA $82D5
C0/44B9:	98      	TYA
C0/44BA:	18      	CLC
C0/44BB:	7F7945C0	ADC $C04579,X
C0/44BF:	8DD982  	STA $82D9
C0/44C2:	98      	TYA
C0/44C3:	18      	CLC
C0/44C4:	7F7B45C0	ADC $C0457B,X
C0/44C8:	8DDD82  	STA $82DD
C0/44CB:	98      	TYA
C0/44CC:	18      	CLC
C0/44CD:	7F7D45C0	ADC $C0457D,X
C0/44D1:	8DE182  	STA $82E1
C0/44D4:	98      	TYA
C0/44D5:	18      	CLC
C0/44D6:	7F7F45C0	ADC $C0457F,X
C0/44DA:	8DE582  	STA $82E5
C0/44DD:	98      	TYA
C0/44DE:	18      	CLC
C0/44DF:	7F8145C0	ADC $C04581,X
C0/44E3:	8DE982  	STA $82E9
C0/44E6:	98      	TYA
C0/44E7:	18      	CLC
C0/44E8:	7F8345C0	ADC $C04583,X
C0/44EC:	8DED82  	STA $82ED
C0/44EF:	98      	TYA
C0/44F0:	18      	CLC
C0/44F1:	7F8545C0	ADC $C04585,X
C0/44F5:	8DF182  	STA $82F1
C0/44F8:	7B      	TDC 
C0/44F9:	E220    	SEP #$20      	(8 bit accum./memory)
C0/44FB:	A546    	LDA $46
C0/44FD:	4A      	LSR A
C0/44FE:	4A      	LSR A
C0/44FF:	4A      	LSR A
C0/4500:	18      	CLC
C0/4501:	6570    	ADC $70
C0/4503:	2907    	AND #$07
C0/4505:	0A      	ASL A
C0/4506:	AA      	TAX
C0/4507:	AD2105  	LDA $0521
C0/450A:	2904    	AND #$04
C0/450C:	D003    	BNE $4511
C0/450E:	A22000  	LDX #$0020
C0/4511:	C221    	REP #$21
C0/4513:	A570    	LDA $70
C0/4515:	6D5007  	ADC $0750
C0/4518:	A8      	TAY
C0/4519:	18      	CLC
C0/451A:	7FE745C0	ADC $C045E7,X
C0/451E:	8DF582  	STA $82F5
C0/4521:	98      	TYA
C0/4522:	18      	CLC
C0/4523:	7FE945C0	ADC $C045E9,X
C0/4527:	8DF982  	STA $82F9
C0/452A:	98      	TYA
C0/452B:	18      	CLC
C0/452C:	7FEB45C0	ADC $C045EB,X
C0/4530:	8DFD82  	STA $82FD
C0/4533:	98      	TYA
C0/4534:	18      	CLC
C0/4535:	7FED45C0	ADC $C045ED,X
C0/4539:	8D0183  	STA $8301
C0/453C:	98      	TYA
C0/453D:	18      	CLC
C0/453E:	7FEF45C0	ADC $C045EF,X
C0/4542:	8D0583  	STA $8305
C0/4545:	98      	TYA
C0/4546:	18      	CLC
C0/4547:	7FF145C0	ADC $C045F1,X
C0/454B:	8D0983  	STA $8309
C0/454E:	98      	TYA
C0/454F:	18      	CLC
C0/4550:	7FF345C0	ADC $C045F3,X
C0/4554:	8D0D83  	STA $830D
C0/4557:	98      	TYA
C0/4558:	18      	CLC
C0/4559:	7FF545C0	ADC $C045F5,X
C0/455D:	8D1183  	STA $8311
C0/4560:	7B      	TDC 
C0/4561:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4563:	7B      	TDC 
C0/4564:	48      	PHA
C0/4565:	AB      	PLB            (make the data bank reg. hold #$00)
C0/4566:	60      	RTS

C0/4567 unknow

C0/4567:	0000    	BRK #$00
C0/4569:	0100    	ORA ($00,X)
C0/456B:	0100    	ORA ($00,X)
C0/456D:	0200    	COP #$00
C0/456F:	0200    	COP #$00
C0/4571:	0200    	COP #$00
C0/4573:	0100    	ORA ($00,X)
C0/4575:	0100    	ORA ($00,X)
C0/4577:	0000    	BRK #$00
C0/4584:	FFFFFF00	SBC $00FFFF,X
C0/4588:	0001    	BRK #$01
C0/458A:	0001    	BRK #$01
C0/458C:	0002    	BRK #$02
C0/458E:	0002    	BRK #$02
C0/4590:	0002    	BRK #$02
C0/4592:	0001    	BRK #$01
C0/4594:	0001    	BRK #$01
C0/4596:	0000    	BRK #$00
C0/4598:	00FF    	BRK #$FF
C0/45A6:	FF000000	SBC $000000,X
C0/45AA:	0000    	BRK #$00
C0/45AC:	0000    	BRK #$00
C0/45AE:	0000    	BRK #$00
C0/45B0:	0000    	BRK #$00
C0/45B2:	0000    	BRK #$00
C0/45B4:	0000    	BRK #$00
C0/45B6:	0000    	BRK #$00
C0/45B8:	0000    	BRK #$00
C0/45BA:	0000    	BRK #$00
C0/45BC:	0000    	BRK #$00
C0/45BE:	0000    	BRK #$00
C0/45C0:	0000    	BRK #$00
C0/45C2:	0000    	BRK #$00
C0/45C4:	0000    	BRK #$00
C0/45C6:	0000    	BRK #$00
C0/45C8:	0000    	BRK #$00
C0/45CA:	0000    	BRK #$00
C0/45CC:	0000    	BRK #$00
C0/45CE:	0000    	BRK #$00
C0/45D0:	0000    	BRK #$00
C0/45D2:	0000    	BRK #$00
C0/45D4:	0000    	BRK #$00
C0/45D6:	0000    	BRK #$00
C0/45D8:	0000    	BRK #$00
C0/45DA:	0000    	BRK #$00
C0/45DC:	0000    	BRK #$00
C0/45DE:	0000    	BRK #$00
C0/45E0:	0000    	BRK #$00
C0/45E2:	0000    	BRK #$00
C0/45E4:	0000    	BRK #$00
C0/45E6:	0000    	BRK #$00
C0/45E8:	0001    	BRK #$01
C0/45EA:	0001    	BRK #$01
C0/45EC:	0001    	BRK #$01
C0/45EE:	0000    	BRK #$00
C0/45F0:	00FF    	BRK #$FF
C0/45F6:	FF000001	SBC $010000,X
C0/45FA:	0001    	BRK #$01
C0/45FC:	0001    	BRK #$01
C0/45FE:	0000    	BRK #$00
C0/4600:	00FF    	BRK #$FF
C0/4606:	FF000000	SBC $000000,X
C0/460A:	0000    	BRK #$00
C0/460C:	0000    	BRK #$00
C0/460E:	0000    	BRK #$00
C0/4610:	0000    	BRK #$00
C0/4612:	0000    	BRK #$00
C0/4614:	0000    	BRK #$00
C0/4616:	0000    	BRK #$00
C0/4618:	0000    	BRK #$00
C0/461A:	0000    	BRK #$00
C0/461C:	0000    	BRK #$00
C0/461E:	0000    	BRK #$00
C0/4620:	0000    	BRK #$00
C0/4622:	0000    	BRK #$00
C0/4624:	0000    	BRK #$00
C0/4626:	00

C0/4627 unknow

C0/4627:	AC0308    	LDY $0803,Y		(from C0/BEFB)
C0/462A:	ADC01F  	LDA $1FC0
C0/462D:	C220    	REP #$20      (16 bit accum./memory)
C0/462F:	0A      	ASL A
C0/4630:	0A      	ASL A
C0/4631:	0A      	ASL A
C0/4632:	0A      	ASL A
C0/4633:	E220    	SEP #$20      (8 bit accum./memory)
C0/4635:	996A08  	STA $086A,Y
C0/4638:	EB      	XBA
C0/4639:	996B08  	STA $086B,Y
C0/463C:	7B      	TDC 
C0/463D:	ADC11F  	LDA $1FC1
C0/4640:	C220    	REP #$20      (16 bit accum./memory)
C0/4642:	0A      	ASL A
C0/4643:	0A      	ASL A
C0/4644:	0A      	ASL A
C0/4645:	0A      	ASL A
C0/4646:	E220    	SEP #$20      (8 bit accum./memory)
C0/4648:	996D08  	STA $086D,Y
C0/464B:	EB      	XBA
C0/464C:	996E08  	STA $086E,Y
C0/464F:	7B      	TDC 
C0/4650:	60      	RTS

C0/4651 unknow

C0/4651:	AC0308  	LDY $0803
C0/4654:	AD4307  	LDA $0743
C0/4657:	300E    	BMI $4667
C0/4659:	997F08  	STA $087F,Y
C0/465C:	AA      	TAX
C0/465D:	BF2D58C0	LDA $C0582D,X
C0/4661:	997608  	STA $0876,Y
C0/4664:	997708  	STA $0877,Y
C0/4667:	7B      	TDC 
C0/4668:	997E08  	STA $087E,Y
C0/466B:	998608  	STA $0886,Y
C0/466E:	C220    	REP #$20      (16 bit accum./memory)
C0/4670:	997108  	STA $0871,Y
C0/4673:	997308  	STA $0873,Y
C0/4676:	E220    	SEP #$20      (8 bit accum./memory)
C0/4678:	A902    	LDA #$02
C0/467A:	997508  	STA $0875,Y
C0/467D:	60      	RTS

C0/467E unknow

C0/467E:	204450  	JSR $5044
C0/4681:	AC0308  	LDY $0803
C0/4684:	A5B8    	LDA $B8
C0/4686:	2904    	AND #$04
C0/4688:	F03B    	BEQ $46C5
C0/468A:	AD4407  	LDA $0744
C0/468D:	85B2    	STA $B2
C0/468F:	C902    	CMP #$02
C0/4691:	F018    	BEQ $46AB
C0/4693:	A2F800  	LDX #$00F8
C0/4696:	86B4    	STX $B4
C0/4698:	B98008  	LDA $0880,Y
C0/469B:	0930    	ORA #$30
C0/469D:	998008  	STA $0880,Y
C0/46A0:	B98108  	LDA $0881,Y
C0/46A3:	29CF    	AND #$CF
C0/46A5:	0920    	ORA #$20
C0/46A7:	998108  	STA $0881,Y
C0/46AA:	60      	RTS

C0/46AB unknow

C0/46AB:	A2B801  	LDX #$01B8
C0/46AE:	86B4    	STX $B4
C0/46B0:	B98008  	LDA $0880,Y
C0/46B3:	29CF    	AND #$CF
C0/46B5:	0920    	ORA #$20
C0/46B7:	998008  	STA $0880,Y
C0/46BA:	B98108  	LDA $0881,Y
C0/46BD:	29CF    	AND #$CF
C0/46BF:	0920    	ORA #$20
C0/46C1:	998108  	STA $0881,Y
C0/46C4:	60      	RTS

C0/46C5 unknow

C0/46C5:	A5B8    	LDA $B8		(is this function ever called?)
C0/46C7:	2903    	AND #$03
C0/46C9:	8DB200  	STA $00B2
C0/46CC:	B98108  	LDA $0881,Y
C0/46CF:	29CF    	AND #$CF
C0/46D1:	0920    	ORA #$20
C0/46D3:	998108  	STA $0881,Y
C0/46D6:	A5B8    	LDA $B8
C0/46D8:	2908    	AND #$08
C0/46DA:	F004    	BEQ $46E0
C0/46DC:	A930    	LDA #$30
C0/46DE:	8002    	BRA $46E2
C0/46E0:	A920    	LDA #$20
C0/46E2:	851A    	STA $1A
C0/46E4:	B98008  	LDA $0880,Y
C0/46E7:	29CF    	AND #$CF
C0/46E9:	051A    	ORA $1A
C0/46EB:	998008  	STA $0880,Y
C0/46EE:	A2F800  	LDX #$00F8
C0/46F1:	86B4    	STX $B4
C0/46F3:	60      	RTS

C0/46F4 unknow

C0/46F4:	A54C    	LDA $4C
C0/46F6:	C9F0    	CMP #$F0
C0/46F8:	D031    	BNE $472B
C0/46FA:	A559    	LDA $59
C0/46FC:	D02D    	BNE $472B
C0/46FE:	A584    	LDA $84
C0/4700:	D029    	BNE $472B
C0/4702:	AC0308  	LDY $0803
C0/4705:	8C0442  	STY $4204
C0/4708:	A929    	LDA #$29
C0/470A:	8D0642  	STA $4206
C0/470D:	A6E5    	LDX $E5
C0/470F:	E00000  	CPX #$0000
C0/4712:	D017    	BNE $472B
C0/4714:	A5E7    	LDA $E7
C0/4716:	C9CA    	CMP #$CA
C0/4718:	D011    	BNE $472B
C0/471A:	B97C08  	LDA $087C,Y
C0/471D:	290F    	AND #$0F
C0/471F:	C902    	CMP #$02
C0/4721:	D008    	BNE $472B
C0/4723:	A5BA    	LDA $BA
C0/4725:	D004    	BNE $472B
C0/4727:	A506    	LDA $06
C0/4729:	3001    	BMI $472C
C0/472B:	60      	RTS

C0/472C unknow

C0/472C:	B97F08  	LDA $087F,Y
C0/472F:	1A      	INC A
C0/4730:	20037D  	JSR $7D03
C0/4733:	A61E    	LDX $1E
C0/4735:	BF00207E	LDA $7E2000,X
C0/4739:	3053    	BMI $478E
C0/473B:	4A      	LSR A
C0/473C:	CD1442  	CMP $4214
C0/473F:	F04D    	BEQ $478E
C0/4741:	0A      	ASL A
C0/4742:	AA      	TAX
C0/4743:	BC9907  	LDY $0799,X
C0/4746:	B97C08  	LDA $087C,Y
C0/4749:	2940    	AND #$40
C0/474B:	D0DE    	BNE $472B
C0/474D:	A5B8    	LDA $B8
C0/474F:	2907    	AND #$07
C0/4751:	C901    	CMP #$01
C0/4753:	F01C    	BEQ $4771
C0/4755:	C902    	CMP #$02
C0/4757:	F023    	BEQ $477C
C0/4759:	C903    	CMP #$03
C0/475B:	F028    	BEQ $4785
C0/475D:	A5B2    	LDA $B2
C0/475F:	D98808  	CMP $0888,Y
C0/4762:	F068    	BEQ $47CC
C0/4764:	C901    	CMP #$01
C0/4766:	D026    	BNE $478E
C0/4768:	B98808  	LDA $0888,Y
C0/476B:	2904    	AND #$04
C0/476D:	D05D    	BNE $47CC
C0/476F:	801D    	BRA $478E
C0/4771:	B98808  	LDA $0888,Y
C0/4774:	2907    	AND #$07
C0/4776:	C902    	CMP #$02
C0/4778:	F014    	BEQ $478E
C0/477A:	8050    	BRA $47CC
C0/477C:	B98808  	LDA $0888,Y
C0/477F:	2902    	AND #$02
C0/4781:	D049    	BNE $47CC
C0/4783:	8009    	BRA $478E
C0/4785:	B98808  	LDA $0888,Y
C0/4788:	2904    	AND #$04
C0/478A:	D002    	BNE $478E
C0/478C:	803E    	BRA $47CC
C0/478E:	A61E    	LDX $1E
C0/4790:	BF00007F	LDA $7F0000,X
C0/4794:	AA      	TAX
C0/4795:	BF00767E	LDA $7E7600,X
C0/4799:	C9F7    	CMP #$F7
C0/479B:	F08E    	BEQ $472B
C0/479D:	2907    	AND #$07
C0/479F:	C907    	CMP #$07
C0/47A1:	D088    	BNE $472B
C0/47A3:	B97F08  	LDA $087F,Y
C0/47A6:	AA      	TAX
C0/47A7:	A51E    	LDA $1E
C0/47A9:	18      	CLC
C0/47AA:	7F5748C0	ADC $C04857,X
C0/47AE:	2586    	AND $86
C0/47B0:	851E    	STA $1E
C0/47B2:	A51F    	LDA $1F
C0/47B4:	18      	CLC
C0/47B5:	7F5B48C0	ADC $C0485B,X
C0/47B9:	2587    	AND $87
C0/47BB:	851F    	STA $1F
C0/47BD:	A61E    	LDX $1E
C0/47BF:	BF00207E	LDA $7E2000,X
C0/47C3:	3006    	BMI $47CB
C0/47C5:	AA      	TAX
C0/47C6:	BC9907  	LDY $0799,X
C0/47C9:	8001    	BRA $47CC
C0/47CB:	60      	RTS

C0/47CC unknow

C0/47CC:	B97C08  	LDA $087C,Y
C0/47CF:	290F    	AND #$0F
C0/47D1:	C904    	CMP #$04
C0/47D3:	F0F6    	BEQ $47CB
C0/47D5:	997D08  	STA $087D,Y
C0/47D8:	A4DA    	LDY $DA
C0/47DA:	B97F08  	LDA $087F,Y
C0/47DD:	1A      	INC A
C0/47DE:	1A      	INC A
C0/47DF:	2903    	AND #$03
C0/47E1:	851A    	STA $1A
C0/47E3:	BC9907  	LDY $0799,X
C0/47E6:	B97F08  	LDA $087F,Y
C0/47E9:	0A      	ASL A
C0/47EA:	0A      	ASL A
C0/47EB:	0A      	ASL A
C0/47EC:	851B    	STA $1B
C0/47EE:	B96808  	LDA $0868,Y
C0/47F1:	29E7    	AND #$E7
C0/47F3:	051B    	ORA $1B
C0/47F5:	996808  	STA $0868,Y
C0/47F8:	B97C08  	LDA $087C,Y
C0/47FB:	2920    	AND #$20
C0/47FD:	D00D    	BNE $480C
C0/47FF:	A51A    	LDA $1A
C0/4801:	997F08  	STA $087F,Y
C0/4804:	AA      	TAX
C0/4805:	BF2D58C0	LDA $C0582D,X
C0/4809:	997708  	STA $0877,Y
C0/480C:	B97C08  	LDA $087C,Y
C0/480F:	29F0    	AND #$F0
C0/4811:	0904    	ORA #$04
C0/4813:	997C08  	STA $087C,Y
C0/4816:	B98908  	LDA $0889,Y
C0/4819:	85E5    	STA $E5
C0/481B:	8DF405  	STA $05F4
C0/481E:	B98A08  	LDA $088A,Y
C0/4821:	85E6    	STA $E6
C0/4823:	8DF505  	STA $05F5
C0/4826:	B98B08  	LDA $088B,Y
C0/4829:	18      	CLC
C0/482A:	69CA    	ADC #$CA
C0/482C:	85E7    	STA $E7
C0/482E:	8DF605  	STA $05F6
C0/4831:	A20000  	LDX #$0000
C0/4834:	8E9405  	STX $0594
C0/4837:	A9CA    	LDA #$CA
C0/4839:	8D9605  	STA $0596
C0/483C:	A901    	LDA #$01
C0/483E:	8DC705  	STA $05C7
C0/4841:	A20300  	LDX #$0003
C0/4844:	86E8    	STX $E8
C0/4846:	A4DA    	LDY $DA
C0/4848:	B97C08  	LDA $087C,Y
C0/484B:	997D08  	STA $087D,Y
C0/484E:	A904    	LDA #$04
C0/4850:	997C08  	STA $087C,Y
C0/4853:	20ED2F  	JSR $2FED
C0/4856:	60      	RTS

C0/4857 unknow

C0/4857:	0001    	BRK #$01
C0/4859:	00FF    	BRK #$FF
C0/485B:	FF000100	SBC $000100,X

C0/485F unknow

C0/485F:	204450  	JSR $5044
C0/4862:	A5B8    	LDA $B8
C0/4864:	2903    	AND #$03
C0/4866:	85B1    	STA $B1
C0/4868:	20144F  	JSR $4F14
C0/486B:	209F4F  	JSR $4F9F
C0/486E:	A4DA    	LDY $DA
C0/4870:	C220    	REP #$20      (16 bit accum./memory)
C0/4872:	7B      	TDC 
C0/4873:	997108  	STA $0871,Y
C0/4876:	997308  	STA $0873,Y
C0/4879:	8573    	STA $73
C0/487B:	8575    	STA $75
C0/487D:	8577    	STA $77
C0/487F:	8579    	STA $79
C0/4881:	857B    	STA $7B
C0/4883:	857D    	STA $7D
C0/4885:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4887:	B96808  	LDA $0868,Y
C0/488A:	0901    	ORA #$01
C0/488C:	996808  	STA $0868,Y
C0/488F:	ADB91E  	LDA $1EB9
C0/4892:	3028    	BMI $48BC
C0/4894:	A584    	LDA $84
C0/4896:	D024    	BNE $48BC
C0/4898:	A559    	LDA $59
C0/489A:	D020    	BNE $48BC
C0/489C:	AD5E05  	LDA $055E
C0/489F:	D01B    	BNE $48BC
C0/48A1:	AD5A05  	LDA $055A
C0/48A4:	F004    	BEQ $48AA
C0/48A6:	C905    	CMP #$05
C0/48A8:	D012    	BNE $48BC
C0/48AA:	AD5B05  	LDA $055B
C0/48AD:	F004    	BEQ $48B3
C0/48AF:	C905    	CMP #$05
C0/48B1:	D009    	BNE $48BC
C0/48B3:	AD5C05  	LDA $055C
C0/48B6:	F007    	BEQ $48BF
C0/48B8:	C905    	CMP #$05
C0/48BA:	F003    	BEQ $48BF
C0/48BC:	4CEF49  	JMP $49EF
C0/48BF:	A5B8    	LDA $B8
C0/48C1:	2904    	AND #$04
C0/48C3:	F006    	BEQ $48CB
C0/48C5:	A5B2    	LDA $B2
C0/48C7:	C902    	CMP #$02
C0/48C9:	F006    	BEQ $48D1
C0/48CB:	A5B8    	LDA $B8
C0/48CD:	29C0    	AND #$C0
C0/48CF:	D003    	BNE $48D4
C0/48D1:	4C7849  	JMP $4978
C0/48D4:	A507    	LDA $07
C0/48D6:	2901    	AND #$01
C0/48D8:	F030    	BEQ $490A
C0/48DA:	A901    	LDA #$01
C0/48DC:	997F08  	STA $087F,Y
C0/48DF:	A5B8    	LDA $B8
C0/48E1:	3016    	BMI $48F9
C0/48E3:	A5A8    	LDA $A8
C0/48E5:	AA      	TAX
C0/48E6:	BF00767E	LDA $7E7600,X
C0/48EA:	C9F7    	CMP #$F7
C0/48EC:	F008    	BEQ $48F6
C0/48EE:	2940    	AND #$40
C0/48F0:	F004    	BEQ $48F6
C0/48F2:	A905    	LDA #$05
C0/48F4:	8049    	BRA $493F
C0/48F6:	4C7849  	JMP $4978		(could say 807F BRA $4978, saving one byte)
C0/48F9:	A5AE    	LDA $AE
C0/48FB:	AA      	TAX
C0/48FC:	BF00767E	LDA $7E7600,X
C0/4900:	1076    	BPL $4978
C0/4902:	C9F7    	CMP #$F7
C0/4904:	F072    	BEQ $4978
C0/4906:	A906    	LDA #$06
C0/4908:	8035    	BRA $493F
C0/490A:	A507    	LDA $07
C0/490C:	2902    	AND #$02
C0/490E:	F068    	BEQ $4978
C0/4910:	A903    	LDA #$03
C0/4912:	997F08  	STA $087F,Y
C0/4915:	A5B8    	LDA $B8
C0/4917:	1015    	BPL $492E
C0/4919:	A5B8    	LDA $B8
C0/491B:	1079    	BPL $4996
C0/491D:	A5A6    	LDA $A6
C0/491F:	AA      	TAX
C0/4920:	BF00767E	LDA $7E7600,X
C0/4924:	1052    	BPL $4978
C0/4926:	C9F7    	CMP #$F7
C0/4928:	F04E    	BEQ $4978
C0/492A:	A908    	LDA #$08
C0/492C:	8011    	BRA $493F
C0/492E:	A5AC    	LDA $AC
C0/4930:	AA      	TAX
C0/4931:	BF00767E	LDA $7E7600,X
C0/4935:	C9F7    	CMP #$F7
C0/4937:	F03F    	BEQ $4978
C0/4939:	2940    	AND #$40
C0/493B:	F03B    	BEQ $4978
C0/493D:	A907    	LDA #$07
C0/493F:	997E08  	STA $087E,Y
C0/4942:	85B3    	STA $B3
C0/4944:	A5B8    	LDA $B8
C0/4946:	2904    	AND #$04
C0/4948:	D00A    	BNE $4954
C0/494A:	A5B8    	LDA $B8
C0/494C:	2903    	AND #$03
C0/494E:	C903    	CMP #$03
C0/4950:	F002    	BEQ $4954
C0/4952:	85B2    	STA $B2
C0/4954:	202D4F  	JSR $4F2D
C0/4957:	20E64F  	JSR $4FE6
C0/495A:	20777E  	JSR $7E77
C0/495D:	20087E  	JSR $7E08
C0/4960:	6485    	STZ $85
C0/4962:	A901    	LDA #$01
C0/4964:	998608  	STA $0886,Y
C0/4967:	20A5C8  	JSR $C8A5
C0/496A:	20604B  	JSR $4B60      (increase step count)
C0/496D:	20EC4A  	JSR $4AEC
C0/4970:	A901    	LDA #$01
C0/4972:	8557    	STA $57
C0/4974:	9C8E07  	STZ $078E
C0/4977:	60      	RTS

C0/4978 unknow

C0/4978:	A507    	LDA $07
C0/497A:	2901    	AND #$01       (are you pressing right?)
C0/497C:	F018    	BEQ $4996      (branch if not)
C0/497E:	A947    	LDA #$47
C0/4980:	997708  	STA $0877,Y
C0/4983:	A901    	LDA #$01
C0/4985:	997F08  	STA $087F,Y
C0/4988:	20514D  	JSR $4D51
C0/498B:	D062    	BNE $49EF
C0/498D:	A902    	LDA #$02
C0/498F:	20164E  	JSR $4E16      (set walking speed and other things)
C0/4992:	F05B    	BEQ $49EF
C0/4994:	806D    	BRA $4A03      (increase the counter of steps and deal with more)
C0/4996:	A507    	LDA $07
C0/4998:	2902    	AND #$02       (are you pressing left?)
C0/499A:	F018    	BEQ $49B4      (branch if not)
C0/499C:	A907    	LDA #$07
C0/499E:	997708  	STA $0877,Y
C0/49A1:	A903    	LDA #$03
C0/49A3:	997F08  	STA $087F,Y
C0/49A6:	20514D  	JSR $4D51
C0/49A9:	D044    	BNE $49EF
C0/49AB:	A904    	LDA #$04
C0/49AD:	20164E  	JSR $4E16      (set walking speed and other things)
C0/49B0:	F03D    	BEQ $49EF
C0/49B2:	804F    	BRA $4A03      (increase the counter of steps and deal with more)
C0/49B4:	A507    	LDA $07
C0/49B6:	2908    	AND #$08       (are you pressing up?)
C0/49B8:	F017    	BEQ $49D1      (branch if not)
C0/49BA:	A904    	LDA #$04
C0/49BC:	997708  	STA $0877,Y
C0/49BF:	7B      	TDC 
C0/49C0:	997F08  	STA $087F,Y
C0/49C3:	20514D  	JSR $4D51
C0/49C6:	D027    	BNE $49EF
C0/49C8:	A901    	LDA #$01
C0/49CA:	20164E  	JSR $4E16      (set walking speed and other things)
C0/49CD:	F020    	BEQ $49EF
C0/49CF:	8032    	BRA $4A03      (increase the counter of steps and deal with more)
C0/49D1:	A507    	LDA $07
C0/49D3:	2904    	AND #$04       (are you pressing down?)
C0/49D5:	F018    	BEQ $49EF      (branch if not)
C0/49D7:	A901    	LDA #$01
C0/49D9:	997708  	STA $0877,Y
C0/49DC:	A902    	LDA #$02
C0/49DE:	997F08  	STA $087F,Y
C0/49E1:	20514D  	JSR $4D51
C0/49E4:	D009    	BNE $49EF
C0/49E6:	A903    	LDA #$03
C0/49E8:	20164E  	JSR $4E16      (set walking speed and other things)
C0/49EB:	F002    	BEQ $49EF
C0/49ED:	8014    	BRA $4A03      (increase the counter of steps and deal with more)
C0/49EF:	AC0308  	LDY $0803
C0/49F2:	7B      	TDC 
C0/49F3:	997E08  	STA $087E,Y
C0/49F6:	9C8608  	STZ $0886
C0/49F9:	20A5C8  	JSR $C8A5
C0/49FC:	20F446  	JSR $46F4
C0/49FF:	20834B  	JSR $4B83      (JMP fool!)
C0/4A02:	60      	RTS

C0/4A03 unknow

C0/4A03:	20604B  	JSR $4B60      (increase step count)
C0/4A06:	223F4AC0	JSL $C04A3F    (deal with tintinabar healing and poison damage)
C0/4A0A:	AC0308  	LDY $0803
C0/4A0D:	20777E  	JSR $7E77
C0/4A10:	20087E  	JSR $7E08
C0/4A13:	6485    	STZ $85
C0/4A15:	A901    	LDA #$01
C0/4A17:	8D8608  	STA $0886
C0/4A1A:	20EC4A  	JSR $4AEC
C0/4A1D:	ADB61E  	LDA $1EB6      (load event bits)
C0/4A20:	29DF    	AND #$DF       (turn off the multipurpose bit, $1B5)
C0/4A22:	8DB61E  	STA $1EB6      (LDA #$20 TRB $1EB6...)
C0/4A25:	ADB71E  	LDA $1EB7      (load event bits)
C0/4A28:	297F    	AND #$7F       (disable the save option in the menu)
C0/4A2A:	8DB71E  	STA $1EB7      (LDA #$80 TRB $1EB7...)
C0/4A2D:	20A5C8  	JSR $C8A5
C0/4A30:	20F446  	JSR $46F4
C0/4A33:	A901    	LDA #$01
C0/4A35:	8557    	STA $57
C0/4A37:	9C8E07  	STZ $078E
C0/4A3A:	60      	RTS

C0/4A3B unknow

C0/4A3B:	1008    	BPL $4A45
C0/4A3D:	0402    	TSB $02

C0/4A3F tintinabar and poison damage

C0/4A3F:	08      	PHP 
C0/4A40:	7B      	TDC 
C0/4A41:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4A43:	C210    	REP #$10      	(16 bit index registers)
C0/4A45:	A61E    	LDX $1E
C0/4A47:	DA      	PHX
C0/4A48:	A620    	LDX $20
C0/4A4A:	DA      	PHX
C0/4A4B:	A622    	LDX $22
C0/4A4D:	DA      	PHX
C0/4A4E:	A624    	LDX $24
C0/4A50:	DA      	PHX
C0/4A51:	A600    	LDX $00
C0/4A53:	9B      	TXY
C0/4A54:	BD5018  	LDA $1850,X    (setup of current parties)
C0/4A57:	2940    	AND #$40       (BIT #$40...)
C0/4A59:	F070    	BEQ $4ACB
C0/4A5B:	BD5018  	LDA $1850,X    (if previous was BIT, this LDA is not needed)
C0/4A5E:	2907    	AND #$07       (then you can just AND like normal)
C0/4A60:	CD6D1A  	CMP $1A6D		(Compare to the active party)
C0/4A63:	D066    	BNE $4ACB
C0/4A65:	B91416  	LDA $1614,Y    (status byte 1)
C0/4A68:	29C2    	AND #$C2       (are any of the three terminal ailments set?)
C0/4A6A:	D027    	BNE $4A93      (branch if so)
C0/4A6C:	B92316  	LDA $1623,Y		(Load character's relic 1)
C0/4A6F:	C9E5    	CMP #$E5		(Is it Tintinabar?)
C0/4A71:	F007    	BEQ $4A7A		(Branch if it is)
C0/4A73:	B92416  	LDA $1624,Y		(Load character's relic 2)
C0/4A76:	C9E5    	CMP #$E5		(Is it Tintinabar?)
C0/4A78:	D019    	BNE $4A93		(Branch if it's not)
C0/4A7A:	20E8AE  	JSR $AEE8
C0/4A7D:	B91C16  	LDA $161C,Y		(Load character's stamina)
C0/4A80:	4A      	LSR A			(/ 2)
C0/4A81:	4A      	LSR A			(Now / 4)
C0/4A82:	C221    	REP #$21
C0/4A84:	790916  	ADC $1609,Y		(Add current HP to Stamina / 4)
C0/4A87:	C51E    	CMP $1E
C0/4A89:	9002    	BCC $4A8D
C0/4A8B:	A51E    	LDA $1E
C0/4A8D:	990916  	STA $1609,Y		(Store to current HP)
C0/4A90:	7B      	TDC 
C0/4A91:	E220    	SEP #$20       (8 bit accum./memory)
C0/4A93:	B91416  	LDA $1614,Y    (status byte 1)
C0/4A96:	2904    	AND #$04       (poison set?)
C0/4A98:	F031    	BEQ $4ACB      (branch if not)
C0/4A9A:	A90F    	LDA #$0F
C0/4A9C:	8DF011  	STA $11F0
C0/4A9F:	C220    	REP #$20      	(16 bit accum./memory)
C0/4AA1:	A9000F  	LDA #$0F00
C0/4AA4:	8D9607  	STA $0796
C0/4AA7:	7B      	TDC 
C0/4AA8:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4AAA:	20E8AE  	JSR $AEE8
C0/4AAD:	C220    	REP #$20      	(16 bit accum./memory)
C0/4AAF:	A51E    	LDA $1E
C0/4AB1:	4A      	LSR A
C0/4AB2:	4A      	LSR A
C0/4AB3:	4A      	LSR A
C0/4AB4:	4A      	LSR A
C0/4AB5:	4A      	LSR A
C0/4AB6:	851E    	STA $1E
C0/4AB8:	B90916  	LDA $1609,Y		(Load current HP)
C0/4ABB:	38      	SEC 
C0/4ABC:	E51E    	SBC $1E
C0/4ABE:	F002    	BEQ $4AC2
C0/4AC0:	B003    	BCS $4AC5
C0/4AC2:	A90100  	LDA #$0001     (TDC INC A...)
C0/4AC5:	990916  	STA $1609,Y		(Store to current HP)
C0/4AC8:	7B      	TDC            (this seems pointless)
C0/4AC9:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4ACB:	C221    	REP #$21       (er...)
C0/4ACD:	98      	TYA
C0/4ACE:	692500  	ADC #$0025		(Add 37 to get next character info block)
C0/4AD1:	A8      	TAY
C0/4AD2:	7B      	TDC 
C0/4AD3:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4AD5:	E8      	INX
C0/4AD6:	E01000  	CPX #$0010
C0/4AD9:	F003    	BEQ $4ADE
C0/4ADB:	4C544A  	JMP $4A54		(could say 8276FF BRL $4A54)
C0/4ADE:	FA      	PLX
C0/4ADF:	8624    	STX $24
C0/4AE1:	FA      	PLX
C0/4AE2:	8622    	STX $22
C0/4AE4:	FA      	PLX
C0/4AE5:	8620    	STX $20
C0/4AE7:	FA      	PLX
C0/4AE8:	861E    	STX $1E
C0/4AEA:	28      	PLP 
C0/4AEB:	6B      	RTL

C0/4AEC unknow

C0/4AEC:	AD6D1A  	LDA $1A6D		(Load active party)
C0/4AEF:	C901    	CMP #$01		(Is party 1 the active one?)
C0/4AF1:	D022    	BNE $4B15		(Branch if not)
C0/4AF3:	ADD81E  	LDA $1ED8		
C0/4AF6:	29EF    	AND #$EF
C0/4AF8:	8DD81E  	STA $1ED8
C0/4AFB:	ADD81E  	LDA $1ED8
C0/4AFE:	29DF    	AND #$DF
C0/4B00:	8DD81E  	STA $1ED8
C0/4B03:	ADD81E  	LDA $1ED8
C0/4B06:	29BF    	AND #$BF
C0/4B08:	8DD81E  	STA $1ED8
C0/4B0B:	ADD81E  	LDA $1ED8
C0/4B0E:	297F    	AND #$7F
C0/4B10:	8DD81E  	STA $1ED8      (LDA #$F0 TRB $1ED8 covers everything up to C0/4AF3)
C0/4B13:	804A    	BRA $4B5F
C0/4B15:	C902    	CMP #$02		(Is party 2 the active party?)
C0/4B17:	D022    	BNE $4B3B		(Branch if not)
C0/4B19:	ADD91E  	LDA $1ED9
C0/4B1C:	29FE    	AND #$FE
C0/4B1E:	8DD91E  	STA $1ED9
C0/4B21:	ADD91E  	LDA $1ED9
C0/4B24:	29FD    	AND #$FD
C0/4B26:	8DD91E  	STA $1ED9
C0/4B29:	ADD91E  	LDA $1ED9
C0/4B2C:	29FB    	AND #$FB
C0/4B2E:	8DD91E  	STA $1ED9
C0/4B31:	ADD91E  	LDA $1ED9
C0/4B34:	29F7    	AND #$F7
C0/4B36:	8DD91E  	STA $1ED9      (LDA #$0F TRB $1ED9 covers everything up to C0/4B19)
C0/4B39:	8024    	BRA $4B5F
C0/4B3B:	C903    	CMP #$03		(Is party 3 the active party?)
C0/4B3D:	D020    	BNE $4B5F		(Branch if not)
C0/4B3F:	ADD91E  	LDA $1ED9
C0/4B42:	29EF    	AND #$EF
C0/4B44:	8DD91E  	STA $1ED9
C0/4B47:	ADD91E  	LDA $1ED9
C0/4B4A:	29DF    	AND #$DF
C0/4B4C:	8DD91E  	STA $1ED9
C0/4B4F:	ADD91E  	LDA $1ED9
C0/4B52:	29BF    	AND #$BF
C0/4B54:	8DD91E  	STA $1ED9
C0/4B57:	ADD91E  	LDA $1ED9
C0/4B5A:	297F    	AND #$7F
C0/4B5C:	8DD91E  	STA $1ED9      (LDA #$F0 TRB $1ED9 covers everything up to C0/4B3F)
C0/4B5F:	60      	RTS

C0/4B60 steps counter (dungeons)

C0/4B60:	AD6618  	LDA $1866
C0/4B63:	C97F    	CMP #$7F
C0/4B65:	D00E    	BNE $4B75
C0/4B67:	AD6718  	LDA $1867
C0/4B6A:	C996    	CMP #$96
C0/4B6C:	D007    	BNE $4B75
C0/4B6E:	AD6818  	LDA $1868
C0/4B71:	C998    	CMP #$98
C0/4B73:	F00D    	BEQ $4B82
C0/4B75:	EE6618  	INC $1866
C0/4B78:	D008    	BNE $4B82
C0/4B7A:	EE6718  	INC $1867
C0/4B7D:	D003    	BNE $4B82
C0/4B7F:	EE6818  	INC $1868
C0/4B82:	60      	RTS

C0/4B83 unknow

C0/4B83:	A5BA    	LDA $BA
C0/4B85:	D04C    	BNE $4BD3
C0/4B87:	A559    	LDA $59
C0/4B89:	D048    	BNE $4BD3
C0/4B8B:	A584    	LDA $84
C0/4B8D:	D044    	BNE $4BD3
C0/4B8F:	A4E5    	LDY $E5
C0/4B91:	C00000  	CPY #$0000
C0/4B94:	D03D    	BNE $4BD3
C0/4B96:	A5E7    	LDA $E7
C0/4B98:	C9CA    	CMP #$CA
C0/4B9A:	D037    	BNE $4BD3
C0/4B9C:	A5B8    	LDA $B8
C0/4B9E:	2904    	AND #$04
C0/4BA0:	F006    	BEQ $4BA8
C0/4BA2:	A5B2    	LDA $B2
C0/4BA4:	C902    	CMP #$02
C0/4BA6:	F02B    	BEQ $4BD3
C0/4BA8:	A506    	LDA $06
C0/4BAA:	1027    	BPL $4BD3
C0/4BAC:	AC0308  	LDY $0803
C0/4BAF:	B97F08  	LDA $087F,Y
C0/4BB2:	AA      	TAX
C0/4BB3:	B97A08  	LDA $087A,Y
C0/4BB6:	18      	CLC
C0/4BB7:	7F0F4DC0	ADC $C04D0F,X
C0/4BBB:	2586    	AND $86
C0/4BBD:	852A    	STA $2A
C0/4BBF:	B97B08  	LDA $087B,Y
C0/4BC2:	18      	CLC
C0/4BC3:	7F134DC0	ADC $C04D13,X
C0/4BC7:	2587    	AND $87
C0/4BC9:	852B    	STA $2B
C0/4BCB:	A62A    	LDX $2A
C0/4BCD:	BF00207E	LDA $7E2000,X
C0/4BD1:	3001    	BMI $4BD4
C0/4BD3:	60      	RTS

C0/4BD4 unknow

C0/4BD4:	C220    	REP #$20      	(16 bit accum./memory)
C0/4BD6:	A582    	LDA $82
C0/4BD8:	0A      	ASL A
C0/4BD9:	AA      	TAX
C0/4BDE:	851E    	STA $1E
C0/4BE0:	BFF482ED	LDA $ED82F4,X
C0/4BE4:	AA      	TAX
C0/4BE5:	7B      	TDC 
C0/4BE6:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4BE8:	E41E    	CPX $1E
C0/4BEA:	F0E7    	BEQ $4BD3
C0/4BEC:	BF3486ED	LDA $ED8634,X
C0/4BF0:	C52A    	CMP $2A
C0/4BF2:	D008    	BNE $4BFC
C0/4BF4:	BF3586ED	LDA $ED8635,X
C0/4BF8:	C52B    	CMP $2B
C0/4BFA:	F00A    	BEQ $4C06
C0/4BFC:	E8      	INX
C0/4BFD:	E8      	INX
C0/4BFE:	E8      	INX
C0/4BFF:	E8      	INX
C0/4C00:	E8      	INX
C0/4C01:	E41E    	CPX $1E
C0/4C03:	D0E7    	BNE $4BEC
C0/4C05:	60      	RTS

C0/4C06 treasure chest decoding

C0/4C06:	C220    	REP #$20      	(16 bit accum./memory)
C0/4C08:	BF3886ED	LDA $ED8638,X
C0/4C0C:	851A    	STA $1A        (now the contents of the chest)
C0/4C0E:	BF3686ED	LDA $ED8636,X
C0/4C12:	851E    	STA $1E        (the bit of this chest)
C0/4C14:	290700  	AND #$0007
C0/4C17:	AA      	TAX
C0/4C18:	A51E    	LDA $1E
C0/4C1A:	29FF01  	AND #$01FF
C0/4C1D:	4A      	LSR A
C0/4C1E:	4A      	LSR A
C0/4C1F:	4A      	LSR A
C0/4C20:	A8      	TAY
C0/4C21:	7B      	TDC 
C0/4C22:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4C24:	B9401E  	LDA $1E40,Y    (treasure chest bits)
C0/4C27:	3FFCBAC0	AND $C0BAFC,X  (is it this bit?)
C0/4C2B:	D0A6    	BNE $4BD3      (branch and exit if not. interesting fail-safe)
C0/4C2D:	B9401E  	LDA $1E40,Y    (treasure chest bits)
C0/4C34:	99401E  	STA $1E40,Y    (set this chest as now open)
C0/4C37:	A51F    	LDA $1F
C0/4C39:	1045    	BPL $4C80         (if high bit = 0 then it's not a GP chest)
C0/4C3B:	A51A    	LDA $1A
C0/4C3D:	8D0242  	STA $4202
C0/4C40:	A964    	LDA #$64       (GP amount * 100)
C0/4C42:	8D0342  	STA $4203
C0/4C45:	EA      	NOP
C0/4C46:	EA      	NOP
C0/4C47:	EA      	NOP
C0/4C48:	AC1642  	LDY $4216
C0/4C4B:	8422    	STY $22
C0/4C4D:	6424    	STZ $24        (shame all 24-bits aren't used here)
C0/4C4F:	C221    	REP #$21
C0/4C51:	98      	TYA
C0/4C52:	6D6018  	ADC $1860      (add to current GP, low two bytes)
C0/4C55:	8D6018  	STA $1860      (and save)
C0/4C58:	7B      	TDC 
C0/4C59:	E220    	SEP #$20      	(8 bit accum./memory)
C0/4C5B:	6D6218  	ADC $1862      (wrap high byte if needed)
C0/4C5E:	8D6218  	STA $1862      (and save)
C0/4C61:	C998    	CMP #$98       (is high byte greater than 152?)
C0/4C63:	9013    	BCC $4C78      (branch if not, GP not maxed out)
C0/4C65:	AE6018  	LDX $1860
C0/4C68:	E07F96  	CPX #$967F
C0/4C6B:	900B    	BCC $4C78
C0/4C6D:	A27F96  	LDX #$967F
C0/4C70:	8E6018  	STX $1860
C0/4C73:	A998    	LDA #$98
C0/4C75:	8D6218  	STA $1862      (set max GP as 9999999)
C0/4C78:	20E502  	JSR $02E5      (get number grabbed ready for display purposes)
C0/4C7B:	A21000  	LDX #$0010     (set CA/0010, event for "Found x GP!")
C0/4C7E:	802C    	BRA $4CAC
C0/4C80:	A51F    	LDA $1F        
C0/4C82:	2940    	AND #$40          (is it a item-containing chest?)
C0/4C84:	F00D    	BEQ $4C93		(branch if not)
C0/4C86:	A51A    	LDA $1A
C0/4C88:	8D8305  	STA $0583		(item index)
C0/4C8E:	A20800  	LDX #$0008     (set CA/0008, event for "Received x!")
C0/4C91:	8019    	BRA $4CAC
C0/4C93:	A51F    	LDA $1F
C0/4C95:	2920    	AND #$20		(is it a monster-in-a-box?)
C0/4C97:	F00A    	BEQ $4CA3		(branch if not)
C0/4C99:	A51A    	LDA $1A		(load the "contents" byte)
C0/4C9B:	8D8907  	STA $0789	(stored monster set to use with gen. act. 0x8E)
C0/4C9E:	A24000  	LDX #$0040      (set CA/0040, event for "Monster-in-a-box!")
C0/4CA1:	8009    	BRA $4CAC
C0/4CA3:	A51F    	LDA $1F
C0/4CA5:	2910    	AND #$10         	(is it something else???)
C0/4CA7:	F000    	BEQ $4CA9	
C0/4CA9:	A21400  	LDX #$0014     (set CA/0014, event for "Empty!")	
C0/4CAC:	86E5    	STX $E5        (many things branch here, so this actually sets a few events)
C0/4CAE:	8EF405  	STX $05F4
C0/4CB1:	A9CA    	LDA #$CA
C0/4CB3:	85E7    	STA $E7
C0/4CB5:	8DF605  	STA $05F6
C0/4CB8:	A20000  	LDX #$0000     (LDX $00...)
C0/4CBB:	8E9405  	STX $0594
C0/4CBE:	A9CA    	LDA #$CA
C0/4CC0:	8D9605  	STA $0596
C0/4CC3:	A901    	LDA #$01
C0/4CC5:	8DC705  	STA $05C7
C0/4CC8:	A20300  	LDX #$0003
C0/4CCB:	86E8    	STX $E8
C0/4CCD:	AC0308  	LDY $0803
C0/4CD0:	B97C08  	LDA $087C,Y
C0/4CD3:	997D08  	STA $087D,Y
C0/4CD6:	A904    	LDA #$04
C0/4CD8:	997C08  	STA $087C,Y
C0/4CDB:	20ED2F  	JSR $2FED
C0/4CDE:	A62A    	LDX $2A
C0/4CE0:	BF00007F	LDA $7F0000,X
C0/4CE4:	C913    	CMP #$13
C0/4CE6:	D01E    	BNE $4D06
C0/4CE8:	868F    	STX $8F
C0/4CEA:	A20C4D  	LDX #$4D0C
C0/4CED:	868C    	STX $8C
C0/4CEF:	A9C0    	LDA #$C0
C0/4CF1:	858E    	STA $8E        (C0/4D0C?)
C0/4CF3:	A20000  	LDX #$0000     (LDX $00...)
C0/4CF6:	862A    	STX $2A
C0/4CF8:	A904    	LDA #$04
C0/4CFA:	8D5A05  	STA $055A
C0/4CFD:	20C41E  	JSR $1EC4
C0/4D00:	A9A6    	LDA #$A6
C0/4D02:	20D302  	JSR $02D3      (JMP fool!)
C0/4D05:	60      	RTS

C0/4D06 unknow

C0/4D06:	A91B    	LDA #$1B
C0/4D08:	20D302  	JSR $02D3		(could say BRA $4D02 here, saving two bytes)
C0/4D0B:	60      	RTS

C0/4D0C unknow

C0/4D0C:	0101    	ORA ($01,X)
C0/4D0E:	1200    	ORA ($00)
C0/4D10:	0100    	ORA ($00,X)
C0/4D12:	FFFF0001	SBC $0100FF,X
C0/4D16:	00

C0/4D17 unknow

C0/4D17:	A400    	LDY $00		(from C0/BF6D)
C0/4D19:	CC2711    	CPY $2711
C0/4D1C:	F032    	BEQ $4D50
C0/4D1E:	5A      	PHY
C0/4D1F:	BE2911  	LDX $1129,Y
C0/4D22:	868F    	STX $8F
C0/4D24:	BF00007F	LDA $7F0000,X
C0/4D28:	C905    	CMP #$05
C0/4D2A:	D005    	BNE $4D31
C0/4D2C:	A2064E  	LDX #$4E06
C0/4D2F:	800C    	BRA $4D3D
C0/4D31:	C907    	CMP #$07
C0/4D33:	D005    	BNE $4D3A
C0/4D35:	A20A4E  	LDX #$4E0A
C0/4D38:	8003    	BRA $4D3D
C0/4D3A:	A20E4E  	LDX #$4E0E
C0/4D3D:	868C    	STX $8C
C0/4D3F:	A9C0    	LDA #$C0
C0/4D41:	858E    	STA $8E
C0/4D43:	A20000  	LDX #$0000
C0/4D46:	862A    	STX $2A
C0/4D48:	20C41E  	JSR $1EC4
C0/4D4B:	7A      	PLY
C0/4D4C:	C8      	INY 
C0/4D4D:	C8      	INY 
C0/4D4E:	80C9    	BRA $4D19
C0/4D50:	60      	RTS

C0/4D51 unknow

C0/4D51:	A5B8    	LDA $B8
C0/4D53:	2904    	AND #$04
C0/4D55:	F009    	BEQ $4D60
C0/4D57:	A5B2    	LDA $B2
C0/4D59:	C902    	CMP #$02
C0/4D5B:	D003    	BNE $4D60
C0/4D5D:	4C044E  	JMP $4E04			(could say BRL $4E04)
C0/4D60:	B97F08  	LDA $087F,Y
C0/4D63:	4A      	LSR A
C0/4D64:	B0F7    	BCS $4D5D
C0/4D66:	D00A    	BNE $4D72
C0/4D68:	A5B0    	LDA $B0
C0/4D6A:	3A      	DEC A
C0/4D6B:	3A      	DEC A
C0/4D6C:	8590    	STA $90
C0/4D6E:	A5A7    	LDA $A7
C0/4D70:	8006    	BRA $4D78
C0/4D72:	A5B0    	LDA $B0
C0/4D74:	8590    	STA $90
C0/4D76:	A5AD    	LDA $AD
C0/4D78:	C915    	CMP #$15
C0/4D7A:	D015    	BNE $4D91
C0/4D7C:	AF15767E	LDA $7E7615
C0/4D80:	C9F7    	CMP #$F7
C0/4D82:	F0D9    	BEQ $4D5D
C0/4D84:	2920    	AND #$20
C0/4D86:	F0D5    	BEQ $4D5D
C0/4D88:	A5AF    	LDA $AF
C0/4D8A:	858F    	STA $8F
C0/4D8C:	A2064E  	LDX #$4E06
C0/4D8F:	8031    	BRA $4DC2
C0/4D91:	C917    	CMP #$17
C0/4D93:	D015    	BNE $4DAA
C0/4D95:	AF17767E	LDA $7E7617
C0/4D99:	C9F7    	CMP #$F7
C0/4D9B:	F067    	BEQ $4E04
C0/4D9D:	2920    	AND #$20
C0/4D9F:	F063    	BEQ $4E04
C0/4DA1:	A5AF    	LDA $AF
C0/4DA3:	858F    	STA $8F
C0/4DA5:	A20A4E  	LDX #$4E0A
C0/4DA8:	8018    	BRA $4DC2
C0/4DAA:	C91C    	CMP #$1C
C0/4DAC:	D056    	BNE $4E04
C0/4DAE:	AF1C767E	LDA $7E761C
C0/4DB2:	C9F7    	CMP #$F7
C0/4DB4:	F04E    	BEQ $4E04
C0/4DB6:	2920    	AND #$20
C0/4DB8:	F04A    	BEQ $4E04
C0/4DBA:	A5AF    	LDA $AF
C0/4DBC:	3A      	DEC A
C0/4DBD:	858F    	STA $8F
C0/4DBF:	A20E4E  	LDX #$4E0E
C0/4DC2:	868C    	STX $8C
C0/4DC4:	A590    	LDA $90
C0/4DC6:	1A      	INC A
C0/4DC7:	EB      	XBA
C0/4DC8:	A5AF    	LDA $AF
C0/4DCA:	AA      	TAX
C0/4DCB:	7B      	TDC 
C0/4DCC:	BF00207E	LDA $7E2000,X
C0/4DD0:	C9FF    	CMP #$FF
C0/4DD2:	D030    	BNE $4E04
C0/4DD4:	C221    	REP #$21
C0/4DD6:	AE2711  	LDX $1127
C0/4DD9:	A58F    	LDA $8F
C0/4DDB:	9D2911  	STA $1129,X
C0/4DDE:	E8      	INX
C0/4DDF:	E8      	INX
C0/4DE0:	E03000  	CPX #$0030
C0/4DE3:	B003    	BCS $4DE8
C0/4DE5:	8E2711  	STX $1127
C0/4DE8:	7B      	TDC 
C0/4DE9:	E220    	SEP #$20      (8 bit accum./memory)
C0/4DEB:	A9C0    	LDA #$C0
C0/4DED:	858E    	STA $8E
C0/4DEF:	A20000  	LDX #$0000
C0/4DF2:	862A    	STX $2A
C0/4DF4:	A904    	LDA #$04
C0/4DF6:	8D5A05  	STA $055A
C0/4DF9:	20C41E  	JSR $1EC4
C0/4DFC:	A92C    	LDA #$2C
C0/4DFE:	20D302  	JSR $02D3
C0/4E01:	A901    	LDA #$01
C0/4E03:	60      	RTS
C0/4E04:	7B      	TDC 
C0/4E05:	60      	RTS

C0/4E06 unknow

C0/4E06:	0102    	
C0/4E08:	0414    	
C0/4E0A:	0102    	
C0/4E0C:	0616    	
C0/4E0E:	0302    
C0/4E10:	0809      	
C0/4E12:	0A18      	
C0/4E14:	191A

C0/4E16 set walking speed

C0/4E16:	85B3    	STA $B3
C0/4E18:	AA      	TAX
C0/4E19:	BF8D4FC0	LDA $C04F8D,X
C0/4E1D:	AA      	TAX
C0/4E1E:	B5A3    	LDA $A3,X
C0/4E20:	AA      	TAX
C0/4E21:	ADB81E  	LDA $1EB8      (load event bits)
C0/4E24:	2902    	AND #$02       (is "disable sprinting" set?)
C0/4E26:	D00B    	BNE $4E33      (branch if so)
C0/4E28:	ADDF11  	LDA $11DF      (load party-wide byte)
C0/4E2B:	2920    	AND #$20       (are sprint shoes equipped?)
C0/4E2D:	F004    	BEQ $4E33      (branch if not)
C0/4E2F:	A903    	LDA #$03
C0/4E31:	8002    	BRA $4E35      (sprint shoes equipped, add to walking speed)
C0/4E33:	A902    	LDA #$02
C0/4E35:	997508  	STA $0875,Y    (store walking speed)
C0/4E38:	A97E    	LDA #$7E
C0/4E3A:	48      	PHA
C0/4E3B:	AB      	PLB           (set bank to #$7E)
C0/4E3C:	DA      	PHX
C0/4E3D:	A5B3    	LDA $B3
C0/4E3F:	3A      	DEC A
C0/4E40:	AA      	TAX
C0/4E41:	BF104FC0	LDA $C04F10,X  (load bitfield)
C0/4E45:	851A    	STA $1A
C0/4E47:	FA      	PLX
C0/4E48:	A5B9    	LDA $B9
C0/4E4A:	290F    	AND #$0F
C0/4E4C:	251A    	AND $1A
C0/4E4E:	F048    	BEQ $4E98
C0/4E50:	BD0076  	LDA $7600,X
C0/4E53:	2907    	AND #$07
C0/4E55:	C907    	CMP #$07
C0/4E57:	F03F    	BEQ $4E98
C0/4E59:	A5B8    	LDA $B8
C0/4E5B:	2904    	AND #$04
C0/4E5D:	F018    	BEQ $4E77
C0/4E5F:	A5B2    	LDA $B2
C0/4E61:	2901    	AND #$01
C0/4E63:	F009    	BEQ $4E6E
C0/4E65:	BD0076  	LDA $7600,X
C0/4E68:	2902    	AND #$02
C0/4E6A:	D02C    	BNE $4E98
C0/4E6C:	802F    	BRA $4E9D
C0/4E6E:	BD0076  	LDA $7600,X
C0/4E71:	2901    	AND #$01
C0/4E73:	D023    	BNE $4E98
C0/4E75:	8026    	BRA $4E9D
C0/4E77:	BD0076  	LDA $7600,X
C0/4E7A:	2903    	AND #$03
C0/4E7C:	C903    	CMP #$03
C0/4E7E:	F01D    	BEQ $4E9D
C0/4E80:	A5B8    	LDA $B8
C0/4E82:	2903    	AND #$03
C0/4E84:	C903    	CMP #$03
C0/4E86:	F009    	BEQ $4E91
C0/4E88:	4903    	EOR #$03
C0/4E8A:	3D0076  	AND $7600,X
C0/4E8D:	D009    	BNE $4E98
C0/4E8F:	800C    	BRA $4E9D
C0/4E91:	BD0076  	LDA $7600,X
C0/4E94:	2904    	AND #$04
C0/4E96:	F005    	BEQ $4E9D
C0/4E98:	7B      	TDC 
C0/4E99:	48      	PHA
C0/4E9A:	AB      	PLB
C0/4E9B:	7B      	TDC            (A is already 0 here)
C0/4E9C:	60      	RTS

C0/4E9D unknow

C0/4E9D:	DA      	PHX			(from C0/4E75, C0/4E8F, C0/4E96)
C0/4E9E:	A5B3    	LDA $B3
C0/4EA0:	20037D  	JSR $7D03
C0/4EA3:	FA      	PLX
C0/4EA4:	A41E    	LDY $1E
C0/4EA6:	B90020  	LDA $2000,Y
C0/4EA9:	3019    	BMI $4EC4
C0/4EAB:	BD0076  	LDA $7600,X
C0/4EAE:	2904    	AND #$04
C0/4EB0:	F0E6    	BEQ $4E98
C0/4EB2:	A5B8    	LDA $B8
C0/4EB4:	2907    	AND #$07
C0/4EB6:	C901    	CMP #$01
C0/4EB8:	F0DE    	BEQ $4E98
C0/4EBA:	C902    	CMP #$02
C0/4EBC:	F006    	BEQ $4EC4
C0/4EBE:	A5B2    	LDA $B2
C0/4EC0:	C902    	CMP #$02
C0/4EC2:	D0D4    	BNE $4E98
C0/4EC4:	BD0076  	LDA $7600,X
C0/4EC7:	2904    	AND #$04
C0/4EC9:	F006    	BEQ $4ED1
C0/4ECB:	A5B2    	LDA $B2
C0/4ECD:	C902    	CMP #$02
C0/4ECF:	F01E    	BEQ $4EEF
C0/4ED1:	7B      	TDC 
C0/4ED2:	48      	PHA
C0/4ED3:	AB      	PLB
C0/4ED4:	AE0308  	LDX $0803
C0/4ED7:	8E0442  	STX $4204
C0/4EDA:	A929    	LDA #$29
C0/4EDC:	8D0642  	STA $4206
C0/4EDF:	EA      	NOP
C0/4EE0:	EA      	NOP
C0/4EE1:	EA      	NOP
C0/4EE2:	EA      	NOP
C0/4EE3:	A97E    	LDA #$7E
C0/4EE5:	48      	PHA
C0/4EE6:	AB      	PLB
C0/4EE7:	AF144200	LDA $004214
C0/4EEB:	0A      	ASL A
C0/4EEC:	990020  	STA $2000,Y
C0/4EEF:	A5B8    	LDA $B8
C0/4EF1:	2907    	AND #$07
C0/4EF3:	C903    	CMP #$03
C0/4EF5:	B006    	BCS $4EFD
C0/4EF7:	A5B8    	LDA $B8
C0/4EF9:	2903    	AND #$03
C0/4EFB:	85B2    	STA $B2
C0/4EFD:	202D4F  	JSR $4F2D
C0/4F00:	20E64F  	JSR $4FE6
C0/4F03:	7B      	TDC 
C0/4F04:	48      	PHA
C0/4F05:	AB      	PLB
C0/4F06:	A4DA    	LDY $DA
C0/4F08:	A5B3    	LDA $B3
C0/4F0A:	997E08  	STA $087E,Y
C0/4F0D:	A901    	LDA #$01
C0/4F0F:	60      	RTS

C0/4F10 unknow

C0/4F10:	0801      	
C0/4F12:	0402    	

C0/4F14 unknow

C0/4F14:	A6B4    	LDX $B4
C0/4F16:	E0F800    	CPX #$00F8
C0/4F19:	F011    	BEQ $4F2C
C0/4F1B:	A5B8    	LDA $B8
C0/4F1D:	2904    	AND #$04
C0/4F1F:	D00B    	BNE $4F2C
C0/4F21:	A5B6    	LDA $B6
C0/4F23:	2904    	AND #$04
C0/4F25:	D005    	BNE $4F2C
C0/4F27:	A2F800  	LDX #$00F8
C0/4F2A:	86B4    	STX $B4
C0/4F2C:	60      	RTS

C0/4F2D unknow

C0/4F2D:	A6B4    	LDX $B4
C0/4F2F:	E0B801  	CPX #$01B8
C0/4F32:	F046    	BEQ $4F7A
C0/4F34:	A5B3    	LDA $B3
C0/4F36:	AA      	TAX
C0/4F37:	BF8D4FC0	LDA $C04F8D,X
C0/4F3B:	AA      	TAX
C0/4F3C:	B5A3    	LDA $A3,X
C0/4F3E:	AA      	TAX
C0/4F3F:	BF00767E	LDA $7E7600,X
C0/4F43:	851A    	STA $1A
C0/4F45:	2904    	AND #$04
C0/4F47:	F00D    	BEQ $4F56
C0/4F49:	A5B2    	LDA $B2
C0/4F4B:	C902    	CMP #$02
C0/4F4D:	D02B    	BNE $4F7A
C0/4F4F:	A2B801  	LDX #$01B8
C0/4F52:	86B4    	STX $B4
C0/4F54:	8024    	BRA $4F7A
C0/4F56:	A5B3    	LDA $B3
C0/4F58:	AA      	TAX
C0/4F59:	BF7B4FC0	LDA $C04F7B,X
C0/4F5D:	AA      	TAX
C0/4F5E:	B5A3    	LDA $A3,X
C0/4F60:	AA      	TAX
C0/4F61:	BF00767E	LDA $7E7600,X
C0/4F65:	C9F7    	CMP #$F7
C0/4F67:	F011    	BEQ $4F7A
C0/4F69:	2904    	AND #$04
C0/4F6B:	F00D    	BEQ $4F7A
C0/4F6D:	A5B6    	LDA $B6
C0/4F6F:	2907    	AND #$07
C0/4F71:	C902    	CMP #$02
C0/4F73:	D005    	BNE $4F7A
C0/4F75:	A2B801  	LDX #$01B8
C0/4F78:	86B4    	STX $B4
C0/4F7A:	60      	RTS

C0/4F7B unknow

C0/4F7B:	0401    	TSB $01
C0/4F7D:	0507    	ORA $07
C0/4F7F:	0302    	ORA $02,S
C0/4F81:	08      	PHP 
C0/4F82:	0600    	ASL $00
C0/4F84:	0401    	TSB $01
C0/4F86:	0205    	COP #$05
C0/4F88:	08      	PHP 
C0/4F89:	0706    	ORA [$06]
C0/4F8B:	0300    	ORA $00,S
C0/4F8D:	0704    	ORA [$04]
C0/4F8F:	08      	PHP 
C0/4F90:	0A      	ASL A
C0/4F91:	0605    	ASL $05
C0/4F93:	0B      	PHD
C0/4F94:	0903    	ORA #$03
C0/4F96:	0704    	ORA [$04]
C0/4F98:	0508    	ORA $08
C0/4F9A:	0B      	PHD
C0/4F9B:	0A      	ASL A
C0/4F9C:	0906    	ORA #$06
C0/4F9E:	03

C0/4F9F unknow

C0/4F9F:	AC0308    	LDY $0803
C0/4FA2:	B96808  	LDA $0868,Y
C0/4FA5:	2906    	AND #$06
C0/4FA7:	F003    	BEQ $4FAC
C0/4FA9:	4C697C  	JMP $7C69
C0/4FAC:	A5B8    	LDA $B8
C0/4FAE:	2904    	AND #$04
C0/4FB0:	F010    	BEQ $4FC2
C0/4FB2:	A5B2    	LDA $B2
C0/4FB4:	C901    	CMP #$01
C0/4FB6:	D02D    	BNE $4FE5
C0/4FB8:	B98008  	LDA $0880,Y
C0/4FBB:	0930    	ORA #$30
C0/4FBD:	998008  	STA $0880,Y
C0/4FC0:	8015    	BRA $4FD7
C0/4FC2:	B98008  	LDA $0880,Y
C0/4FC5:	2910    	AND #$10
C0/4FC7:	D00E    	BNE $4FD7
C0/4FC9:	A5B8    	LDA $B8
C0/4FCB:	2908    	AND #$08
C0/4FCD:	F008    	BEQ $4FD7
C0/4FCF:	B98008  	LDA $0880,Y
C0/4FD2:	0930    	ORA #$30
C0/4FD4:	998008  	STA $0880,Y
C0/4FD7:	A5B8    	LDA $B8
C0/4FD9:	2910    	AND #$10
C0/4FDB:	F008    	BEQ $4FE5
C0/4FDD:	B98108  	LDA $0881,Y
C0/4FE0:	0930    	ORA #$30
C0/4FE2:	998108  	STA $0881,Y
C0/4FE5:	60      	RTS

C0/4FE6 unknow

C0/4FE6:	AC0308  	LDY $0803
C0/4FE9:	B96808  	LDA $0868,Y
C0/4FEC:	2906    	AND #$06
C0/4FEE:	F003    	BEQ $4FF3
C0/4FF0:	4C697C  	JMP $7C69
C0/4FF3:	A5B3    	LDA $B3
C0/4FF5:	AA      	TAX
C0/4FF6:	BF8D4FC0	LDA $C04F8D,X
C0/4FFA:	AA      	TAX
C0/4FFB:	B5A3    	LDA $A3,X
C0/4FFD:	AA      	TAX
C0/4FFE:	BF00767E	LDA $7E7600,X
C0/5002:	2904    	AND #$04
C0/5004:	F012    	BEQ $5018
C0/5006:	A5B2    	LDA $B2
C0/5008:	C902    	CMP #$02
C0/500A:	D025    	BNE $5031
C0/500C:	B98008  	LDA $0880,Y
C0/500F:	29CF    	AND #$CF
C0/5011:	0920    	ORA #$20
C0/5013:	998008  	STA $0880,Y
C0/5016:	8019    	BRA $5031
C0/5018:	B98008  	LDA $0880,Y
C0/501B:	2910    	AND #$10
C0/501D:	F012    	BEQ $5031
C0/501F:	BF00767E	LDA $7E7600,X
C0/5023:	2908    	AND #$08
C0/5025:	D00A    	BNE $5031
C0/5027:	B98008  	LDA $0880,Y
C0/502A:	29CF    	AND #$CF
C0/502C:	0920    	ORA #$20
C0/502E:	998008  	STA $0880,Y
C0/5031:	BF00767E	LDA $7E7600,X
C0/5035:	2910    	AND #$10
C0/5037:	D00A    	BNE $5043
C0/5039:	B98108  	LDA $0881,Y
C0/503C:	29CF    	AND #$CF
C0/503E:	0920    	ORA #$20
C0/5040:	998108  	STA $0881,Y
C0/5043:	60      	RTS