funny 1arg asm

  • 0 Replies
  • 149 Views
*

Zero

  • Trusty Member
  • ********
  • Replicant
  • *
  • 714
    • Thinkbots are free
funny 1arg asm
« on: June 26, 2018, 09:56:51 pm »
hi,

based on this old thread, here's a super simple esolang. it's an asm, command-colon-argument. commands take only 1 argument. "this" is the result of the last command. "about" puts something in "this".


[fib]
about: argument
if less than: 3
return: 1
about: argument
decrement: 1
fib: this
store as: fib1
about: argument
decrement: 2
fib: this
increment: fib1
return: this


now we use 1 character names for common commands


[fib]
? @
< 3
^ 1
? @
- 1
fib #
$ fib1
? @
- 2
fib #
+ fib1
^ #


and we loose the brackets, newlines, so it looks like hell


fib: ? @ < 3 ^ 1 ? @ - 1 fib # $ fib1 ? @ - 2 fib # + fib1 ^ #

:)
Thinkbots are free, as in 'free will'.

 


Users Online

75 Guests, 2 Users
Users active in past 15 minutes:
ivan.moony, Freddy
[Administrator]
[Trusty Member]

Most Online Today: 93. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles