assembly - printing a message in mips -


i have following code in program

li $v1, 4              #system call code print string la $a0, lc             #load address of message $a0 syscall                #print string li $v1, 1              #system call code print integer move $a0, $v0          #move value printed $a0 syscall                #print result 

and

.rdata lc: .asciiz "the factorial of 10 : " 

but when try use in mips says:

unknown system call: 3628800

where 3628800 result want print!

what going wrong?can use jal printf instead , how should write it? in advance

the system call number goes $v0, not $v1.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -