This file is indexed.

/usr/share/z88dk/lib/z88_crt0.asm is in z88dk-data 1.8.ds1-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
; Small C startup module for Running Compiled C from BBC BASIC
; ZCC for z88 converted by Dominic Morris <djm@jb.man.ac.uk>
; Written August 1998
; Updated for small C+ continuously through September
; Changes by DG implemented 28/9/98
; GFX Stuff added 30/9/98
; 19/10/98 Atexit stuff added
; 27/11/98 Atexit stuff rejigged to allow 32 levels of atexit
;
; 29/2/99  Added the include for zcc_opt so we now if float package
;          required or not..
;
; 14/3/99  Renamed the printf vars to smc_pf*
;
; 1/4/99   Changing to allow application startup
;
; - - - - - - - -
;
; $Id: z88_crt0.asm,v 1.6 2007/06/27 20:49:28 dom Exp $
;
; - - - - - - - -


	MODULE  z88_crt0

;-------
; Include zcc_opt.def to find out information about us
;-------

	INCLUDE "zcc_opt.def"


;-------
; Some general scope declarations
;-------

	XREF    _main		;main() is always external to crt0 code
	XDEF    cleanup		;jp'd to by exit()
	XDEF    l_dcal		;jp(hl)

	XDEF    coords		;Current graphics xy coords
	XDEF    base_graphics	;Address of graphics map
	XDEF    gfx_bank	;Bank for this

	XDEF    _std_seed	;Integer rand() seed


	XDEF    exitsp		;Pointer to atexit() stack
	XDEF    exitcount	;Number of atexit() functions registered

	XDEF    __sgoioblk	;std* control block

	XDEF    processcmd	;Processing <> commands

	XDEF	heaplast	;Near malloc heap variables
	XDEF	heapblocks	;

	XDEF	_cpfar2near	;Conversion of far to near data

	XDEF	_vfprintf	;jp to printf() core routine

	XDEF	snd_asave	;sound
	XDEF	snd_tick	;sound

;-------
; Select which particular startup we want
;-------
IF DEFINED_startup
; User specified startup type, so do as they wish then drop out otherwise
; Use -startup=1 for basic      } (For sake of completeness only - don't
;     -startup=2 for app        } use them!)
;     -startup=3 for code snippets
        IF (startup=1)
                INCLUDE "#bas_crt0.asm"
        ENDIF
        IF (startup=2)
                INCLUDE "#app_crt0.asm"
        ENDIF
        IF (startup=3)
                INCLUDE "#rel_crt0.asm"
        ENDIF
	IF (startup=4)
		INCLUDE "#dev_crt0.asm"
	ENDIF
	IF (startup=5)
		INCLUDE "#z88s_crt0.asm"
	ENDIF

ELSE 

ELSE 
        IF NEED_appstartup
                INCLUDE "#app_crt0.asm"
        ELSE
                INCLUDE "#bas_crt0.asm"
        ENDIF
ENDIF