Home

Awesome

Overview


Introduction

The interpreter can interpret and run assembly-like language script. It supports 8 instructions:

1)  mov
2)  cmp
3)  je
4)  jmp
5)  print
6)  call
7)  ret
8)  halt

And 52 registers:

a-z A-Z

The interpreter contains an arithmetic calculator, so there is no need to bring in arithmetic instructions.

For example:

mov x,1                          means move 1 to x
mov x,x+y                        means move the sum of x+y to x
mov x,(x+y)*(x-4)
print "hello,world"              prints string hello,world
call func1                       call a new function func1
ret                              return from a function

To use:

The purpose of assembly-like language interpreter

NOTE:

This interpreter doesn't support floating-point arithmetics such as "mov x,3.14", or code comment. Be ware!