Language…
19 users online: Alex No,  AmperSam, Anas,  Anorakun, DanMario24YT, GiraffeKiller, Green, Green Jerry, h.carrell, Hammerer, JikissGamer, MaffYuu, Maw, Metal-Yoshi94, Ray Hamilton, Rykon-V73,  StayAtHomeStegosaurus, Tulip Time Scholarship Games, Zatara - Guests: 297 - Bots: 440
Users: 64,795 (2,369 active)
Latest user: mathew

Problems converting sprite to SA-1

I'm trying to get these pendulum sprites working in SA-1. The converter tool throws an error "cannot remap adress '$004204'". Removing the offending adress allows me to convert it, and inserting $2242 (Seems to be the corresponding SA-1 address) in it's place allows me to insert it into the game succesfully. The sprite itself seems to work perfectly fine, but the chain part of the sprite is glitched to all hell. I've been told this is an issue with the math registers, and playing around with various adresses in the section of the code responsible for this yeilds some results. Unfortunately, my ASM knowledge is quite limited, so all I can really do is try changing around adresses and hope something clicks. Here is the modified file that I've been messing with, if that helps. "CODE_02D876" seems to be the issue.

Tower of Disarray

5/?? levels done
-HAHA Oh jeez-
An 'A' press is an 'A' press




Hella neat layout by Erik557
When using SA-1's arithmetic register, must be setting math mode from $2250.
if you want to divide, must be stored #$01 to $2250.

Code
CODE_02D876:
		STA $2252
		STZ $2251
		LDA #$01
		STA $2250
		LDA $3410,x
		LSR
		STA $2253
		STZ $2254
Thanks a ton. I managed to get it working.

Tower of Disarray

5/?? levels done
-HAHA Oh jeez-
An 'A' press is an 'A' press




Hella neat layout by Erik557