File tree Expand file tree Collapse file tree 2 files changed +32
-7
lines changed Expand file tree Collapse file tree 2 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 2121 echo building project
2222 rm -f assembler
2323 make
24- ./assembler input_output_results/ps input_output_results/ps2 input_output_results/ps3 input_output_results/ps4 input_output_results/ps5 ps6 input_output_results/ps7
25- echo compare input_output_results/ ps.ob input_output_results/main_tester
26- cmp input_output_results/ ps.ob input_output_results/main_tester.ob
24+ ./assembler ps
25+ echo compare ps.ob input_output_results/main_tester
26+ cmp ps.ob input_output_results/main_tester.ob
2727 - uses : actions/upload-artifact@v3
2828 with :
2929 name : assembler.zip
4545 echo building project
4646 rm -f assembler
4747 make
48- ./assembler input_output_results/ps input_output_results/ps2 input_output_results/ps3 input_output_results/ps4 input_output_results/ps5 ps6 input_output_results/ps7
49- echo compare input_output_results/ ps.ob input_output_results/main_tester
50- cmp input_output_results/ ps.ob input_output_results/main_tester.ob
48+ ./assembler ps
49+ echo compare ps.ob input_output_results/main_tester
50+ cmp ps.ob input_output_results/main_tester.ob
5151
5252 build_and_test_macos-latest :
5353 runs-on : macos-latest
5959 echo building project
6060 rm -f assembler
6161 make
62- ./assembler input_output_results/ps input_output_results/ps2 input_output_results/ps3 input_output_results/ps4 input_output_results/ps5 ps6 input_output_results/ps7
62+ ./assembler ps
Original file line number Diff line number Diff line change 1+ ; file ps. as
2+ . entry LIST
3+ . extern W
4+ MAIN : add r3, LIST
5+ LOOP : prn #48
6+ macro m1
7+ inc r6
8+ mov r3, W
9+ endm
10+ lea STR , r6
11+ m1
12+ sub r1, r4
13+ bne END
14+ cmp val1, #- 6
15+ bne END [ r15]
16+ dec K
17+ . entry MAIN
18+ sub LOOP [ r10] ,r14
19+ END : stop
20+ STR : . string "abcd"
21+ LIST : . data 6 , - 9
22+ . data - 100
23+ . entry K
24+ K : . data 31
25+ . extern val1
You can’t perform that action at this time.
0 commit comments