-
LakshithaLikes 0Problem Descriptionsection .datausrMsg db 'Print a number in ax', 10usrMsgLen equ $ - usrMsgsection .bssnumdigit resb 1section .textglobal _start_start:mov edx, usrMsgLenmov ecx, usrMsgmov ebx, 1mov eax, 4int 80hmov cx, 0mov ax, 43878lable1:mov si, 10mov dx, 0div sipush dxinc cxcmp ax,0jz prntLoopjmp lable1prntLoop:cmp cx, 0jz exitpop dxadd dx,48mov [numdigit], dx;print charactermov edx, 1mov ecx, numdigitmov ebx, 1mov eax, 4int 80hdec cxjmp prntLoopexit:mov eax, 1mov ebx, 0int 80h
-
Sonar Systems adminLikes 0
Any errors?
This reply has been verified.
-
LakshithaLikes 0
Can’t terminate the code.
-
Sonar Systems adminLikes 0
What happens?
Login to reply