Skip to content

Releases: Nafees10/navm

version 1.1.4

19 Feb 11:11
4e2c9c2
Compare
Choose a tag to compare

Changes:

  • Added NaBytecode.addInstruction(string instName)
  • Added 4 new instructions for isLesser and isLesserSame for integer and double

version 1.1.3

18 Feb 09:30
deca8e9
Compare
Choose a tag to compare

Changes

  1. Jump position can be placed at end of bytecode

version 1.1.2

07 Feb 17:20
a5d3cec
Compare
Choose a tag to compare

Changes:

*. Using NaBytecode outside NaVM was not possible due to _instructionTable having no public access. Fixed, NaVM.instructionTable returns a copy of instruction table.

version 1.1.1

07 Feb 12:22
5d2c0cb
Compare
Choose a tag to compare

Changes:

  • Added NaVM.clearStack to pop all elements from stack
  • NaVM.execute() no longer clears stack before and after execution, and does not return anything:
    NaVM class is intended to be inherited and extended by adding new instructions, it would be better for the returning data and passing arguments system to be implemented in inherited class.

version 1.1.0

29 Jan 18:17
35aa496
Compare
Choose a tag to compare

Changes:

  1. jumpBack instruction restores stack peek to where it was before jumpFrame
  2. demo configuration now has a printDebug instruction
  3. bug fix in NaVM.execute where it always started from instruction[0] rather than at index

version 1.0.1

26 Jan 14:26
821ded3
Compare
Choose a tag to compare

Changes

  • Bug fixes in NaBytecode.resolve(), now calling it multiple times will not mess with jump instructions
  • removed isSameAraryRef and terminate are gone
  • updated isSameArray instruction
  • Added spec for NaData

version 1.0.0

22 Jan 14:58
526ab0d
Compare
Choose a tag to compare

Changes:

  • Changed how arrays are stored, so NaData is 8 bytes (or 4 on 32bit builds) rather than 16
  • Most of array instructions are gone, or changed, use incRef and deref/writeToRef to read/write to arrays.
  • Made it easier to add new instructions
  • Dividing byte code into functions is gone, its all just 1 byte code.
  • Added concept of stack frames, along with jump instructions for it, so what was done with functions is still possible
  • More changes, see spec/*.md

version 0.9.0 beta1

17 Jan 20:22
Compare
Choose a tag to compare
version 0.9.0 beta1 Pre-release
Pre-release

Big changes, see spec/*.md for details

version 0.2.4

10 Apr 11:22
Compare
Choose a tag to compare

Changes:

  • Added a function type "onLoad" that can be used to initialize stuff in byte code
  • Added instructions to add support for global variables

version 0.2.3

09 Feb 09:52
Compare
Choose a tag to compare

Changes:

  • Bug fix: can now write negative numbers in instruction arguments, wasn't previously possible due to bug in utils package