Skip to content

Instantly share code, notes, and snippets.

@TuurDutoit
Created December 1, 2016 15:52
Show Gist options
  • Save TuurDutoit/25ecf3fe9531e1c054c95b9e008a0039 to your computer and use it in GitHub Desktop.
Save TuurDutoit/25ecf3fe9531e1c054c95b9e008a0039 to your computer and use it in GitHub Desktop.
%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