; debug-entry.asm -- M7.2 debug-info gate entry, linked at bit 018A0000. ; ; debug.c is linked first so debug_mul is the text-origin function and its ; DWARF low PC is the expected 0x314000 (text origin 018A0000 / 8). This ; entry calls debug_mul(), debug_add() and debug_ptr() and stores their ; results, 43, 14 and 30, at 018A8000, 018A8020 and 018A8040. ; ; debug_ptr() takes no argument: it uses the .data debug_index (2) for the ; pointer update, so the entry needs no argument-pushing sequence. .ref _debug_mul .ref _debug_add .ref _debug_ptr .text .globl _start _start: setf 16,1,0 setf 32,0,1 movi _cstack,a14 move a14,a13 calla _debug_mul move a8,@018A8000h,1 calla _debug_add move a8,@018A8020h,1 calla _debug_ptr move a8,@018A8040h,1 rets .bss _cstack,32768,16 .end