+ |
00202-0028F
00202-00207
00208-00209
0020A-0020F
00210-00211
00212-00215
00216-00219
0021A-0021D
0021E-00221
00222-00225
00226-00227
00228-0022F
00230-00231
00232-00233
00234-00235
00236-00237
00238-00239
0023A-0023B
0023C-0023D
0023E-0023F
00240-00243
00244-00245
00246-00247
00248-00249
0024A-0024B
0024C-0024D
0024E-0024F
00250-00251
00252-00253
00254-00257
00258-00259
0025A-0025B
0025C-0025D
0025E-0025F
00260-00263
00264-00265
00266-00267
00268-00269
0026A-0026B
0026C-0026F
00270-00271
00272-00273
00274-00275
00276-00279
0027A-0027B
0027C-0027F
00280-00283
00284-00285
00286-00289
0028A-0028D
0028E-0028F
|
8E
6
2
6
2
4
4
4
4
4
2
8
2
2
2
2
2
2
2
2
4
2
2
2
2
2
2
2
2
4
2
2
2
2
4
2
2
2
2
4
2
2
2
4
2
4
4
2
4
4
2
|
4AB9 00A10008 ...
4AB9 00A10008
6606
4A79 00A1000C
667C
4BFA 007C
4C9D 00E0
4CDD 1F00
1029 EF01
0200 000F
6708
237C 53454741 2F00
3014
7000
2C40
4E66
7217
1A1D
3885
DA47
51C9 FFF8
289D
3680
3287
3487
0111
66FC
7425
10DD
51CA FFFC
3480
3280
3487
2D00
51CE FFFC
289D
289D
761F
2680
51CB FFFC
289D
7813
2680
51CC FFFC
7A03
175D 0011
51CD FFFA
3480
4CD6 7FFF
46FC 2700
606C
|
TST.L $00A10008 ...
TST.L $00A10008
BNE $00000210
TST.W $00A1000C
BNE $0000028E
LEA $00000290(pc),A5
MOVEM.W (A5)+,D5-D7
MOVEM.L (A5)+,A0-A4
MOVE.B -$10FF(A1),D0
AND.B #$0F,D0
BEQ $00000230
MOVE.L #$53454741,$2F00(A1)
MOVE.W (A4),D0
MOVEQ #$00,D0
MOVE.L D0,A6
MOVE A6,USP
MOVEQ #$17,D1
MOVE.B (A5)+,D5
MOVE.W D5,(A4)
ADD.W D7,D5
DBRA D1,$0000023A
MOVE.L (A5)+,(A4)
MOVE.W D0,(A3)
MOVE.W D7,(A1)
MOVE.W D7,(A2)
BTST D0,(A1)
BNE $0000024C
MOVEQ #$25,D2
MOVE.B (A5)+,(A0)+
DBRA D2,$00000252
MOVE.W D0,(A2)
MOVE.W D0,(A1)
MOVE.W D7,(A2)
MOVE.L D0,-(A6)
DBRA D6,$0000025E
MOVE.L (A5)+,(A4)
MOVE.L (A5)+,(A4)
MOVEQ #$1F,D3
MOVE.L D0,(A3)
DBRA D3,$0000026A
MOVE.L (A5)+,(A4)
MOVEQ #$13,D4
MOVE.L D0,(A3)
DBRA D4,$00000274
MOVEQ #$03,D5
MOVE.B (A5)+,$0011(A3)
DBRA D5,$0000027C
MOVE.W D0,(A2)
MOVEM.L (A6),D0-D7/A0-A6
MOVE #$2700,SR
BRA $000002FC
|
Megadrive initialisation routine...
Megadrive initialisation routine.
Check if we are doing a 'soft reset' if so skip the initialisation.
Load setup values from 00000290.
Check if we have to do the 'Sega Security Check'.
Skip it.
Write 'SEGA' to memory.
Initialise the VDP.
Initialise the Z80.
Clear RAM
Clear CRAM
Clear VDP
Initialise PSG (Sound Processor)
Jump to the game initialisation. |
+ |
00290-002FB
00290-00297
00298-0029F
002A0-002A7
002A8-002AF
002B0-002B7
002B8-002BF
002C0-002C7
002C8-002CF
002D0-002D7
002D8-002DF
002E0-002E7
002E8-002EF
002F0-002F7
002F8-002FB
|
6C
8
8
8
8
8
8
8
8
8
8
8
8
8
4
|
8000 3FFF 0100 ...
8000 3FFF 0100 00A0
0000 00A1 1100 00A1
1200 00C0 0000 00C0
0004 0414 303C 076C
0000 0000 FF00 8137
0001 0100 00FF FF00
0080 4000 0080 AF01
D91F 1127 0021 2600
F977 EDB0 DDE1 FDE1
ED47 ED4F D1E1 F108
D9C1 D1E1 F1F9 F3ED
5636 E9E9 8104 8F02
C000 0000 4000 0010
9FBF DFFF
|
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
|
Setup values |
+ |
0BB78-0BC27
0BB78-0BB7D
0BB7E-0BB7F
0BB80-0BB81
0BB82-0BB89
0BB8A-0BB91
0BB92-0BB95
0BB96-0BB9D
0BB9E-0BBA1
0BBA2-0BBA3
0BBA4-0BBAB
0BBAC-0BBB3
0BBB4-0BBB9
0BBBA-0BBC1
0BBC2-0BBC9
0BBCA-0BBD1
0BBD2-0BBD9
0BBDA-0BBE1
0BBE2-0BBE5
0BBE6-0BBE7
0BBE8-0BBEB
0BBEC-0BBEF
0BBF0-0BBF3
0BBF4-0BBF7
0BBF8-0BBF9
0BBFA-0BBFD
0BBFE-0BC01
0BC02-0BC05
0BC06-0BC07
0BC08-0BC0B
0BC0C-0BC0F
0BC10-0BC13
0BC14-0BC15
0BC16-0BC19
0BC1A-0BC1D
0BC1E-0BC21
0BC22-0BC25
0BC26-0BC28
|
AB
6
2
2
8
8
4
8
4
2
8
8
6
8
8
8
8
8
4
2
4
4
4
4
2
4
4
4
2
4
4
4
2
4
4
4
4
2
|
207C 00FFA248 ...
207C 00FFA248
4A10
6D1C
13FC 0001 00FFA2A6
13FC 0017 00FFA252
10BC 0003
13FC 0003 00FFA24A
4A28 0001
6D1E
13FC 0001 00FFA326
13FC 001F 00FFA253
117C 0003 0001
13FC 0003 00FFA24B
13FC 00FF 00FFA259
13FC 00FF 00FFA258
13FC 00FF 00FFDE50
13FC 00FF 00FFDE51
4878 0001
42A7
4EBA F2AE
4878 0001
4878 0001
4EBA F2A2
42A7
4EBA EE3E
4878 0001
4EBA EE36
42A7
4EBA F0A0
4878 0001
4EBA F098
42A7
4EBA F7AC
4878 0001
4EBA F7A4
4FEF 0028
4E75
|
MOVE.L #$00FFA248,A0 ...
MOVE.L #$00FFA248,A0
TST.B (A0)
BLT $0000BB9E
MOVE.B #$01,$00FFA2A6
MOVE.B #$17,$00FFA252
MOVE.B #$03,(A0)
MOVE.B #$03,$00FFA24A
TST.B $0001(A0)
BLT $0000BBC2
MOVE.B #$01,$00FFA326
MOVE.B #$1F,$00FFA253
MOVE.B #$03,$0001(A0)
MOVE.B #$03,$00FFA24B
MOVE.B #$FF,$00FFA259
MOVE.B #$FF,$00FFA258
MOVE.B #$FF,$00FFDE50
MOVE.B #$FF,$00FFDE51
PEA $0001
CLR.L -(A7)
JSR $0000AE98(pc)
PEA $0001
PEA $0001
JSR $0000AE98(pc)
CLR.L -(A7)
JSR $0000AA3A(pc)
PEA $0001
JSR $0000AA3A(pc)
CLR.L -(A7)
JSR $0000ACAA(pc)
PEA $0001
JSR $0000ACAA(pc)
CLR.L -(A7)
JSR $0000B3C4(pc)
PEA $0001
JSR $0000B3C4(pc)
LEA $0028(A7),A7
RTS
|
Sets Toejam and Earl's Starting Stats...
Sets Toejam and Earl's Starting Stats.
Checks if Toejam is in the game.
Branch if he isn't.
Sets Toejam's health to 17 (23 dec).
Sets Toejam's lives to 3.
Sets Toejam's cash to 3.
Checks if Earl is in the game
Branch if he isn't.
Sets Earl's health to 1F (31 dec).
Sets Earl's lives to 3.
Sets Earl's cash to 3.
|
+ |
FFDE7-FFFFF
FFDE7-FFDEE
FFDEF-FFDF6
FFDF7-FFDFE
FFDFF-FFE06
FFE07-FFE0E
FFE0F-FFE16
FFE17-FFE1E
FFE1F-FFE26
FFE27-FFE2E
FFE2F-FFE36
FFE37-FFE3E
FFE3F-FFE46
FFE47-FFE4E
FFE4F-FFE56
FFE57-FFE5E
FFE5F-FFE66
FFE67-FFE6E
FFE6F-FFE76
FFE77-FFE7E
FFE7F-FFE86
FFE87-FFE8E
FFE8F-FFE96
FFE97-FFE9E
FFE9F-FFEA6
FFEA7-FFEAE
FFEAF-FFEB6
FFEB7-FFEBE
FFEBF-FFEC6
FFEC7-FFECE
FFECF-FFED6
FFED7-FFEDE
FFEDF-FFEE6
FFEE7-FFEEE
FFEEF-FFEF6
FFEF7-FFEFE
FFEFF-FFF06
FFF07-FFF0E
FFF0F-FFF16
FFF17-FFF1E
FFF1F-FFF26
FFF27-FFF2E
FFF2F-FFF36
FFF37-FFF3E
FFF3F-FFF46
FFF47-FFF4E
FFF4F-FFF56
FFF57-FFF5E
FFF5F-FFF66
FFF67-FFF6E
FFF6F-FFF76
FFF77-FFF7E
FFF7F-FFF86
FFF87-FFF8E
FFF8F-FFF96
FFF97-FFF9E
FFF9F-FFFA6
FFFA7-FFFAE
FFFAF-FFFB6
FFFB7-FFFBE
FFFBF-FFFC6
FFFC7-FFFCE
FFFCF-FFFD6
FFFD7-FFFDE
FFFDF-FFFE6
FFFE7-FFFEE
FFFEF-FFFF6
FFFF7-FFFFE
FFFFF-FFFFF
|
219
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
8
2
|
FFFF FFFF FFFF ...
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FFFF FFFF FFFF FFFF
FF
|
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
|
Empty space |