~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to tests/test-i386-code16.S

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2008-08-25 04:38:35 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080825043835-8e3tftavy8bujdch
Tags: 0.9.1-6
[ Aurelien Jarno ]
* debian/control: 
  - Update list of supported targets (Closes: bug#488339).
* debian/qemu-make-debian-root:
  - Use mktemp instead of $$ to create temporary directories (Closes: 
    bug#496394).
* debian/links:
  - Add missing links to manpages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
code16_start:
8
8
 
9
9
        .globl code16_func1
10
 
        
 
10
 
11
11
        /* basic test */
12
12
code16_func1 = . - code16_start
13
13
        mov $1, %eax
24
24
        pop %ax
25
25
        data32 lret
26
26
 
27
 
/* test various jmp opcodes */        
 
27
/* test various jmp opcodes */
28
28
        .globl code16_func3
29
29
code16_func3 = . - code16_start
30
30
        jmp 1f
36
36
        jz 2f
37
37
        add $2, %ax
38
38
2:
39
 
        
 
39
 
40
40
        call myfunc
41
 
        
 
41
 
42
42
        lcall $CS_SEG, $(myfunc2 - code16_start)
43
43
 
44
44
        ljmp $CS_SEG, $(myjmp1 - code16_start)
50
50
myjmp2_next:
51
51
 
52
52
        data32 lret
53
 
        
 
53
 
54
54
myfunc2_addr:
55
55
        .short myfunc2 - code16_start
56
56
        .short CS_SEG
77
77
 
78
78
 
79
79
code16_end:
80
 
 
81
 
 
82
 
/* other 32 bits tests */
83
 
        .code32
84
 
 
85
 
        .globl func_lret32
86
 
func_lret32:
87
 
        movl $0x87654321, %eax
88
 
        lret
89
 
 
90
 
        .globl func_iret32
91
 
func_iret32:
92
 
        movl $0xabcd4321, %eax
93
 
        iret
94
 
 
95
 
                
96
 
 
97
 
        
 
 
b'\\ No newline at end of file'