Professional Documents
Culture Documents
1 MP
1 MP
: 1
;Rollno. : B-79
;Write an ALP to accept ten 32-bit and 64 bit Hexadecimal numbers from user and store then in
userMsg db 'Please enter a number: ' ;Ask the user to enter a number
num resb 5
global _start
_start:
int 80h
mov eax, 4
mov ebx, 1
int 80h
mov eax, 4
mov ebx, 1
mov edx, 5
int 80h
; Exit code
mov eax, 1
mov ebx, 0
int 80h
----------------------------------------------------------------------------------------------------------
Output