Skip to content

Instantly share code, notes, and snippets.

@jdiez17
Created November 1, 2012 21:19
Show Gist options
  • Save jdiez17/3996623 to your computer and use it in GitHub Desktop.
Save jdiez17/3996623 to your computer and use it in GitHub Desktop.
void sped3_rotate(unsigned int alpha)
{
__asm
{
SET PUSH, Y
.IMPORT _stubapi_locate_device
SET A, 0x42ba
SET B, 0xbf3c
JSR [_stubapi_locate_device]
SET PUSH, A
SET A, 0x2
SET X, <alpha>
HWI POP
SET Y, POP
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment