Created
November 12, 2018 15:35
-
-
Save tuankiet65/245f96a60f8d83ac290c9c57e70b48e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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