09-22-2019, 01:48 PM
When nopping the 3 store instructions in Memory (80597F4C/F50/F54). The Y Axis (f0) was still getting written to/updated. Some other instruction is also writing to it.
The coordinates obviously have position/negative limits. You will need to find out what those are which can be a pain. For my globe code, I was lucky with it being a sphere. Degrees had a 179.99999~/-179.99999~ (0xB3/-0xB3) limit.
Your use of multiplying/dividing seems too much of a hassle. Look at the source in my globe code https://mkwii.com/showthread.php?tid=1260
Do something like that (using a integer to float conversion) to get rid of mulli/divw.
Take note that when I was doing bgt/blt branches for the sphere degree check. I did NOT do logical compares since negative numbers could occur.
Also double check that you are sure you have the XYZ mapped correctly. On graphs, Z goes north south. Y goes up down. X goes west east.
The coordinates obviously have position/negative limits. You will need to find out what those are which can be a pain. For my globe code, I was lucky with it being a sphere. Degrees had a 179.99999~/-179.99999~ (0xB3/-0xB3) limit.
Your use of multiplying/dividing seems too much of a hassle. Look at the source in my globe code https://mkwii.com/showthread.php?tid=1260
Do something like that (using a integer to float conversion) to get rid of mulli/divw.
Take note that when I was doing bgt/blt branches for the sphere degree check. I did NOT do logical compares since negative numbers could occur.
Also double check that you are sure you have the XYZ mapped correctly. On graphs, Z goes north south. Y goes up down. X goes west east.