Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as text by Siewca ( 17 years ago )
# UNTITLED PROGRAM
        .data
           msg: .asciiz "Value is:  
"
        .text
        .globl main

main:           # Start of code section
        ori     $t0, $zero, 0x03
        ori     $t1, $zero, 0x04
        addu    $t2, $t0, $t1

        addi    $t2, $t2, 0x30
        la      $t3, msg + 10
        sb      $t2, 0($t3)
        la      $a0, msg
        ori     $v0, $zero, 0x04
        syscall
	li	$v0,	10
	syscall
 
# END OF PROGRAM

 

Revise this Paste

Your Name: Code Language: