Assemble all test programs

This commit is contained in:
Nemo 2020-05-30 01:22:22 +05:30
parent 0d78eaae73
commit f15f5e6906
8 changed files with 55073 additions and 0 deletions

19
assembler/test Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
pushd ../projects/06/add
../../../tools/Assembler.sh Add.asm
popd
pushd ../projects/06/max
../../../tools/Assembler.sh Max.asm
../../../tools/Assembler.sh MaxL.asm
popd
pushd ../projects/06/rect
../../../tools/Assembler.sh Rect.asm
../../../tools/Assembler.sh RectL.asm
popd
pushd ../projects/06/pong
../../../tools/Assembler.sh Pong.asm
../../../tools/Assembler.sh PongL.asm
popd

6
projects/06/add/Add.hack Normal file
View File

@ -0,0 +1,6 @@
0000000000000010
1110110000010000
0000000000000011
1110000010010000
0000000000000000
1110001100001000

16
projects/06/max/Max.hack Normal file
View File

@ -0,0 +1,16 @@
0000000000000000
1111110000010000
0000000000000001
1111010011010000
0000000000001010
1110001100000001
0000000000000001
1111110000010000
0000000000001100
1110101010000111
0000000000000000
1111110000010000
0000000000000010
1110001100001000
0000000000001110
1110101010000111

16
projects/06/max/MaxL.hack Normal file
View File

@ -0,0 +1,16 @@
0000000000000000
1111110000010000
0000000000000001
1111010011010000
0000000000001010
1110001100000001
0000000000000001
1111110000010000
0000000000001100
1110101010000111
0000000000000000
1111110000010000
0000000000000010
1110001100001000
0000000000001110
1110101010000111

27483
projects/06/pong/Pong.hack Normal file

File diff suppressed because it is too large Load Diff

27483
projects/06/pong/PongL.hack Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
0000000000000000
1111110000010000
0000000000010111
1110001100000110
0000000000010000
1110001100001000
0100000000000000
1110110000010000
0000000000010001
1110001100001000
0000000000010001
1111110000100000
1110111010001000
0000000000010001
1111110000010000
0000000000100000
1110000010010000
0000000000010001
1110001100001000
0000000000010000
1111110010011000
0000000000001010
1110001100000001
0000000000010111
1110101010000111

View File

@ -0,0 +1,25 @@
0000000000000000
1111110000010000
0000000000010111
1110001100000110
0000000000010000
1110001100001000
0100000000000000
1110110000010000
0000000000010001
1110001100001000
0000000000010001
1111110000100000
1110111010001000
0000000000010001
1111110000010000
0000000000100000
1110000010010000
0000000000010001
1110001100001000
0000000000010000
1111110010011000
0000000000001010
1110001100000001
0000000000010111
1110101010000111