update example

This commit is contained in:
2024-12-05 16:20:17 +01:00
parent e6b13abc15
commit a4abd128f5
2 changed files with 20 additions and 20 deletions

View File

@@ -16,14 +16,14 @@ There are 3 format types :
```assembly
operations:
add R1 R2 R3
sub R1 R2 #69
and R0 R6 R3
add R1 R2 #1
sub R1 R2 R3
and R1 R2 #33
xor R1 R2 R3
or R1 R7 R3
sl R5 R2 #10
or R1 R2 R3
sl R1 R2 R3
sr R1 R2 R3
mult R1 R1 R3
mul R1 R2 R3
io:
str R1 R2 R3
ld R1 R2 R3
@@ -41,9 +41,9 @@ controle:
Produces
```
00000000 10100110 00000000 00000000
00010100 10100000 00000000 01000101
00100000 10100110 00000000 00000000
00000100 10100000 00000000 00000001
00010000 10100110 00000000 00000000
00100100 10100000 00000000 00100001
01000000 10100110 00000000 00000000
00110000 10100110 00000000 00000000
01010000 10100110 00000000 00000000
@@ -51,12 +51,12 @@ Produces
01110000 10100110 00000000 00000000
01000001 01001100 00000000 00000000
01010001 01001100 00000000 00000000
11000000 00000000 00000000 00000101
11010001 01010000 00000000 00000011
11100001 01010000 00000000 00000010
11110001 01010000 00000000 00001101
11000001 01000000 00000000 00000001
11010100 00000000 00000000 00000111
11000000 00000000 00000000 00010000
11010001 01000000 00000000 00001001
11100001 01000000 00000000 00001011
11110001 01000000 00000000 00000001
11000001 01000000 00000000 00010000
11010000 00000000 00000000 00001001
11100000 00000000 00000000 00000000
```

View File

@@ -1,12 +1,12 @@
operations:
add R1 R2 R3
sub R1 R2 #69
and R1 R2 R3
add R1 R2 #1
sub R1 R2 R3
and R1 R2 #33
xor R1 R2 R3
or R1 R2 R3
sl R1 R2 R3
sr R1 R2 R3
mult R1 R2 R3
mul R1 R2 R3
io:
str R1 R2 R3
ld R1 R2 R3
@@ -18,4 +18,4 @@ sauts:
jinf R1 R2 controle
controle:
call io
ret
ret