Falel

From Esolang
Jump to navigation Jump to search

Fancy Assembly Like EsoLang

This is a little thing I made after playing Shenzen I/O.


Documentation

Memory Scheme

|  out-buff  |  in-buff  |   acc   |  x3   ...  unused  ...  x255  |


Commands

Command Effect
mov R/I R copy the value of the first arg to the register in second arg
add I adds integer to accumulator (wraps around)
sub I subtracts integer to accumulator (max 255 min 0)
saz Set Accumulator to Zero
fls M flushes out-buff to stdout. M(ode) can either be d(ecimal) or c(har)
uib M Update Input Buffer, gets a byte of input and stores it in x1
wnz R/I While Non Zero
slh Stop Loop Here

Full documentation: https://raw.githubusercontent.com/umanochiocciola/falel/main/DOCS

Examples

HELLO, WORLD!

add 72; mov acc out; fls c; saz; print H


add 69; mov acc out; fls c; saz

add 76; mov acc out; fls c; saz

add 76; mov acc out; fls c; saz

add 79; mov acc out; fls c; saz

add 44; mov acc out; fls c; saz

add 32; mov acc out; fls c; saz

add 87; mov acc out; fls c; saz

add 79; mov acc out; fls c; saz

add 82; mov acc out; fls c; saz

add 76; mov acc out; fls c; saz

add 68; mov acc out; fls c; saz

add 33; mov acc out; fls c; saz

add 10; mov acc out; fls c; saz

External Resources

https://umanochiocciola.github.io/falel/ Front Page

https://github.com/umanochiocciola/falel/tree/main github