Files
tms-c-compiler/scripts/m3/entry.asm
T

26 lines
723 B
NASM

; entry.asm -- M3 entry, linked at bit 018A0000.
;
; Calls the compiled branch/loop tests and then the first compiled C Xlib
; client. Markers (0x20 bits apart):
; 018A8000 Display pointer (xhello)
; 018A8020 root window (xhello)
; 018A8040 window id (xhello)
; 018A8060 XSync diagnostic (xhello)
; 018A8080 sumto(10) == 55 (branch_test)
; 018A80A0 max2(20,22) == 22 (branch_test)
; 018A80C0 lt(5,7) == 1 (branch_test)
; 018A80E0 layout_screens() == 0x480
; 018A8100 layout_root() == 0x40
.text
.globl _start
_start:
setf 16, 0, 0
setf 32, 0, 1
movi _cstack, a14
move a14, a13
calla _branch_test
calla _xhello
rets
.bss _cstack, 32768, 16 ; 32768 bits = 4096 bytes