Files
vt1200/bad-apple/player/entry.asm
T

19 lines
371 B
NASM

; entry.asm -- payload entry for the Bad Apple player.
;
; The payload is entered by a debugger/rdebug jump and never returns. Set the
; C stack, call main, and spin if main ever returns.
.text
.globl _start
.globl _main
_start:
setf 32, 0, 1
movi _cstack, a14
move a14, a13
calla _main
spin:
jruc spin
.bss _cstack, 32768, 16 ; 32768 bits = 4096 bytes
.end