Skip to content

Instantly share code, notes, and snippets.

@tuankiet65
Created November 12, 2018 15:35
Show Gist options
  • Save tuankiet65/245f96a60f8d83ac290c9c57e70b48e3 to your computer and use it in GitHub Desktop.
Save tuankiet65/245f96a60f8d83ac290c9c57e70b48e3 to your computer and use it in GitHub Desktop.
.486
.model flat, stdcall
option casemap :none
include \masm32\include\masm32rt.inc
.data
text BYTE "toi co the di tren thuy tinh ma khong bi gi", 0
.code
start:
mov eax, 0
mov ebx, OFFSET text
len_loop:
cmp BYTE PTR [ebx], 0
je len_finally
inc eax
inc ebx
jmp len_loop
len_finally:
print str$(eax), 13, 10
ret
end start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment