rulimine/decompressor/entry.asm

19 lines
261 B
NASM
Raw Normal View History

extern bss_begin
extern bss_end
extern entry
section .entry progbits alloc exec nowrite align=16
global _start
_start:
cld
; Zero out .bss
xor al, al
mov edi, bss_begin
mov ecx, bss_end
sub ecx, bss_begin
rep stosb
jmp entry