Submission #5738: The8bitbeast, Sonikkustar's SMS Psycho Fox in 02:11.87

Console Sega MasterSystem Emulator Bizhawk 2.2.1
Game Version USA/Europe Frame Count 7902
ROM Filename Psycho Fox (UE) [!].sms Frame Rate 59.9227510135505
Branch Rerecord Count 8466
Unknown Authors The8bitbeast, Sonikkustar
Game Psycho Fox
Submitted by The8bitbeast on 12/9/2017 3:31:42 PM

Submission Comments
This is an improvement of 40 frames to #5518: Sonikkustar, Alyosha's SMS Psycho Fox in 02:02.17. At first glance this movie appears to be 581 frames slower, but with the newer version of Bizhawk the SMS bios is required which adds 621 frames at the start of the TAS.
25 frames are saved from optimized application of the pause glitch and and the other 15 frames are saved from movement in levels. The timesaves are broken down as follows.
SegmentFrames Saved
Title screen pause glitch 2
Movement in 1-1 4
Pause glitch when entering the warp room 21
Movement in 7-1 3
Pause glitch between 7-1 and 7-2 1
Movement in 7-2 8
Pause glitch between 7-2 and 7-3 1
I (The8bitbeast) have done all of the inputs in this TAS but I’ve decided to add Aloysha and Sonikkustar as coauthors because I was constantly checking against the published TAS by Aloysha (which was essentially Sonikkustar’s movement with Aloysha’s pause glitch) and I’ve learnt a lot from studying this TAS.

Useful Addresses

X Position0031
X Velocity0205
Y Position0034
Y Velocity0207


The first thing to do is change to the tiger character who has the fastest running speed. This is done by finding an item called the psycho stick which lets you change characters from the pause menu. The earliest time to get the psycho stick is from an egg early in the first level. Once the tiger character is chosen the next goal is to reach a point in Level 1 where a secret warp room can be accessed by hitting a specific part of the sky. This warp room can take you to round 7. Then levels 7-1, 7-2 and 7-3 are completed normally to finish the game.

Pause Glitch

There is a glitch present in many Master System games which can allow you to reduce loading times with the use of the pause button. The following description of the glitch is taken from the submission text of #5518: Sonikkustar, Alyosha's SMS Psycho Fox in 02:02.17 and is given here for completeness:
It’s possible to reduce loading times by abusing non-maskable interrupts (NMIs) that are generated in the SMS when the 'pause' button is hit. It might seem counter-intuitive that pressing the pause button would make a game go faster, but it does turn out to be the case if pressed at the right time.
Here is what the game is doing during typical loading screen frame:
 Halt, wait for interrupt (~50000 cycles)
 Vblank, Execute necessary code for the frame (~7000 cycles)
What happens when you press pause, is that an NMI occurs in those ~50000 cycles where nothing is happening. The NMI itslef doesn't do anything important except for Return to where the code would be executing after a normal interrupt, so basically it's doing two frames in one. EX:
 Halt, wait for interrupt (zero cycles in this case since pause is pressed immediately)
 Execute frame code
 Halt again
 VBlank, frame code again
The basic idea is that the return from interrupt returns to the same place regardless of which interrupt is triggered. There is plenty of time in a frame to add another interrupt without effecting anything else.

Movement Optimization Techniques

The first thing I do is break the first egg to get the bird fly. While this is not strictly necessary it saves a lot of time over the run. The egg is broken by punching it twice, but after each punch you lose all speed. Since you do 2 punches you lose the speed twice, so if the punches are closer together this saves time. If the egg is punched on the first possible frame the arm takes a long time to reach the egg, then the second punch also takes a long time to hit the egg, which means the punches have to be spread out, so the punches must be left until later to avoid this.
The next technical part is entering the warp room. The entrance must be hit 3 times. So I hit it the first 2 times with the bird fly and the last time with the punch. If you punch too early you hit the warp room open and lose all speed so it takes you longer to enter the warp room. So the punch must be left until you are much closer to the entrance.
7-1, 7-2 and 7-3 have a lot of slopes. These slow you down even if you jump off frame perfectly, but the internal speed value doesn’t decrease. If you run up the slope, when you reach the top you will do a little jump automatically. If you are still on a lower speed after hitting the slope then doing this auto jump off the top causes you to speed up quicker. This saves 2 frames at the end of 7-1.
There are also moving stairs in 7-1, 7-2 and 7-3. These speed you up by 6.67% if you’re at full speed. Once again the internal speed value is not affected. I try to spend as much time as possible on these when the route allows it.
The last hit on the final boss doesn’t matter too much. Once you land the last hit the boss has to run off the screen, but if you hit him later he moves closer to the edge and leaves the screen quicker.
There is a slight clip in the final fight done by ducking and jumping into a roof then pressing left or right in the roof. This is useless in this TAS but it will be slightly more useful in a warpless TAS.

Noxxa: Removed Alyosha from author list by his request.
Noxxa: Judging.
Noxxa: Replaced movie file with a 2-frame improvement.
Noxxa: Since the time loss is exclusively due to the BIOS addition, and the movie does improve upon the previous movie in game time, it counts as an improvement. Accepting as an improvement to the published movie.
Fog: Processing.

Last Edited by ThunderAxe31 on 12/24/2021 6:30:31 PM
Page History Latest diff List Referrers