Menu ▾ ▴

#9 address-CONSTANT addressing broken

open
nobody
None
5
2008-11-12
2008-11-12
No

Hey,

The program,

.data
CONSTANT=1
thing1: .byte 10
thing2: .byte 20
thing3: .byte 30
.text
__start:
main:
lb $a0, thing2-CONSTANT
li $v0, 1
syscall
done

should output 10, but, in mipsscope outputs 30. This also effects relative addressing (i.e. "address-CONSTANT($s0)")

Thanks,
Jon

Discussion


Log in to post a comment.