i've been looking at a number of commented dissassemblies - one of the shorter ones is the code for Outlaw.
What's confusing me is the commands that are used in each line:
; RAM variables:
PF0Array = $80 ; PF0 array, 18 Bytes
ScoreshapeLow01 = $92 ; Shape of player 1 lower score digit
ScoreshapeLow02 = $93 ; Shape of player 2 lower score digit
ScoreshapeHi01 = $94 ; Shape of player 1 higher score digit
ScoreshapeHi02 = $95 ; Shape of player 2 higher score digit
; Draws the playfield and bullet 1 & increments the kernels linecounter
STA PF2 ; Draw PF2
LDA vertPosition01 ; A-> vertical pos player 1
SBC lineCounter ; Current pos above player1?
BPL SkipDraw2 ; Y: SkipDraw1
LDY shapeOffset01 ; Y-> shapeOffset01
LDA LF6FE,Y ; A-> player 1 shape
TAY ; Y-> player 1 shape
LDA PF0Array,X ; A->PF0 data (obstacle)
STA.w $000D ; Draw PF0 (4 cycles!)
LDA lineCounter ; A->lineCounter
CMP bulletVerPos01 ; Check for bullet 1
PHP ; En/Disable bullet 1
LDA PF1Array,X ; A->PF1 data (obstacle)
STA PF1 ; Draw PF1
LDA PF2Array02,X ; A->PF2 data (frame)
STA PF2 ; Draw PF2
PLA ; Restore...
Whilst there are comments which say what each line does, I'm interested to learn from a master list what each command does.
For instance, these three lines:
PF0Array = $80 ; PF0 array, 18 Bytes
ScoreshapeLow01 = $92 ; Shape of player 1 lower score digit
PHP ; En/Disable bullet 1
where could i find out that the PHP command enables/disables bullets? and what the PF0Array command actually does.
thanks in advance