Cleaned up example assembly files some more.
This commit is contained in:
@@ -68,7 +68,7 @@ loop4: ld %r1, %r0, array;
|
|||||||
jali %r5, printdec;
|
jali %r5, printdec;
|
||||||
trap; /* All traps currently cause a halt. */
|
trap; /* All traps currently cause a halt. */
|
||||||
|
|
||||||
.perm rw /* TODO: How should I write section permissions? */
|
.perm rw
|
||||||
|
|
||||||
.global
|
.global
|
||||||
array: .space 0x1000 /* SIZE words of space. */
|
array: .space 0x1000 /* SIZE words of space. */
|
||||||
|
|||||||
@@ -13,11 +13,10 @@
|
|||||||
.global
|
.global
|
||||||
entry: ldi %r7, hello
|
entry: ldi %r7, hello
|
||||||
jali %r5, puts
|
jali %r5, puts
|
||||||
ldi %r0, #2; /* i = 2 */
|
|
||||||
|
|
||||||
trap; /* All traps currently cause a halt. */
|
trap; /* All traps currently cause a halt. */
|
||||||
|
|
||||||
.perm rw /* TODO: How should I write section permissions? */
|
.perm rw
|
||||||
|
|
||||||
hello:
|
hello:
|
||||||
.byte 0x22
|
.byte 0x22
|
||||||
|
|||||||
Reference in New Issue
Block a user