Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "gt.asm"
- covar
- getal resd 5
- verberg resd 1
- vier dd 4
- inleiding
- sub esi,esi
- sub edi,edi
- sub eax,eax
- mov ecx, 5
- lus:
- inv [getal+esi]
- add esi, [vier]
- loop lus
- mov ecx, [vier]
- bubble:
- mov [verberg], ecx
- sub esi,esi
- mov ecx, 4
- vergelijk:
- mov eax, [getal+esi]
- cmp eax, [getal+esi+4]
- jl verder
- mov edx, [getal+esi+4]
- mov [getal+esi], edx
- mov [getal+esi+4], eax
- verder:
- add esi, [vier]
- loop vergelijk
- mov ecx, [verberg]
- loop bubble
- sub esi,esi
- mov ecx, 5
- out:
- uit [getal+esi]
- add esi, [vier]
- loop out
- slot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement