Cleaned up example assembly files some more.

This commit is contained in:
cdkerse 2013-05-30 14:18:57 -06:00
parent 65b6687630
commit dc08a1f62f
2 changed files with 2 additions and 3 deletions

View file

@ -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. */

View file

@ -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