Sha256: ec7fdc76748cb3ac11f9d03b2600c1b48b83be6c32e6c05c057b266ebdb6af6c

Contents?: true

Size: 503 Bytes

Versions: 7

Compression:

Stored size: 503 Bytes

Contents

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

_start:					;tell linker entry point

	xor	ebx,ebx 	;ebx=0
	mov	ecx,msg		;address of message to write
	lea	edx,[ebx+len]	;message length
	lea	eax,[ebx+4]	;system call number (sys_write)
	inc	ebx		;file descriptor (stdout)
	int	0x80		;call kernel

	xor	eax, eax	;set eax=0
	inc	eax		;system call number (sys_exit)
	int	0x80		;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_linux.asm
language_templates-0.1.5.1 bin/languages/a/assembler_nasm_linux.asm
language_templates-0.1.5 bin/languages/a/assembler_nasm_linux.asm
language_templates-0.1.4 bin/languages/a/assembler_nasm_linux.asm
language_templates-0.1.3 bin/languages/a/assembler_nasm_linux.asm
language_templates-0.1.2 bin/languages/a/assembler_nasm_linux.asm
language_templates-0.1.1 bin/languages/a/assembler_nasm_linux.asm