add more modes
This commit is contained in:
parent
4e3506244b
commit
8fe616edb1
17 changed files with 1443 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ var docs = {
|
|||
"docs/c9search.c9search_results": "C9 Search Results",
|
||||
|
||||
"docs/actionscript.as": "ActionScript",
|
||||
"docs/assembly_x86.asm": "Assembly_x86",
|
||||
"docs/autohotkey.ahk": "AutoHotKey",
|
||||
"docs/batchfile.bat": "BatchFile",
|
||||
"docs/erlang/erl": "Erlang",
|
||||
|
|
|
|||
18
demo/kitchen-sink/docs/assembly_x86.asm
Normal file
18
demo/kitchen-sink/docs/assembly_x86.asm
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
section .text
|
||||
global main ;must be declared for using gcc
|
||||
|
||||
main: ;tell linker entry point
|
||||
|
||||
mov edx, len ;message length
|
||||
mov ecx, msg ;message to write
|
||||
mov ebx, 1 ;file descriptor (stdout)
|
||||
mov eax, 4 ;system call number (sys_write)
|
||||
int 0x80 ;call kernel
|
||||
|
||||
mov eax, 1 ;system call number (sys_exit)
|
||||
int 0x80 ;call kernel
|
||||
|
||||
section .data
|
||||
|
||||
msg db 'Hello, world!',0xa ;our dear string
|
||||
len equ $ - msg ;length of our dear string
|
||||
Loading…
Add table
Add a link
Reference in a new issue