Skip to content

Commit 1fe19c6

Browse files
committed
Include output/ under commit
1 parent c53321a commit 1fe19c6

File tree

9 files changed

+494
-4
lines changed

9 files changed

+494
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
sudo apt-get update
2525
sudo apt-get install iverilog
2626
- name: make test
27-
run: make test
27+
run: make clean && make test
2828
- name: make
2929
run: make all
3030
- name: Upload artifacts

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.vscode/
22
__pycache__/
33
build/
4-
output/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The eventual goal(?) is to build a general-purpose processor integrated with sim
99

1010
* Ping Pong
1111
* Source: [ping_pong.asm](programs/ping_pong.asm)
12-
* Generate resolved assembly: `python3 -m planner asm -r programs/ping_pong.asm`
13-
* Generate binary: `python3 -m planner asm -b programs/ping_pong.asm`
12+
* Generate resolved assembly: `python3 -m planner asm -r programs/ping_pong.asm` [[example](output/programs/ping_pong_resolved.asm)]
13+
* Generate binary: `python3 -m planner asm -b programs/ping_pong.asm` [[example](output/programs/ping_pong.bin)]
1414
* Run on emulator: `python3 -m planner compile_and_execute ping_pong`
1515

1616
## Design

output/programs/3_led_switch.bin

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pygame 2.6.1 (SDL 2.28.4, Python 3.10.12)
2+
Hello from the pygame community. https://www.pygame.org/contribute.html
3+
00000000 00000000 00000000 00001100
4+
00100100 00000010 00000100 00000101
5+
00000100 00000100 00000110 00000100
6+
00110101 00001001 01000000 00000000
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pygame 2.6.1 (SDL 2.28.4, Python 3.10.12)
2+
Hello from the pygame community. https://www.pygame.org/contribute.html
3+
PROGRAM_ORG equ 64
4+
040: IN [4], 5
5+
044: OUT 6, [4]
6+
048: JMP 64, 0

output/programs/boot_sequence.bin

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pygame 2.6.1 (SDL 2.28.4, Python 3.10.12)
2+
Hello from the pygame community. https://www.pygame.org/contribute.html
3+
00000000 00000000 00000000 00111100
4+
00110100 00000010 00000000 00000000
5+
00000100 00000100 00010000 00000000
6+
00100100 00000010 00000000 00000000
7+
00110100 00000010 00010100 00000000
8+
00110100 00000010 00000100 00000001
9+
00110100 00000010 00001000 01000000
10+
00000100 00000100 00010000 00000100
11+
00100100 00000010 00001100 00100000
12+
01000100 00000110 00001000 00001100
13+
01110000 00000010 00001000 00000100
14+
01110000 00000010 00000100 00000100
15+
01110001 00000010 00000000 00000100
16+
01000001 00000000 00000000 00010100
17+
00110101 00001011 01000000 00000000
18+
00110101 00001001 10011000 00000000
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pygame 2.6.1 (SDL 2.28.4, Python 3.10.12)
2+
Hello from the pygame community. https://www.pygame.org/contribute.html
3+
PROGRAM_ORG equ 128
4+
080: MOVC [0], 0
5+
084: OUT 16, [0]
6+
088: IN [0], 0
7+
08c: MOVC [20], 0
8+
090: MOVC [4], 1
9+
094: MOVC [8], 64
10+
098: OUT 16, [4]
11+
09c: IN [12], 32
12+
0a0: STORE [[8]], [12]
13+
0a4: ADDC [8], 4
14+
0a8: ADDC [4], 4
15+
0ac: SUBC [0], 4
16+
0b0: CMP [0], [20]
17+
0b4: JZ 64, 0
18+
0b8: JMP 152, 0

