notaz.gp2x.de
/
ia32rtools.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
translate: bswap, allsh* and some tweaks
[ia32rtools.git]
/
tests
/
ops.asm
1
; test random ops
2
3
_text segment para public 'CODE' use32
4
5
sub_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
14
loop:
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
37
call __allshl
38
call __allshr
39
bswap eax
40
41
push 1
42
pop eax
43
pop edi
44
pop esi
45
pop ebx
46
pop ebp
47
retn
48
sub_test endp
49
50
_text ends
51
52
; vim:expandtab