mirror of
https://github.com/samsonjs/compiler.git
synced 2026-06-24 04:49:09 +00:00
are these anything
This commit is contained in:
parent
a12bdafde4
commit
a6ee3fa37d
2 changed files with 18 additions and 0 deletions
9
linux.asm
Normal file
9
linux.asm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
BITS 32
|
||||
GLOBAL _start
|
||||
SECTION .data
|
||||
SECTION .bss
|
||||
SECTION .text
|
||||
_start:
|
||||
mov ebx, 42
|
||||
mov eax, 1 ; _exit syscall
|
||||
int 0x80 ; call Linux
|
||||
9
test.asm
Normal file
9
test.asm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
BITS 32
|
||||
GLOBAL _main
|
||||
SECTION .data
|
||||
SECTION .bss
|
||||
SECTION .text
|
||||
_main:
|
||||
mov eax, 42
|
||||
;; The result in eax is the exit code, just return.
|
||||
ret
|
||||
Loading…
Reference in a new issue