This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
laboratoare:laborator-07 [2015/11/25 11:37] catalin.vasile3004 |
laboratoare:laborator-07 [2015/11/25 12:03] catalin.vasile3004 [Adunare. Optimizare.] |
||
---|---|---|---|
Line 109: | Line 109: | ||
; loop code: | ; loop code: | ||
for: | for: | ||
- | mov eax, byte [A + ecx*4] ; get a digit from A | + | mov eax, dword [A + ecx*4] ; get a digit from A |
- | adc eax, byte [B + ecx*4] ; AL = A + B + Carry | + | adc eax, dword [B + ecx*4] ; AL = A + B + Carry |
mov [result + ecx*4], eax ; store result | mov [result + ecx*4], eax ; store result | ||
inc ecx | inc ecx |