Last change
on this file since 1569 was 601, checked in by bird, 22 years ago |
Headers.
|
-
Property cvs2svn:cvs-rev
set to
1.4
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
2.1 KB
|
Rev | Line | |
---|
[601] | 1 | /* $Id: 570asm.s 601 2003-08-15 23:50:34Z bird $ */
|
---|
| 2 | /** @file
|
---|
| 3 | *
|
---|
| 4 | * _System declaration and definition testcases.
|
---|
| 5 | *
|
---|
| 6 | * InnoTek Systemberatung GmbH confidential
|
---|
| 7 | *
|
---|
| 8 | * Copyright (c) 2003 InnoTek Systemberatung GmbH
|
---|
| 9 | * Author: knut st. osmundsen <bird-srcspam@anduin.net>
|
---|
| 10 | *
|
---|
| 11 | * All Rights Reserved
|
---|
| 12 | *
|
---|
| 13 | */
|
---|
[594] | 14 | .file "570asm.s"
|
---|
| 15 |
|
---|
| 16 | .text
|
---|
| 17 |
|
---|
| 18 | .globl ExternCVoid
|
---|
| 19 | ExternCVoid:
|
---|
[599] | 20 | jmp verify
|
---|
[594] | 21 |
|
---|
| 22 | .globl ExternCPVoid
|
---|
| 23 | ExternCPVoid:
|
---|
[599] | 24 | jmp verify
|
---|
[594] | 25 |
|
---|
| 26 | .globl ExternCInt
|
---|
| 27 | ExternCInt:
|
---|
[599] | 28 | jmp verify
|
---|
[594] | 29 |
|
---|
| 30 | .globl ExternCPType
|
---|
| 31 | ExternCPType:
|
---|
[599] | 32 | jmp verify
|
---|
[594] | 33 |
|
---|
| 34 | .globl Void
|
---|
| 35 | Void:
|
---|
[599] | 36 | jmp verify
|
---|
[594] | 37 |
|
---|
| 38 | .globl PVoid
|
---|
| 39 | PVoid:
|
---|
[599] | 40 | jmp verify
|
---|
[594] | 41 |
|
---|
| 42 | .globl Int
|
---|
| 43 | Int:
|
---|
[599] | 44 | jmp verify
|
---|
[594] | 45 |
|
---|
| 46 | .globl PType
|
---|
| 47 | PType:
|
---|
[599] | 48 | jmp verify
|
---|
[594] | 49 |
|
---|
| 50 |
|
---|
[599] | 51 | .globl __ZN3foo16StaticMemberVoidEiiii
|
---|
| 52 | __ZN3foo16StaticMemberVoidEiiii:
|
---|
| 53 | jmp verify
|
---|
[594] | 54 |
|
---|
[599] | 55 | .globl __ZN3foo17StaticMemberPVoidEiiii
|
---|
| 56 | __ZN3foo17StaticMemberPVoidEiiii:
|
---|
| 57 | jmp verify
|
---|
[594] | 58 |
|
---|
[599] | 59 | .globl __ZN3foo15StaticMemberIntEiiii
|
---|
| 60 | __ZN3foo15StaticMemberIntEiiii:
|
---|
| 61 | jmp verify
|
---|
[594] | 62 |
|
---|
[599] | 63 | .globl __ZN3foo17StaticMemberPTypeEiiii
|
---|
| 64 | __ZN3foo17StaticMemberPTypeEiiii:
|
---|
| 65 | jmp verify
|
---|
[594] | 66 |
|
---|
[595] | 67 |
|
---|
[599] | 68 | .globl __ZN3foo10MemberVoidEiiii
|
---|
| 69 | __ZN3foo10MemberVoidEiiii:
|
---|
| 70 | jmp verify2
|
---|
[595] | 71 |
|
---|
[599] | 72 | .globl __ZN3foo11MemberPVoidEiiii
|
---|
| 73 | __ZN3foo11MemberPVoidEiiii:
|
---|
| 74 | jmp verify2
|
---|
| 75 |
|
---|
| 76 | .globl __ZN3foo9MemberIntEiiii
|
---|
| 77 | __ZN3foo9MemberIntEiiii:
|
---|
| 78 | jmp verify2
|
---|
| 79 |
|
---|
| 80 | .globl __ZN3foo11MemberPTypeEiiii
|
---|
| 81 | __ZN3foo11MemberPTypeEiiii:
|
---|
| 82 | jmp verify2
|
---|
| 83 |
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 | verify:
|
---|
| 87 | pushl %ebp
|
---|
| 88 | movl %esp, %ebp
|
---|
| 89 |
|
---|
| 90 | movl 8(%ebp), %eax
|
---|
| 91 | cmpl $1, %eax
|
---|
| 92 | je ok1
|
---|
| 93 | int $3
|
---|
| 94 |
|
---|
| 95 | ok1:
|
---|
| 96 | movl 12(%ebp), %eax
|
---|
| 97 | cmpl $2, %eax
|
---|
| 98 | je ok2
|
---|
| 99 | int $3
|
---|
| 100 |
|
---|
| 101 |
|
---|
| 102 | ok2:
|
---|
| 103 | movl 16(%ebp), %eax
|
---|
| 104 | cmpl $3, %eax
|
---|
| 105 | je ok3
|
---|
| 106 | int $3
|
---|
| 107 |
|
---|
| 108 | ok3:
|
---|
| 109 | movl 20(%ebp), %eax
|
---|
| 110 | cmpl $4, %eax
|
---|
| 111 | je ok4
|
---|
| 112 | int $3
|
---|
| 113 |
|
---|
| 114 | ok4:
|
---|
| 115 | mov %ebp, %ebp
|
---|
| 116 | popl %ebp
|
---|
[595] | 117 | ret
|
---|
| 118 |
|
---|
[599] | 119 |
|
---|
| 120 | verify2:
|
---|
| 121 | pushl %ebp
|
---|
| 122 | movl %esp, %ebp
|
---|
| 123 |
|
---|
| 124 | movl 4(%ebp), %eax
|
---|
| 125 | test %eax, %eax
|
---|
| 126 | jnz okthis
|
---|
| 127 | int $3
|
---|
| 128 |
|
---|
| 129 | okthis:
|
---|
| 130 | movl 12(%ebp), %eax
|
---|
| 131 | cmpl $1, %eax
|
---|
| 132 | je ok21
|
---|
| 133 | int $3
|
---|
| 134 |
|
---|
| 135 | ok21:
|
---|
| 136 | movl 16(%ebp), %eax
|
---|
| 137 | cmpl $2, %eax
|
---|
| 138 | je ok22
|
---|
| 139 | int $3
|
---|
| 140 |
|
---|
| 141 |
|
---|
| 142 | ok22:
|
---|
| 143 | movl 20(%ebp), %eax
|
---|
| 144 | cmpl $3, %eax
|
---|
| 145 | je ok23
|
---|
| 146 | int $3
|
---|
| 147 |
|
---|
| 148 | ok23:
|
---|
| 149 | movl 24(%ebp), %eax
|
---|
| 150 | cmpl $4, %eax
|
---|
| 151 | je ok24
|
---|
| 152 | int $3
|
---|
| 153 |
|
---|
| 154 | ok24:
|
---|
| 155 | mov %ebp, %ebp
|
---|
| 156 | popl %ebp
|
---|
[595] | 157 | ret
|
---|
| 158 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.