Assembly Program, I need help please

  Kiến thức lập trình

So I made this solution in assembly, but I dont know whats wrong with it, and its not doing its purpose, please help.

LDR r0,= 0xAABB0011  
LDR r1 ,=0x00000000 ; Most  Signifcant Bits /   Mutiplicand 

LDR r2,=0xBBAA00CC ; Mutiplyer 

LDR r3,=0x00000000 ;  The Product
LDR r4,=0x00000000 ; /  Registor

LDR r5,=0x00000000 ; Counter

MOV r6,#0
MOV r7,#0

loop
;

MOV r6, r2
AND r6, #1
CMP r6, #1
ADDEQ r3,r3,r0
ADDEQ r3,r3,r1
ADC r4, r4, #0

LSLS r7,r0,#1
ADCS r1,r1,#0
MOV r0,r7

LSR r2, #1

ADD r5,r5,#1

B loop  

The Actual Problem

New contributor

Eathan Tillman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT