Question: I ' m writing code to add two 6 4 bit integers together using 3 2 bit registers in assembly. I ' m not sure
Im writing code to add two bit integers together using bit registers in assembly. Im not sure what is wrong with my code, but Im failing tests and having issues compiling. Here it is: global start
equ wordsize,
data
num: long
num: long
text
start:
movl numeax #eax first half num
movl numecx #ecx first half num
addl ecx, eax
movl eaxecx #ecx second half num
movl ebxedx #edx second half num
addl ecx, edx
jnc endcarry
carry:
addl $eax
endcarry:
nop
done:
nop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
