translate: bswap, allsh* and some tweaks
[ia32rtools.git] / tests / ops.asm
CommitLineData
3947cf24 1; test random ops
2
3_text segment para public 'CODE' use32
4
5sub_test proc near
6 push ebp
7 push ebx
8 push esi
9 push edi
10 mov ebx, 10000h
11 mov esi, 20000h
12 mov edi, 30000h
13 mov ecx, 10
14loop:
15 lodsb
16 xlat
17 stosb
18 lodsw
19 neg ax
20 stosw
21 lodsd
22 stosd
23 movsb
24 cmpsw
25 scasb
26 loop loop
27
28 std
29 stosb
30 stosw
31 stosd
32 cld
33
34 cdq
35 bsf eax, ecx
36
622eb2ef 37 call __allshl
38 call __allshr
39 bswap eax
40
3947cf24 41 push 1
42 pop eax
43 pop edi
44 pop esi
45 pop ebx
46 pop ebp
47 retn
48sub_test endp
49
50_text ends
51
52; vim:expandtab