Skip to content

my version of samul-1's drsic javascript assembly.

Notifications You must be signed in to change notification settings

obscuredc/cozyasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cozyasm

a javascript assembly-like interpreter simulator. Be warned, the current versions have no/minimal error catching and safety nets. status: NOT PRODUCTION READY

planned

  • construct IRTree generator
  • normal command calls
  • create builtins
  • label jumping
  • main entry point
  • subroutine calls
  • subroutine parameters as registers
  • cozyasm cli
  • make documentation

list of supported compiled languages

to compile to a language, use the cozyasm cli with the --compile=NAME flag. (not implemented). This list is subject to change, especially if the assembly languages chosen are not able to be compiled (they are missing key features). Also note all commands are not portable to all languages, especially nlin, llin, and puts. (although puts could be implemented in a form of std library for the language).

cozyasm cli

list of implemented flags:

  • --dump: provides a output log of the classes and functions used to interpret and compile code.
  • --compile=NAME: instructs the compiler to compile to a specific assembly language.

known errors

  • import infinite loops
  • not enough error logging

instruction set

this set can, and will, change many times!

  • mov
  • add
  • sub
  • mul
  • div
  • ifeq
  • iflt
  • iflq
  • nlin
  • llin
  • mload
  • import
  • tbufpsh
  • tbufwr
  • tbufcls
  • puts
  • endl
  • end
  • load
  • store
  • rad
  • ralloc
  • malloc

About

my version of samul-1's drsic javascript assembly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published