Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

readme

  • Loading branch information...
commit a84b38ec249d4f0d75b965dfecf4f2d64c4540d1 1 parent 71f669b
Pacha Camac authored
Showing with 7 additions and 2 deletions.
  1. +5 −0 README.md
  2. +2 −2 rasm.rb
View
5 README.md
@@ -0,0 +1,5 @@
+Simple Assembler-like Language and Interpreter
+==============================================
+
+Can do jumps, conditions, calculations and other stuff a tiny language should be able to do.
+
View
4 rasm.rb
@@ -40,7 +40,7 @@ def set(s,v); @vars[s] = get(v); end
def numeric?(n); true if Float(n) rescue false; end
end
-puts 'Example 1: pow'
+puts 'Example 1: pow(3,5)'
MRISC.new.run('
*=== Main ===*
@@ -61,7 +61,7 @@ def numeric?(n); true if Float(n) rescue false; end
jmp,@rj; *return from subroutine*
')
-puts 'Example 2: fac'
+puts 'Example 2: fac(7)'
MRISC.new.run('
*==========[ stack test ]===========*
Please sign in to comment.
Something went wrong with that request. Please try again.