1942

From NES Hacker Wiki
Revision as of 14:36, 21 April 2016 by TheAlmightyGuru (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1942 is an early scrolling shoot-em-up with a World War II theme based on the arcade game.

Easy Cheats

Icon Addr Val Cmp Description
Icon-Lives.png B7DE 09 02 P1 Starts With 9 Lives
Icon-Lives.png B7E0 31 02 P1 Starts With 20 Lives
Icon-Lives.png B859 09 02 P2 Starts With 9 Lives
Icon-Lives.png B85B 31 02 P2 Starts With 20 Lives
Icon-Lives-Infinite.png 0432 09 - Infinite Lives (Both players)
Icon-Invincible.png 048E 8A - Invincible With POW Shot
Icon-Powerup.png 0436 09 - Infinite Retreats (Both players)
Icon-Challenge.png B7DE 00 02 P1 Starts With 1 Life
Icon-Challenge.png B859 00 02 P2 Starts With 1 Life
Icon-Challenge.png 0431 00 02 Both Players Start With 1 Life, No 1-Ups
How do I use these?

North America / Japan

1942.png

Memory Addresses

0038 - POW points sprite timeout
0039 - POW points sprite timeout flag

008D - Display constant. Adjust this to alter how graphics and palettes are drawn

0200-02FF - Sprite Memory

0427 - P1 Score: 9xxxxx
0428 - P1 Score: x9xxxx
0429 - P1 Score: xx9xxx
042A - P1 Score: xxx9xx
042B - P1 Score: xxxx9x
042C - P1 Score: xxxxx9

0431 - Current Player's Lives x9
0432 - Current Player's Lives 9x
0436 - Current Player's Retreats (00-09)

044A - Display Score: 9xxxxx
044B - Display Score: x9xxxx
044C - Display Score: xx9xxx
044D - Display Score: xxx9xx
044E - Display Score: xxxx9x
044F - Display Score: xxxxx9

0454 - P1 Lives x9 (Holding place during 2-player mode)
0455 - P1 Lives 9x
0456 - P1 Retreats (00-09)

0475 - P2 Lives x9 (Holding place during 2-player mode)
0476 - P2 Lives 9x
0477 - P2 Retreats (00-09)

048E - Player Shooting Style
	00 - Refreshing Screen
	87 - Can't Move, but invincible (Not a normal value)
	88 - Regular Shot
	8A - 4 Shot
	A9 - Dying

0500-050? - Enemy Sprite Palettes

07FF - Background Color (Use NES palette)

A770-A78F - Palette
B783-B7A2 - Palette

Code

Set P1 Starting Lives

This is part of a routine that runs when a game starts

B7DD:A9 02     LDA #$02        ; Load #02 into A
B7DF:8D 32 04  STA $0432       ; Store A into Current Player's Lives

Set P2 Starting Lives

B858:A9 02     LDA #$02        ; Load #02 into A
B85A:8D 32 04  STA $0432       ; Store A into Current Player's Lives

Text

There are two text tables for 1942. The title table only has a small amount of the full text. The game table contains a full alphabet, except Q is replaced with an equals sign.

Title

00=0
01=1
02=2
03=3
04=4
05=5
06=6
07=7
08=8
09=9
0A=A
0B=C
0C=E
0D=H
0E=I
0F=L
10=M
11=O
12=P
13=R
14=S
15=U
16=Y
17=©
18=T
FF= 

Game

00=0
01=1
02=2
03=3
04=4
05=5
06=6
07=7
08=8
09=9
0A=A
0B=B
0C=C
0D=D
0E=E
0F=F
10=G
11=H
12=I
13=J
14=K
15=L
16=M
17=N
18=O
19=P
1A==
1B=R
1C=S
1D=T
1E=U
1F=V
20=W
21=X
22=Y
23=Z
24=-
25=%
26='
FF= 


PlayChoice-10

1942 (PC10).png