Sorry that this isnt that good, i originally had a much more advanced version but then i made some mistakes that made the code really hard to work with, now this is just a simple text editor with cpu instructions, no more proper compiling, also since ive kinda given up there isnt a renderer making it kinda useless, sorry also you still need to press compile as it splits the code into a readable format for the cpu
cpu instructions: add [register] and [register] output [register] mult [register] and [register] output [register] div [register] and [register] output [register] set [register] [number] store [register] [memory location] jump [place in code]// jump jumps to the line of the code after the codes been split rather than the long line you write, sorry load [memory adress] into [register] cmp [its a compare instruction, i cant be bothered explaining how to use it here] theres also a bunch of instructions like jie (jump if equal) witch jump based on the cmps output