I am trying to write a program to convert an integer to a character.
Below is my code. Can someone tell me what I am doing wrong?
It is for the MIPS chip.
# A test to print charactors from numbers. # Does not work yet. Can't get it to print the ASCII equivilant char to the number. .data prompt: .asciiz "\nType an integer: " bye: .asciiz "\nThe end :)\n\n" .text main: la $a0, prompt li $v0, 4 syscall li $v0, 5 syscall move $a0, $v0 li $v0, 1 syscall j end end: li $v0, 4 la $a0, bye syscall li $v0, 10 syscall