-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/luismomm2110/nand2tetris.pa…
…rt2--java into main
- Loading branch information
Showing
17 changed files
with
482 additions
and
5 deletions.
There are no files selected for viewing
Binary file added
BIN
+97.8 KB
.../Arquitetura de Software/Atividade Revisão 12_03 ex 1 e 3 - Luis Antonio Momm Duarte.docx
Binary file not shown.
1 change: 1 addition & 0 deletions
1
projects/08/FunctionCalls/SimpleFunction/Graduação/Arquitetura de Software/aula03_01.drawio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<mxfile host="app.diagrams.net" modified="2021-03-20T00:25:20.397Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36" etag="bzLaSjwNYUmcHok3HuWj" version="14.4.8" type="device"><diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1">7VhRT9swEP41fWRqkqa0jzTtGFuZYLDBniqTuImH48schzb8+p0Tp2maMlpGhTQhVSj3+XL13ffd2bTjePHyVJIkOoeA8o7dDZYdZ9yx7UF/gH81kJdAz+2WQChZUEJWDVyxR2rAyi1jAU0bjgqAK5Y0QR+EoL5qYERKWDTd5sCb35qQkLaAK5/wNnrDAhWZtOzjGv9EWRhV32z1h+VKTCpnk0kakQAWa5Az6TieBFDlU7z0KNe1q+pyc5bf8Ol9//TzZfqbfB99uf7646gM9nGfV1YpSCrUi0Nnt6F3NhOWNekPkpNLvzv0L496ZegHwjNTrwsJc5qmIE3SKq8qmS5YzIlAazQHoa7MioU24SwU+OzjBqlE4IFKxZCEE7OgIEHUjxgPpiSHTKeRKuLfV9YoAskeMSzhJiYuS2X0ZPcbHlf6TYS7iEqaos9FVRtrAzony4bjlKTKAD5wTpKU3a3SiIkMmRiBUhAbJ1MfTIcuNwT1DBvWSiLYWhRiqmSO75kods+oKq/axdiLWqRW32DRukAdwxkxjRGuYtfk44Phfw8tuC0tCIyMSMc5KZQgmQg7SIXtWLo0IouphJkq5kXpw7AitQNGAjlD2siMZJyULnMOZN2pJTMstCrol3BPPcAQiAsodcc434Aq6XE6V08KL02Ij5ufFj7jXo18M4XVEOC7uDvd4RELAiq0aEARRUqF6N0mgCkWhXdH+EF+vO4Ht+Pixj20rdrGj3aXygOBuRBWiIWi/BZUS3A3ZT3dtG1lGSXp0u4ipOND6ajf0lGLY84K7kqOq7FsvYjgGKnitGb0WhM+PrJarDtt1p0tDHNyR/kFpEwx0PFl6bvB/FuRu/OYGByI3EGLSxrgeWtMrEgEIQjCJzWKJc5EQANT4NpnCgVXmqpfVKncDHuSKdDjXsXVUUCXTN2uPf/UobDNSmtcTfjCyBuDW2/uBfXHBCGTPn1+WuIhFdK/xXO38ykpJ4o9NDf36mwdt1qRvs/bV2/JwW4tWQ3mV2d52GLZy2QKu17guv98M9sik//qsua6O1zWetvO2EONYcvacsiO9PWKUf0Pkr5pqTx57/b9u3249+1qG/MHa3bLfmf+TZh37YMxj2b9M0KxtvZbjDP5Aw==</diagram></mxfile> |
Binary file added
BIN
+229 KB
projects/08/FunctionCalls/SimpleFunction/Graduação/CERTIFICADO DE QUITACAO.pdf
Binary file not shown.
Binary file added
BIN
+56.9 KB
projects/08/FunctionCalls/SimpleFunction/Graduação/CV Luis Antonio Momm Duarte.pdf
Binary file not shown.
Binary file added
BIN
+139 KB
...s/08/FunctionCalls/SimpleFunction/Graduação/Curriculum Vitae Luis Antonio Momm Duarte.pdf
Binary file not shown.
136 changes: 136 additions & 0 deletions
136
projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
// function SimpleFunction.test 2 | ||
@2 | ||
D=A | ||
@SP | ||
M=M+D | ||
// push local 0 | ||
@LCL | ||
D=M | ||
@0 | ||
A=A+D | ||
D=M | ||
@SP | ||
A=M | ||
M=D | ||
@SP | ||
M=M+1 | ||
// push local 1 | ||
@LCL | ||
D=M | ||
@1 | ||
A=A+D | ||
D=M | ||
@SP | ||
A=M | ||
M=D | ||
@SP | ||
M=M+1 | ||
// add | ||
@SP | ||
AM=M-1 | ||
M=D | ||
@SP | ||
AM=M-1 | ||
M=M+D | ||
@SP | ||
M=M+1 | ||
// not | ||
@SP | ||
AM=M-1 | ||
M=!M | ||
@SP | ||
M=M+1 | ||
// push argument 0 | ||
@ARG | ||
D=M | ||
@0 | ||
A=A+D | ||
D=M | ||
@SP | ||
A=M | ||
M=D | ||
@SP | ||
M=M+1 | ||
// add | ||
@SP | ||
AM=M-1 | ||
M=D | ||
@SP | ||
AM=M-1 | ||
M=M+D | ||
@SP | ||
M=M+1 | ||
// push argument 1 | ||
@ARG | ||
D=M | ||
@1 | ||
A=A+D | ||
D=M | ||
@SP | ||
A=M | ||
M=D | ||
@SP | ||
M=M+1 | ||
// sub | ||
@SP | ||
AM=M-1 | ||
D=M | ||
@SP | ||
AM=M-1 | ||
M=M-D | ||
@SP | ||
M=M+1 | ||
// (return) | ||
@LCL | ||
D=M | ||
@7 | ||
D=D-A | ||
@tempReturn | ||
M=D | ||
@SP | ||
AM=M-1 | ||
D=M | ||
@tempReturn | ||
A=M | ||
M=D | ||
@LCL | ||
D=M | ||
@6 | ||
D=D-A | ||
@SP | ||
M=D | ||
@LCL | ||
D=M | ||
@1 | ||
D=D-A | ||
A=D | ||
D=M | ||
@THAT | ||
M=D | ||
@LCL | ||
D=M | ||
@2 | ||
D=D-A | ||
A=D | ||
D=M | ||
@THIS | ||
M=D | ||
@LCL | ||
D=M | ||
@3 | ||
D=D-A | ||
A=D | ||
D=M | ||
@ARG | ||
M=D | ||
@LCL | ||
D=M | ||
@4 | ||
D=D-A | ||
A=D | ||
D=M | ||
@LCL | ||
M=D | ||
(END) | ||
@END | ||
0;JMP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
| RAM[0] | RAM[1] | RAM[2] | RAM[3] | RAM[4] |RAM[310]| | ||
| 311 | 305 | 300 | 3010 | 4010 | 1196 | |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.