ASM, Limbaj de asamblare (low-level).
Last Updated: Nov 12 2018 12:33, Started by
g0dafk
, Nov 09 2018 20:07
·
0
#19
Posted 12 November 2018 - 11:28
Am si eu o intrebare despre un cod scris in acest limbaj, daca se ofera cineva sa ma ajute.
model small .stack 100 .data adr1 dw 1234h adr2 dw 5678h adr3 dw 9012h adr4 dw 3456h tabela dd adr1, adr2, adr3, adr4 .code start: mov ax, @data mov ds, ax mov cx, 1 mov bx, cx add bx, bx add bx, bx les di, tabela[bx] mov ax, es:[di] mov ah, 4ch int 21h end start De ce in ax se incarca adr3 si nu adr4? mov cx,1 -> cx=1; mov bx,cx -> bx=1; add bx,bx -> bx+bx=1+1=2; add bx,bx-> bx+bx=2+2=4; Nu...? ce-mi scapa? |
Anunturi
Bun venit pe Forumul Softpedia!
▶ 0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users