|File Name: ||Adventure Island - Fruit |
|Submitted: ||2017-09-11 04:31:43 PM by RussianMan |
|Authors: ||RussianMan |
|Tool: ||PIXI |
|Type: ||Standard |
|Dynamic: ||No |
|Disassembly: ||No |
|Includes GFX: ||Yes |
|Description: ||It's an fruit from Adventure Island, it adds time to your timer when collected, appears and disappears after short period of time. |
Credit is optional.
This sprite's SA-1 conversion was clearly rushed: not only the 9 timer addresses (whose use defines the main gimmick of the sprite) use the wrong !Base define, but the part of the sprite that makes use of multiplication register was completely overlooked, effectively not setting the timer as needed in SA-1 ROMs.
LDA $0F32|!Base1 ;get tens count
LDA $0F33|!Base1 ;ones count plus...
CLC ;carry need only be cleared one time
ADC $4216 ;...tens count
LDY $0F31|!Base1 ;hundreds count
AND.w #$00FF ;get rubbish out of high byte
Please correct both of these issues to get this sprite accepted.
For reference regarding multiplication/division in SA-1, you can consult the detailed readme included with the SA-1 patch, which provides examples.