Skip to content

Instantly share code, notes, and snippets.

@akamah
Last active October 29, 2016 08:41
Show Gist options
  • Save akamah/5f222d7d0ca35513f0cf51ddc9f08c66 to your computer and use it in GitHub Desktop.
Save akamah/5f222d7d0ca35513f0cf51ddc9f08c66 to your computer and use it in GitHub Desktop.
AND gate written in Plarail flavoured C.
if (B == 0) {
X = 0; goto wrote_X;
} else {
if (A == 0) {
X = 0; goto wrote_X;
} else {
X = 1; goto wrote_X;
}
}
wrote_X: ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment