Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidgiven/33cb9f35816cc8997b77533eff19f9c3 to your computer and use it in GitHub Desktop.
Save davidgiven/33cb9f35816cc8997b77533eff19f9c3 to your computer and use it in GitHub Desktop.
int func(int i, int j) {
if (i)
j++;
return j;
}
_func:
push iy
ld iy, 0
add iy, sp
ld hl,(iy+6)
jp z, I1_1
ld hl,(iy+9)
inc hl
ld (iy+9),hl
I1_1:
ld hl,(iy+9)
push hl
jp .ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment