1 Decibyte Elf Machine Code

(*) say “elo” in linux 32-bit, x86!

65 6C 6F 0A B8 04 00 00 00 B9

Advertisements

Yasm32 for Linux free examples

(*) smallest binary ever!

(**) “hello” asm32 example w/ yasm assembler:

BITS 32

msg db “Hellow”, 10
len equ $ – msg
SECTION .text
global _start ; program entry point
_start:
mov eax, 4 ; ‘write’ syscall
mov ecx, msg ; pointer to data
mov edx, len ; amount of data
int 0x80 ; call to kernel
mov eax, 1 ; ‘_exit’ syscall
mov ebx, 0 ; zero exit code (success)
int 0x80 ; call to kernel