Skip to content

itzKiwiSky/Nexus-lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My sh*t programming language written in lua
Nexus (Clone assembly but bad XD)

This language inspired by brainfuck and assembly, is able to manipulate 256 memory cells, generating characters based
on 255 chars range.
I don't have plans to continue updating this project, when all commands is totally coded and functional I will not
commit more to this project, but made it open source <3
This is not a serious project, is just a simple test and challenge for me.


-=[ commands ]=-

captions :
    [.] - To do
    [X] - Done
    [-] - parcially Done
    [*] - redoning


[*] pop + <qnt>                         - increment a value from memory cell
[*] pop - <qnt>                         - decrement a value from memory cell
[X] jmp <qnt>                           - jump to memory cell
[X] inp <mcell>                         - wait for input and write data to that memory cell ()
[X] out <mcell>                         - print to screen a value
[X] outS <mcell>                        - print to screen a value
[X] osb <mcell>                         - print string matched and saved on string bank
[X] mth <val1;val2;val3...>             - join all values i a single string and save to string bank
[X] cmp <val1>:<val2> <instruction>     - compares two memory values, if equals execute one instruction
[X] psh <mcell>-><mcell>                - saves a value from other memory cell
[X] rst <mcell>                         - return a cell to default value (zero)
[X] frst                                - resets all cells to default value
[X] strm <mcell>                        - release a string from string bank
[X] srin                                - clear all string bank
[.] cad <mcell>                         - save a memory value to cache
[.] crm <id>                            - remove a value from cache based on it id
[.] stkcls                              - reset memory cache (clear)


---------------------------------------------------------------------------

Check tests folder to see examples of this language XD

Releases

No releases published

Packages

No packages published

Languages