2026-06-28 17:58:58 -05:00
|
|
|
.global _start
|
|
|
|
|
|
|
|
|
|
.section .text
|
|
|
|
|
_start:
|
2026-07-01 20:00:22 -05:00
|
|
|
xor %ebp, %ebp
|
|
|
|
|
push %ebp
|
|
|
|
|
mov %esp, %ebp
|
2026-06-28 17:58:58 -05:00
|
|
|
|
2026-07-01 20:00:22 -05:00
|
|
|
mov (%esp), %eax
|
|
|
|
|
lea 4(%esp), %ebx
|
|
|
|
|
lea 8(%esp, %eax, 4), %ecx
|
2026-06-28 17:58:58 -05:00
|
|
|
|
2026-07-01 20:00:22 -05:00
|
|
|
push %ecx
|
|
|
|
|
push %ebx
|
|
|
|
|
push %eax
|
2026-07-04 00:26:20 -05:00
|
|
|
1: jmp 1b
|
2026-06-28 17:58:58 -05:00
|
|
|
call main
|
|
|
|
|
|
2026-07-01 20:00:22 -05:00
|
|
|
push %eax
|
2026-06-28 17:58:58 -05:00
|
|
|
call exit
|
2026-07-01 20:00:22 -05:00
|
|
|
1: jmp 1b
|