~vcs-imports/qemu/git

« back to all changes in this revision

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

  • Committer: pbrook
  • Date: 2006-10-22 00:18:54 UTC
  • Revision ID: git-v1:e6e5906b6e0a81718066ca43aef57515026c6624
ColdFire target.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2196 c046a42c-6fe2-441c-8c8c-71466251a162

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)
45
45
myjmp1_next:
46
46
 
47
 
        cs lcall *myfunc2_addr - code16_start
 
47
        cs lcall myfunc2_addr - code16_start
48
48
 
49
 
        cs ljmp *myjmp2_addr - code16_start
 
49
        cs ljmp myjmp2_addr - 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