Basically, could this:
> li $a0, 8 # allocate 8 bytes
> li $v0, 9 # set the appropriate syscall code
be replicated with this:
> addi $a0 $0 8
> addi $v0 $0 9
or this?
> addi $t0 $0 8
> addi $t1 $0 9
> add $a0 $0 $t0
> add $v0 $0 $t1
li $t0 0xDEAD --> addi $t0 $0 0xDEAD
Or it would do the following for a larger immediate:
li $t0 0xDEADBEEF -->
lui $t0 0xDEAD
ori $t0 $t0 0xBEEF
Matt
On 2008-03-01 14:13:44 -0800, cs61...@imail.EECS.Berkeley.EDU (Daniel
Christopher Ritchie) said:
> Yes, I believe all of these are equivalent.
>
> In article <fqck8o$jom$1...@geode.berkeley.edu>, Norman Lee <nl...@berkeley.edu>