i can't understand this code (assembly) -
what code do? don't understand does.
mov ah,00h mov al,bl mov lp,cl mov cl,10 div cl mov cl,lp
- store value 0 in register ah.
- store value in register bl in register al.
- store contents of register cl in register lp
- store value 10 in register cl
- divide contents of cl contents of ax
- store value lp in cl.
in summary, code divides number "10" whatever stored in register bl. answer located in register al. remainder located in ah.
line 2 backs cl register (since gets overwritten). line 5 restores it.
Comments
Post a Comment