Skip to content

Instantly share code, notes, and snippets.

@ISSOtm
Created March 28, 2026 18:34
Show Gist options
  • Select an option

  • Save ISSOtm/28024803bb20329a8608051b7f0f9a3d to your computer and use it in GitHub Desktop.

Select an option

Save ISSOtm/28024803bb20329a8608051b7f0f9a3d to your computer and use it in GitHub Desktop.
RGBASM syntax madness
If 0
yo dawg, I herd u liek C so I put preproc in your assembler
but also it's not a separate pass, it's aware of earlier
non-textual operations!
The only logical reaction: “@?$~%!#”
(no, those weren't ASCII quotes, either...)
endc
def tiles eQUS "* 16"
println 2 {tiles} ; 2 * 16
println 2 *{tiles} ; 2 ** 16
MaCrO lol
IF Def(wtf)
fail "Aight I give up"
ENDC
def wtf equs "println \"À l'aide\"\nlol"
ENDM
{wtf} "Syntax error, makes sense"
lol
{wtf} "????"
I can also put any syntax errors here and stuff,
and it's expected that it doesn't generate any new errors either.
Like, there *are* valid reasons to expect such behaviour,
actually.
*sips* this is fine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment