mirror of
https://github.com/avinal/The-VM-to-HACK-Translator.git
synced 2026-01-10 23:28:33 +05:30
example files
This commit is contained in:
9
Test-Files/SimpleAdd.vm
Normal file
9
Test-Files/SimpleAdd.vm
Normal file
@@ -0,0 +1,9 @@
|
||||
// This file is part of www.nand2tetris.org
|
||||
// and the book "The Elements of Computing Systems"
|
||||
// by Nisan and Schocken, MIT Press.
|
||||
// File name: projects/07/StackArithmetic/SimpleAdd/SimpleAdd.vm
|
||||
|
||||
// Pushes and adds two constants.
|
||||
push constant 7
|
||||
push constant 8
|
||||
add
|
||||
Reference in New Issue
Block a user