Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
C
c64-commando-2084
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ricardo Quesada
c64-commando-2084
Commits
c6c58af6
Commit
c6c58af6
authored
Sep 17, 2019
by
Ricardo Quesada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more info about SHOOT_FREQ_MASK
parent
2c2941c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
README.md
README.md
+10
-0
src/main.asm
src/main.asm
+7
-6
No files found.
README.md
View file @
c6c58af6
...
...
@@ -57,6 +57,16 @@ the cracked version, without any other additional code.
### Findings
#### Increased difficulty
Apparently, the idea was to increase how frequent soldier shoot in each level.
That includes the first level after completing the game. Either due to a bug,
or due to a last minute fix, this behavior was disabled.
See
`SHOOT_FREQ_MASK`
in [main.asm] for more info.
#### Level 2
Apparently, the original idea was to ship Commando with 4 levels instead of 3.
There is a lot of code/data that indicates that a "level 2" (the levels that are
shipped with Commando are level 0, 1 and 3) was in progress, or even finished.
...
...
src/main.asm
View file @
c6c58af6
...
...
@@ -178,7 +178,7 @@ LIVES = $0500
a0501
=
$
0501
;unused
a0502
=
$
0502
;unused
IS_HERO_DEAD
=
$
0503
;0: hero alive, 1:was shot, 2:fell down in trench
SHOOT_FREQ_MASK
=
$
0504
SHOOT_FREQ_MASK
=
$
0504
;How frequent soliders can shoot
HISCORE_IS_BULLET_ANIM
=
$
0505
;1: if the bullet in hiscore is being animated
HISCORE_NAME
=
$
0506
;8 chars reserved for the hiscore name ($0506-$050E)
HISCORE_NAME_IDX
=
$
050
F
;Index to the hiscore name
...
...
@@ -4384,10 +4384,10 @@ _L00 LDA ENEMIES_IN_FORT
JSR
GET_RANDOM
AND
#
$
7
F
;#%01111111
BNE
b2CC0
LDA
#
$
3
F
STA
SHOOT_FREQ_MASK
LDA
#
$
3
F
;FIXME: overrides SHOT_FREQ_MASK set by SETUP_LEVEL
STA
SHOOT_FREQ_MASK
;Either a bug, or a last minute "fix".
DEC
ENEMIES_IN_FORT
BNE
_L01
;FIXME: probably an "RTS" is missing here?
BNE
_L01
;FIXME: probably an "RTS" is missing here?
_L01
LDA
LEVEL_NR
AND
#
$
03
...
...
@@ -5272,7 +5272,7 @@ _L06 LDA pFB,b
;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-;
; related to shoot
j33D0
LDA
SP
RITES_TMP_C05
,
X
AND
SHOOT_FREQ_MASK
AND
SHOOT_FREQ_MASK
;cooldown for solider shooting
BNE
_L01
; Find empty seat
...
...
@@ -6696,7 +6696,8 @@ f3ECE .BYTE $60,$80,$80,$A0
;Mask regarding how frequent sholdiers shoot.
;Not Used since it is overriden by TYPE_ANIM_SPAWN_SOLDIER
f3ED2
.BYTE
$
3
F
,
$
1
F
,
$
0
F
,
$
0
F
,
$
0
F
,
$
0
F
,
$
0
F
,
$
0
F
f3ED2
.BYTE
$
3
F
,
$
1
F
,
$
0
F
,
$
0
F
;Mask for level 0-3
.BYTE
$
0
F
,
$
0
F
,
$
0
F
,
$
0
F
;Mask for level 0-3, 2nd loop
; Restart row index for each level.
f3EDA
.BYTE
$
13
,
$
3
D
,
$
61
,
$
83
,
$
AF
;LVL0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment