section .data
msg: db "Enter character string: "
len: equ $-msg
msg1: db "Result: "
len1: equ $-msg1
section .bss
var: resb 1
leng: resb 1
section .text
global _start
_start:
mov eax,4
mov ebx,1
mov ecx,msg
mov edx,len
int 80h
mov eax,3
mov ebx,0
mov ecx,var
mov edx,leng
int 80h
mov eax,4
mov ebx,1
mov ecx,msg1
mov edx,len1
int 80h
mov eax,4
mov ebx,1
mov ecx,var
mov edx,leng
int 80h
mov eax,1
mov ebx,1
int 80h
msg: db "Enter character string: "
len: equ $-msg
msg1: db "Result: "
len1: equ $-msg1
section .bss
var: resb 1
leng: resb 1
section .text
global _start
_start:
mov eax,4
mov ebx,1
mov ecx,msg
mov edx,len
int 80h
mov eax,3
mov ebx,0
mov ecx,var
mov edx,leng
int 80h
mov eax,4
mov ebx,1
mov ecx,msg1
mov edx,len1
int 80h
mov eax,4
mov ebx,1
mov ecx,var
mov edx,leng
int 80h
mov eax,1
mov ebx,1
int 80h