So i got bored to day, and decided to make a Brainc Virtual Machine in z80
(ti 83+, 84+ etc). I haven't yet made a way to input code on the calculator, but it
has all the instructions.
The input code supports all alpha characters (including theta) and 1-9 (i should impelent 0, oops), + - * / ^ ( )
. and ,. character 10 is new line in the print code.
Nice. This is a very common project among calc coders but they are rarely in ASM. Do you plan to let people use the main editor like in Axe/Basic and SourceCoder?
bf is a fun language to warp your brain, the one thing I didn't like about it was the cell size, I never wanted to implement routines to work on multibyte ints :P
Quote from: 岩倉 澪 on February 01, 2015, 12:05:44 AM
bf is a fun language to warp your brain
warp in another dimension? O.O
Quote from: DJ Omnimaga on January 31, 2015, 11:11:14 PM
Nice. This is a very common project among calc coders but they are rarely in ASM. Do you plan to let people use the main editor like in Axe/Basic and SourceCoder?
Hm not a bad idea actually. Maybe i can make it an app like axe and do some VAT magic.
By VAT logic what do you mean?
Well, selecting a program and running it via an app, kinda like selecting a program to compile wit Axe.
Oh OK. I thought you meant you would make the BF language support storing stuff in TI-OS BASIC variables or something.
Nice project, Keoni learned me BF some time back and it's a fun language :D
Sometimes a little overwhelming though, but i guess it's called brainc for a reason.
Yeah apparently it's even harder than Z80 ASM, but it's the goal. I remember juju made a brainc interpreter a few years ago in TI-BASIC and when I looked at BF syntax on another site out of curiosity, I was like OMG!.
That's nothing. There is a language called Quantum Brainc.
(http://esolangs.org/wiki/Quantum_brainc (http://esolangs.org/wiki/Quantum_brainc)). But i think it's especially hard since
the instructions are so obscure. If you make some macros it would ne a lot easier :P
Btw, esolangs is a great site, there are some really interesting languages on there
http://esolangs.org/wiki/Joke_language_list (http://esolangs.org/wiki/Joke_language_list)
Your link goes to a blank page.
The first or the second one? (they both work with me)
The first one; Im mean that the esolang page for your esoteric language is avoid of any information.
That's weird :( but i don't really know what to do about that ???
The difficulty of bf is mostly superficial imo.
The syntax is obviously very unreadable and the primitives are extremely basic so one has to learn many idioms and patterns to construct normal programming constructs, and only having bytes to work with makes it very challenging to do operations of much use at all unless you emulate larger word sizes by writing multibyte routines.
Once you learn the tricks and build up some useful routines, if you structure the code intelligently with whitespace and make good use of comments, programming in it becomes very doable.
Would it be possible to just use Find/replace in Notepad to change every instruction to something closer to English or at least Z80 ASM, then once you are done coding, change them back to BF instructions? Or is that out of the question?
Changing the names of the instructions doesn't really help too much, but it is very reasonable to use labels and variables and copy pasta routines to replace them manually (or automated) similiar to what an assembler does