-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
447eadd
commit 00f7fe0
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ1.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
19 changes: 19 additions & 0 deletions
19
4. Fourth_Semester/Computer-Organisation-Architecture(COA)/LAB4/Codes/OBJ2.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Binary file added
BIN
+187 KB
...emester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 KB
...emester/Computer-Organisation-Architecture(COA)/LAB4/OutputScreenshots/OBJ2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.