Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $FF9300 | Controller buffer
- > $00 - Port 1 ID
- > $01 - Port 2 ID
- > $0B - [PORT 1] 6pad flag ($00/$01)
- > $0C,$0D - [PORT 1] SACBRLDU Hold,Press
- > $0E,$0F - [PORT 1] 000000XYZ Hold,Press (MODE is ignored)
- > $23 - [PORT 2] 6pad flag ($00/$01)
- > $24,$25 - [PORT 2] SACBRLDU Hold,Press
- > $26,$27 - [PORT 2] 000000XYZ Hold,Press (MODE is ignored)
- $FF9060 (WORD) - controller inputs SACBRLDU ($hold|press)
- $FF9062 (WORD) - controller inputs XYZ ($hold|press)
- $FF9CA0 (WORD) - Player actions (routines at $1099C)
- - $07 move right on ladder
- - $08 move left on ladder
- - $0F turn to left on ladder
- - $10 turn to right on ladder
- $FF9F0A - Player data for frames(?)
- $FF9CBF (BYTE) - Player is-on-ladder flag
- $FF9C82 (WORD) - Player AnimFrame
- $FF9C86 (WORD) - Player AnimFrame oldnumber
- $FF9CCC (WORD) - Flag JumpOutTheLadder
- $FFAC00 - Alternate sprite list for the water
- $FFB280 -
- $FFB318 - Player Xpos (SCREEN position)
- $FFB31C - Player Ypos
- $FFB328 - Player animation ID
- $FFB32C - Player direction (1 - right, 0 - left)
- $FFB32D - Player YFlip
- $FFB34E (LONG) - Animation data pointer
- -- $0106C2 standing
- -- $0106CA walking
- -- $0106FE ladder climb up step 1
- -- $010706 ladder climb up step 2
- -- $01070E ladder climb down step 1
- -- $010716 ladder climb down step 2
- $FFEEB0 - DMA Sprite list
- CODE:
- $00E99C - ROUTINE: Make Player sprite from pieces
- $0106C2 - ROUTINE: Set player animation
- $031F3A - ROUTINE: Build sprites (1)
- $0320D4 - ROUTINE: Build sprites (2)
- $011002 - Player going up in ladder ($FF9CD4 WORD: index jump)
- $0113E2 - Player going down in ladder
- $060FD0 - Sprite piece pointer list (very large list)
- examples:
- $068586 - ladderframe1 start
- + $00 - Xpos
- + $02 - Ypos
- + $04 - ?
- + $06 - ?
- Animation data format (2 bytes):
- $(timer),$(frame)
- if $FFFF then loop
- if $0000 then finish
- ids for the on-ladder sprite pieces:
- $0D,$0E,$09
- $0A,$0B,$0C
- $13,$14,$0F
- $10,$11,$12
- off_0_EA7E data format
- dc.w piece_1 (list at: 060FD0, pz_id*2)
- dc.w piece_2
- dc.b ?
- dc.b ?,?,?,?,?
- rept 7
- dc.w ?
- dc.w ?
- dc.w ?
- endr
Add Comment
Please, Sign In to add comment