VirtualBox

source: vbox/trunk/src/VBox/Disassembler/testcase/tstAsmSignExtend-1.asm@ 10809

Last change on this file since 10809 was 9099, checked in by vboxsync, 17 years ago

More instruction filtering and hacking.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 598 bytes
Line 
1%include "tstAsm.mac"
2 BITS TEST_BITS
3
4 movsx ax, al
5 movsx eax, al
6 movsx eax, ax
7
8 ;
9 ; ParseImmByteSX
10 ;
11
12 ; 83 /x
13 add eax, strict byte 8
14 add eax, strict byte -1
15 cmp ebx, strict byte -1
16
17 add ax, strict byte 8
18 add ax, strict byte -1
19 cmp bx, strict byte -1
20
21%if TEST_BITS == 64 ; check that these come out with qword values and not words or dwords.
22 add rax, strict byte 8
23 add rax, strict byte -1
24 cmp rbx, strict byte -1
25%endif
26
27 ; push %Ib
28 push strict byte -1
29 push strict byte -128
30 push strict byte 127
31
32 ;; @todo imul
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette