diff --git a/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ1.s b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ1.s new file mode 100644 index 0000000..1607eb9 --- /dev/null +++ b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ1.s @@ -0,0 +1,11 @@ +.global _start +_start: + + mov r0,#0x03 + mov r1, #0x05 + add r2,r0,#0x08 + subs r3,r1,#0x04 + +s: + b s + .end \ No newline at end of file diff --git a/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ2.s b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ2.s new file mode 100644 index 0000000..67445cf --- /dev/null +++ b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ2.s @@ -0,0 +1,19 @@ +.global _start +_start: + + ldr r0,=list + ldr r1,[r0],#4 + ldr r2,[r0],#4 + + add r3,r1,r2 + subs r4,r1,r2 + + ldr r5,[r0] + mul r6,r5,r5 + + mov r7,#1 + swi 0 + +.data +list: + .word 2,3,4 \ No newline at end of file diff --git a/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ1.png b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ1.png new file mode 100644 index 0000000..4bc4a7d Binary files /dev/null and b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ1.png differ diff --git a/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ2.png b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ2.png new file mode 100644 index 0000000..1446e1b Binary files /dev/null and b/4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ2.png differ