mirror of
https://git.k-space.ee/arti/vt1200.git
synced 2026-11-01 12:14:56 +02:00
19 lines
371 B
NASM
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
|