Sha256: fdfbeb9e24b7948e8e5fbf93387a19f18eece18a4dfb5fb35e3cca2d5267524a

Contents?: true

Size: 514 Bytes

Versions: 7

Compression:

Stored size: 514 Bytes

Contents

section	.text
    global _start			;must be declared for linker (ld)

_start:					;tell linker entry point

	xor	eax,eax		;eax:=0
	lea	edx,[rax+len]	;message length
	mov	al,1		;system call number (sys_write)
	mov	esi,msg		;message to write
	mov	edi,eax		;file descriptor (stdout)
	syscall			;call kernel
	
	xor	edi, edi	;return 0 (EXIT_SUCCESS)
	lea	eax,[rdi+60]	;system call number (sys_exit)
	syscall			;call kernel

section	.rodata

msg	db	'Hello, world!',0xa	;our string
len	equ	$ - msg			;length of our string

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
language_templates-0.1.5.2 bin/languages/a/assembler_nasm_linux64.asm
language_templates-0.1.5.1 bin/languages/a/assembler_nasm_linux64.asm
language_templates-0.1.5 bin/languages/a/assembler_nasm_linux64.asm
language_templates-0.1.4 bin/languages/a/assembler_nasm_linux64.asm
language_templates-0.1.3 bin/languages/a/assembler_nasm_linux64.asm
language_templates-0.1.2 bin/languages/a/assembler_nasm_linux64.asm
language_templates-0.1.1 bin/languages/a/assembler_nasm_linux64.asm