Skip to content

Commit 78980c3

Browse files
committed
release 1.02
Signed-off-by: Roman-Dev <cryos10@gmail.com>
1 parent d2d41c0 commit 78980c3

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
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
@@ -45,9 +45,9 @@ jobs:
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
@@ -59,4 +59,4 @@ jobs:
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

ps.as

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)