Created
December 1, 2016 15:52
-
-
Save TuurDutoit/25ecf3fe9531e1c054c95b9e008a0039 to your computer and use it in GitHub Desktop.
This file contains 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
%include "gt.asm" | |
covar | |
inarea: resb 70 | |
counter: dd 0 | |
a: resd 1 | |
b: resd 1 | |
i: resd 1 | |
inleiding | |
openin | |
lees | |
mov ecx, 69 | |
check: | |
mov al, 'a' | |
mov bl, [inarea + ecx] | |
cmp al, bl | |
je is_a | |
after_a: | |
sub ecx, 1 | |
cmp ecx, 0 | |
jl eof | |
jmp check | |
is_a: | |
mov eax, [counter] | |
add eax, 1 | |
mov [counter], eax | |
jmp after_a | |
eof: | |
uit [counter] | |
slot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment