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