23 lines
663 B
NASM
23 lines
663 B
NASM
; data-entry.asm -- M7.1 `.data` gate entry, linked at bit 018A0000.
|
|
;
|
|
; Sets the TI C field sizes, points STK/FP at the gate stack, calls the C
|
|
; drivers (data_run and the i64-array driver), and writes a post-return
|
|
; sentinel at marker slot 60. This is the GSPA text-path entry: the
|
|
; odd-offset-pointer driver is native-only and is called by
|
|
; data-native-entry.asm instead.
|
|
.text
|
|
.globl _start
|
|
_start:
|
|
setf 16, 1, 0
|
|
setf 32, 0, 1
|
|
movi _cstack, a14
|
|
move a14, a13
|
|
calla _data_run
|
|
calla _data64_run
|
|
movi 5A5A5A5Ah, a0
|
|
movi 018A8780h, a2 ; marker 60, the post-return sentinel
|
|
move a0, *a2, 1
|
|
rets
|
|
|
|
.bss _cstack, 32768, 16 ; 32768 bits = 4096 bytes
|