Could someone please convert this C code into assembly?
It works for me but slows down the game a bit so I want to speed it up by converting this into assembly but I really hate assembly and don't know where to start.
Basically it sees if the right side of my sprite is off screen and then it replaces it with a blank tile and changes the Y to the bottom of the screen so that I don't run out of sprites per scan line.
Thanks.
Code:
if(X - ScrollX >= 230 * _SHIFTM) {
oam_spr(255, 240, _BLANKTILE, 0, 12);
oam_spr(255, 240, _BLANKTILE, 0, 28);
oam_spr(255, 240, _BLANKTILE, 0, 44);
oam_spr(255, 240, _BLANKTILE, 0, 60);
oam_spr(255, 240, _BLANKTILE, 0, 76);
}
oam_spr(255, 240, _BLANKTILE, 0, 12);
oam_spr(255, 240, _BLANKTILE, 0, 28);
oam_spr(255, 240, _BLANKTILE, 0, 44);
oam_spr(255, 240, _BLANKTILE, 0, 60);
oam_spr(255, 240, _BLANKTILE, 0, 76);
}
It works for me but slows down the game a bit so I want to speed it up by converting this into assembly but I really hate assembly and don't know where to start.
Basically it sees if the right side of my sprite is off screen and then it replaces it with a blank tile and changes the Y to the bottom of the screen so that I don't run out of sprites per scan line.
Thanks.