output/programs/ping_pong.bin

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
pygame 2.6.1 (SDL 2.28.4, Python 3.10.12)
2+
Hello from the pygame community. https://www.pygame.org/contribute.html
3+
00000000 00000000 00000011 00110100
4+
00110100 00000010 00100000 11111111
5+
01110010 00000010 00100000 00001000
6+
01110111 00000010 00100000 11110000
7+
00110101 00001001 01110100 00000000
8+
00000010 00000000 00000000 00000000
9+
00000010 00000000 00000000 00000000
10+
00000111 00000000 00000000 00000000
11+
00000010 00000000 00000000 00000000
12+
11111111 11111111 00000000 00000000
13+
00000000 00000000 00000000 00000000
14+
00000110 00000000 00000000 00000000
15+
00000000 00000000 00000000 00000000
16+
00000001 00000000 00000000 00000000
17+
01110000 00000011 00101000 00010000
18+
01110001 00000010 00100000 00000100
19+
01000100 00000110 00100000 00101000
20+
00110101 00001001 01011100 00000001
21+
01110000 00000011 00101000 00010000
22+
01110001 00000010 00100000 00000100
23+
01000100 00000110 00100000 00101000
24+
00110101 00001001 11101100 00000000
25+
01110000 00000011 00101000 00010000
26+
01110001 00000010 00100000 00000100
27+
01000100 00000110 00100000 00101000
28+
00110101 00001001 00011100 00000010
29+
00110101 00001001 01110100 00000000
30+
01110000 00000011 00101000 00010000
31+
01110001 00000010 00100000 00000100
32+
01000100 00000110 00100000 00101000
33+
00110101 00001001 11001100 00000000
34+
01110000 00000011 00101000 00010000
35+
01110001 00000010 00100000 00000100
36+
01000100 00000110 00100000 00101000
37+
00110101 00001001 01011100 00000001
38+
00110101 00001001 10101000 00000000
39+
01110001 00000000 01101100 00000000
40+
00110101 00001101 11011100 00000000
41+
01111000 00000010 01110000 00000001
42+
00110100 00000010 01101100 00000101
43+
01110001 00000010 01101100 00000001
44+
10000101 00000010 00101000 00100000
45+
01110000 00000010 00100000 00000100
46+
11110101 00001000 00101000 00000000
47+
00100100 00000010 00000000 00000001
48+
00110100 00000010 00000100 00000001
49+
01000110 00000010 00000100 00000000
50+
00110101 00001011 00001000 00000001
51+
01110001 00000000 01010000 00000000
52+
00110101 00001011 00001000 00000001
53+
01110001 00000010 01010000 00000001
54+
00110100 00000010 00000100 00000010
55+
01000110 00000010 00000100 00000000
56+
00110101 00001011 00100000 00000001
57+
01110001 00000000 01010000 00000101
58+
00110101 00001011 00100000 00000001
59+
01110000 00000010 01010000 00000001
60+
00110100 00000010 00000100 00000100
61+
01000110 00000010 00000100 00000000
62+
00110101 00001011 00111000 00000001
63+
01110001 00000000 01010100 00000000
64+
00110101 00001011 00111000 00000001
65+
01110001 00000010 01010100 00000001
66+
00110100 00000010 00000100 00001000
67+
01000110 00000010 00000100 00000000
68+
00110101 00001011 01010000 00000001
69+
01110001 00000000 01010100 00000101
70+
00110101 00001011 01010000 00000001
71+
01110000 00000010 01010100 00000001
72+
10000101 00000010 00101000 00100000
73+
01110000 00000010 00100000 00000100
74+
11110101 00001000 00101000 00000000
75+
01110001 00000000 01110000 00000000
76+
00110101 00001011 10111100 00000001
77+
00110100 00000010 00000000 01111111
78+
01110010 00000010 00000000 00001000
79+
01111000 00000010 00000000 11111111
80+
00110100 00000010 00000100 00000111
81+
01000010 00000010 00000100 01010000
82+
00000100 00000100 00000110 00000000
83+
00000100 00000100 00000111 00000100
84+
01110000 00000011 00101000 00010000
85+
01110001 00000010 00100000 00000100
86+
01000100 00000110 00100000 00101000
87+
00110101 00001001 00000000 00000010
88+
00110100 00000010 00000000 11111111
89+
01110010 00000010 00000000 00001000
90+
01111000 00000010 00000000 11111110
91+
00110100 00000010 00000100 00000111
92+
01000010 00000010 00000100 01010100
93+
00000100 00000100 00000110 00000000
94+
00000100 00000100 00000111 00000100
95+
01110000 00000011 00101000 00010000
96+
01110001 00000010 00100000 00000100
97+
01000100 00000110 00100000 00101000
98+
00110101 00001001 00000000 00000010
99+
00000100 00000010 00000000 01011000
100+
00110100 00000010 00000100 10000000
101+
01110010 00000010 00000100 00001000
102+
01000011 00000010 00000100 00000000
103+
01001000 00000010 00000100 01100000
104+
00000100 00000010 00000000 01011100
105+
00110100 00000010 00001000 00000001
106+
01000010 00000010 00001000 00000000
107+
00000100 00000100 00000110 00000100
108+
00000100 00000100 00000111 00001000
109+
01110000 00000011 00101000 00010000
110+
01110001 00000010 00100000 00000100
111+
01000100 00000110 00100000 00101000
112+
00110101 00001001 00000000 00000010
113+
10000101 00000010 00101000 00100000
114+
01110000 00000010 00100000 00000100
115+
11110101 00001000 00101000 00000000
116+
00110100 00000010 00000000 11110000
117+
01110010 00000010 00000000 00000001
118+
01110001 00000010 00000000 00000001
119+
00110101 00001101 00001000 00000010
120+
10000101 00000010 00101000 00100000
121+
01110000 00000010 00100000 00000100
122+
11110101 00001000 00101000 00000000
123+
01110001 00000000 01100100 00000000
124+
00110101 00001101 00111000 00000010
125+
00110100 00000010 01100100 00000010
126+
01110000 00000011 00101000 00010000
127+
01110001 00000010 00100000 00000100
128+
01000100 00000110 00100000 00101000
129+
00110101 00001001 01001000 00000010
130+
01110001 00000010 01100100 00000001
131+
10000101 00000010 00101000 00100000
132+
01110000 00000010 00100000 00000100
133+
11110101 00001000 00101000 00000000
134+
01110001 00000000 01011000 00001110
135+
00110101 00001011 10101100 00000010
136+
01110001 00000000 01011000 00000001
137+
00110101 00001011 11010000 00000010
138+
01110001 00000000 01011100 00000111
139+
00110101 00001011 01100000 00000011
140+
01110001 00000000 01011100 00000000
141+
00110101 00001011 01100000 00000011
142+
00000100 00000010 00000000 01101000
143+
01110110 00000010 00000000 00000001
144+
00110101 00001011 01111100 00000010
145+
01110000 00000010 01011000 00000001
146+
00110101 00001001 10000000 00000010
147+
01110001 00000010 01011000 00000001
148+
00000100 00000010 00000000 01101000
149+
01110110 00000010 00000000 00000100
150+
00110101 00001011 10010000 00000010
151+
01110001 00000010 01011100 00000001
152+
00000100 00000010 00000000 01101000
153+
01110110 00000010 00000000 00001000
154+
00110101 00001011 10100000 00000010
155+
01110000 00000010 01011100 00000001
156+
10000101 00000010 00101000 00100000
157+
01110000 00000010 00100000 00000100
158+
11110101 00001000 00101000 00000000
159+
01110001 00000010 00100000 00000100
160+
01000100 00000110 00100000 01010100
161+
01110000 00000011 00101000 00010000
162+
01110001 00000010 00100000 00000100
163+
01000100 00000110 00100000 00101000
164+
00110101 00001001 11110100 00000010
165+
10000101 00000010 00011100 00100000
166+
01110000 00000010 00100000 00000100
167+
00110101 00001001 01011000 00000010
168+
01110001 00000010 00100000 00000100
169+
01000100 00000110 00100000 01010000
170+
01110000 00000011 00101000 00010000
171+
01110001 00000010 00100000 00000100
172+
01000100 00000110 00100000 00101000
173+
00110101 00001001 11110100 00000010
174+
10000101 00000010 00011100 00100000
175+
01110000 00000010 00100000 00000100
176+
00110101 00001001 01011000 00000010
177+
00000100 00000010 00100100 00100000
178+
01110000 00000010 00100100 00000100
179+
10000101 00000010 00000100 00100100
180+
01111000 00000010 01101000 00000011
181+
00110100 00000010 00000000 00001100
182+
01111000 00000010 00000000 11111111
183+
01000110 00000010 01101000 00000000
184+
01000001 00000000 01011100 00000100
185+
00110101 00001011 00110100 00000011
186+
01110000 00000010 00000100 00000001
187+
01000001 00000000 01011100 00000100
188+
00110101 00001011 01010100 00000011
189+
01110000 00000010 00000100 00000001
190+
01000001 00000000 01011100 00000100
191+
00110101 00001011 01000100 00000011
192+
00110101 00001001 10101000 00000000
193+
01110111 00000010 01101000 00000100
194+
10000101 00000010 00101000 00100000
195+
01110000 00000010 00100000 00000100
196+
11110101 00001000 00101000 00000000
197+
01110111 00000010 01101000 00001000
198+
10000101 00000010 00101000 00100000
199+
01110000 00000010 00100000 00000100
200+
11110101 00001000 00101000 00000000
201+
10000101 00000010 00101000 00100000
202+
01110000 00000010 00100000 00000100
203+
11110101 00001000 00101000 00000000
204+
00000100 00000010 00000000 01101000
205+
01110110 00000010 00000000 00001100
206+
00110101 00001011 01101000 00000010
207+
01111000 00000010 01101000 00001100
208+
00110101 00001001 01101000 00000010

0 commit comments

Comments
 (0)