X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fops.asm;fp=tests%2Fops.asm;h=472a024eb33d19c05a5d2eaba330cf46fe463905;hb=3947cf245e051c129e15fda46120c93154b804c4;hp=0000000000000000000000000000000000000000;hpb=851f9b7d78b364c14175a509af885d145a094ec0;p=ia32rtools.git diff --git a/tests/ops.asm b/tests/ops.asm new file mode 100644 index 0000000..472a024 --- /dev/null +++ b/tests/ops.asm @@ -0,0 +1,48 @@ +; test random ops + +_text segment para public 'CODE' use32 + +sub_test proc near + push ebp + push ebx + push esi + push edi + mov ebx, 10000h + mov esi, 20000h + mov edi, 30000h + mov ecx, 10 +loop: + lodsb + xlat + stosb + lodsw + neg ax + stosw + lodsd + stosd + movsb + cmpsw + scasb + loop loop + + std + stosb + stosw + stosd + cld + + cdq + bsf eax, ecx + + push 1 + pop eax + pop edi + pop esi + pop ebx + pop ebp + retn +sub_test endp + +_text ends + +; vim:expandtab