Skip to content

Commit 2be13b7

Browse files
Added example .mem programs
1 parent d4f0b6e commit 2be13b7

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

add_numbers_to_user_input.mem

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
0x02
2+
0x01
3+
0x00
4+
0x01
5+
0x00
6+
0x02
7+
0x01
8+
0x01
9+
0x02
10+
0x00
11+
0x08
12+
0x00
13+
0x00
14+
0x00
15+
0x01
16+
0x16
17+
0x00
18+
0x01
19+
0x08
20+
0x00
21+
0x00
22+
0x00
23+
0x01
24+
0x17
25+
0x00
26+
0x00
27+
0xFF

add_two_numbers.mem

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
0x02 0x01 0x00 0x05 0x00
2+
0x02 0x01 0x01 0x03 0x00
3+
0x08 0x00 0x00 0x00 0x01
4+
0x17 0x00 0x00 0xFF

is_greater_than.mem

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
0x16 0x00 0x00 0x16
2+
0x00 0x01 0x09 0x00
3+
0x00 0x00 0x01 0x0D
4+
0x01 0x00 0x00 0x00
5+
0x80 0x12 0x01 0x00
6+
0x00 0x0f 0x00 0x17
7+
0x00 0x00 0xFF

0 commit comments

Comments
 (0)