Created
June 2, 2023 20:41
-
-
Save davidgiven/33cb9f35816cc8997b77533eff19f9c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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