Skip to content

Instantly share code, notes, and snippets.

@owocean
Created January 30, 2021 22:06
Show Gist options
  • Save owocean/0433a34dcfb1409bd5528e4821dd0055 to your computer and use it in GitHub Desktop.
Save owocean/0433a34dcfb1409bd5528e4821dd0055 to your computer and use it in GitHub Desktop.
Fizzbuzz in whitespace (with comments). this hurt to make.
push1
dup
dupcont. printi
printicont.
label0
push1
add dup
dupcont. push3
mod
jzlabel1
jmplabel2
jmplabel2cont.
jmplabel2cont.
label1
label1cont.
dup
dupcont. push5
mod
jzlabel3
jmplabel4
jmplabel4cont.
jmplabel4cont.
label2
label2cont.
dup
dupcont. push5
mod
jzlabel5
jmplabel6
jmplabel6cont.
jmplabel6cont.
label3
label3cont.
push63
push7
add printc
printccont. push63
push3
add printc
printccont.
jmplabel7
jmplabel7cont.
label4
label4cont.
push63
push7
add printc
printccont.
jmplabel0
jmplabel0cont.
label5
label5cont.
push63
push3
add printc
printccont.
jmplabel0
jmplabel0cont.
label6
label6cont.
dup
dupcont. printi
printicont.
jmplabel0
jmplabel0cont.
label7
label7cont.
jmplabel0
jmplabel0
jmplabel0
end
endcont.
endcont.
endcont.
push1
dup
dupcont. printi
printicont.
label0
push1
add dup
dupcont. push3
mod
jzlabel1
jmplabel2
jmplabel2cont.
jmplabel2cont.
label1
label1cont.
dup
dupcont. push5
mod
jzlabel3
jmplabel4
jmplabel4cont.
jmplabel4cont.
label2
label2cont.
dup
dupcont. push5
mod
jzlabel5
jmplabel6
jmplabel6cont.
jmplabel6cont.
label3
label3cont.
push63
push7
add printc
printccont. push63
push3
add printc
printccont.
jmplabel7
jmplabel7cont.
label4
label4cont.
push63
push7
add printc
printccont.
jmplabel0
jmplabel0cont.
label5
label5cont.
push63
push3
add printc
printccont.
jmplabel0
jmplabel0cont.
label6
label6cont.
dup
dupcont. printi
printicont.
jmplabel0
jmplabel0cont.
label7
label7cont.
end
endcont.
endcont.
endcont.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment