Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Detail andi

.text
.equ SWITCHES, 0x0850
.global main
main:
movia r10,SWITCHES
ldwio r9,0(r10)
andi r9,r9,0xff# only receive 1 value: SWITCHES
ldwio r8,0(r10)
andi r8,r8,0x02# receive two value: 2 or SWITCHES value
br main
.end

I don't know why r9 receive only 1 value!

I formulation by JNIOSEmu

Thanks you
No RepliesBe the first to reply