Ajout des travaux effectuer

This commit is contained in:
2024-12-09 11:53:11 +01:00
parent 05fac8d3ae
commit c4e97e13da
558 changed files with 67900 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
I/
1)
2)
3)
4)lsr c'est logical, donc il remplace par 0
asr c'est arithmetic, donc il remplace par la derniere valeur
II/
1.
2.
3.
III/
8b001001 add x1, x0, x0, lsl #4
1 0001011 | 00 0 00000 000100 00000 00001
64 add lsl x0 4 x0 x1

BIN
23SCR/SCR018-ARM/a.out Executable file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,14 @@
.equ SYS_EXIT, 93
.data
int: .quad 0x15
.text
.globl _start
_start :
mov x0, #15
add x1, x0, x0, lsl #4
mov x2, #1
sub x1, xzr, x2, lsl #3
mov w8, #SYS_EXIT
svc #0
.end

Binary file not shown.

View File

@@ -0,0 +1,19 @@
.equ SYS_EXIT, 93
.data
int: .quad 0x8000000000000000
.text
.globl _start
_start :
mov x0, #1
lsl x1, x0, #3
lsr x2, x0, #1
adr x5, int
ldr x3, [x5]
lsr x4, x3, #3
asr x5, x3, #3
mov x0, #0
mov w8, #SYS_EXIT
svc #0
.end