mirror of https://github.com/lukechilds/cc-rs.git
Alex Crichton
9 years ago
6 changed files with 43 additions and 2 deletions
@ -0,0 +1,9 @@ |
|||
.globl asm |
|||
asm: |
|||
mov $7, %eax |
|||
ret |
|||
|
|||
.globl _asm |
|||
_asm: |
|||
mov $7, %eax |
|||
ret |
@ -1,8 +1,8 @@ |
|||
extern { |
|||
pub fn foo() -> i32; |
|||
} |
|||
|
|||
extern { |
|||
pub fn bar1() -> i32; |
|||
pub fn bar2() -> i32; |
|||
|
|||
pub fn asm() -> i32; |
|||
} |
|||
|
@ -0,0 +1,9 @@ |
|||
.globl asm |
|||
asm: |
|||
mov $7, %eax |
|||
ret |
|||
|
|||
.globl _asm |
|||
_asm: |
|||
mov $7, %eax |
|||
ret |
@ -0,0 +1,8 @@ |
|||
_TEXT SEGMENT |
|||
|
|||
asm PROC |
|||
MOV EAX, 7 |
|||
RET |
|||
asm ENDP |
|||
|
|||
END |
Loading…
Reference in new issue