; pointer-entry.asm -- M7.1 pointer gate entry, linked at bit 018A0000. ; ; Sets the TI C field sizes, points STK/FP at the gate stack, calls the C ; driver pointer_run(), and writes a post-return sentinel. pointer-o2.sh ; concatenates the compiled driver after this file through scripts/m4/run.sh. ; ; Markers are at 018A8000 + n*0x20 bits (n = 0..12 written by the driver, n = 13 ; the post-return sentinel); the copy bytes are at 018A9000 + n*8 bits. .text .globl _start _start: setf 16, 1, 0 setf 32, 0, 1 movi _cstack, a14 move a14, a13 calla _pointer_run movi 5A5A5A5Ah, a0 movi 018A81A0h, a2 ; marker 13, the post-return sentinel move a0, *a2, 1 rets .bss _cstack, 32768, 16 ; 32768 bits = 4096 bytes