cordel1982
Technical User
Hi , I need to write a program that will have to following
register values in the end :
REGISTER VALUE
R3 0x0000_0000
R4 0x0000_B000
R5 0xA000_1000
and the code I wrote is :
void main()
{
asm {
xor r3,r3,r3
addi r3,r3,0x0000
xor r4,r4,r4
addi r4,r4,0x0000B000
xor r5,r5,r5
addi r5,r5,0xA0001000
} // end of ex
I'd appreciate corrections and everything you can think of
thanks
register values in the end :
REGISTER VALUE
R3 0x0000_0000
R4 0x0000_B000
R5 0xA000_1000
and the code I wrote is :
void main()
{
asm {
xor r3,r3,r3
addi r3,r3,0x0000
xor r4,r4,r4
addi r4,r4,0x0000B000
xor r5,r5,r5
addi r5,r5,0xA0001000
} // end of ex
I'd appreciate corrections and everything you can think of
thanks