Skip to content

Instantly share code, notes, and snippets.

@marijnvdwerf
Last active December 16, 2016 21:52
Show Gist options
  • Select an option

  • Save marijnvdwerf/3aea13e1f9d615e76ea436e00e28dbce to your computer and use it in GitHub Desktop.

Select an option

Save marijnvdwerf/3aea13e1f9d615e76ea436e00e28dbce to your computer and use it in GitHub Desktop.
bool8 sub_81472E4(u16 arg0);
bool8 sub_8147324(u16 arg0) {
u16 i2;
u16 i;
bool8 success;
i = 0;
while (TRUE) {
u32 next;
i2 = 0;
next = i + 1;
for (; i2 < 0x1000; i2++) {
ProgramFlashByte(arg0, i2, 0);
}
success = sub_81472E4(arg0);
i = next;
if (!success) {
goto end;
}
if (i >= 130) {
goto end;
}
}
end:
return success;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment