A little help for a newbie in Assembler

Hi , I need to write a program that will have to following
register values in the end :

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 :)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!