In: Computer Science
Assembly Language
Exercises -
1. Play with .byte, print characters
2. Use .space along with li $v0, 8 to test how .space reacts with certain string lengths when printed.
Describe what happens when experimenting for both and use comments.
Well in case you're cheerful printing it in decimal, you could simply make it certain by covering:
int positive = bytes[i] and 0xff;
In case you're printing out a hash however, it would be more customary to utilize hex. There are a lot of different inquiries on Stack Overflow tending to changing parallel information over to a hex string in Java.
Print out integer value contained in register $t2
li $v0,
1 # load
appropriate system call code into register $v0;
# code for
printing integer is 1
move $a0,
$t2 # move integer to be printed
into $a0: $a0 = $t2
syscall
# call
operating system to perform operation