Banner
Views: 784,333,626
Time:
7 users online:  KKevinM, orka-bln, Sancles, snaker96,  Tahixham,  Telinc1, Yurisphyxia - Guests: 23 - Bots: 200 Users: 41,021 (1,554 active)
Latest: RainyParticle
Tip: Check this thread for a list of SMW sound effects.Not logged in.
Adventure Island - Fruit by RussianMan
Forum Index - Valley of Bowser - Moderation Questions - Sprites - Adventure Island - Fruit by RussianMan
Pages: « 1 »
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.

Code
ConvertTime:
	LDA $0F32|!Base1	;get tens count
	STA $4202
	LDA #10
	STA $4203
	
	LDA $0F33|!Base1	;ones count plus...
	CLC			;carry need only be cleared one time
	ADC $4216		;...tens count

	LDY $0F31|!Base1	;hundreds count
	STY $4202
	LDY #100
	STY $4203

	REP #$20
	AND.w #$00FF		;get rubbish out of high byte
	ADC $4216
	RTS


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.
Pages: « 1 »
Forum Index - Valley of Bowser - Moderation Questions - Sprites - Adventure Island - Fruit by RussianMan

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented