far like the future, bright like the soul

trans programmer & gamedev, occasional multimedia creator, amy rose kinnie

nd/adhd/(possibly) autism

<3 @fiffle & @milly

this

This


email
amywrightmail (at) protonmail (dot) com

amy
@amy

i'm currently working on a test harness for my wip c# port of sonic 1, by integrating it with the emulator genesis plus gx. however, i'm noticing an odd quirk with how frames are timed and when vertical blanking happens. WaitForVBla spins until a vertical interrupt occurs and then returns. dbf is just a decrement and branch instruction, controls the loop. d4 is set to 0x15 right before waiting for vblank so i would assume that by the time control comes back to my c# code that d4 would be 0x15. however if you look in the log on the left you'll see that it somehow already decrements to 0x14 before coming back to my code, despite the fact that a vint didn't happen. am i missing something?? please advise


You must log in to comment.