User guide
ii CONTENTS
2.4.1 Labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.4.2 Manifest Declarati o n s . . . . . . . . . . . . . . . . . . . . . 27
2.4.3 Global Declarat io n s . . . . . . . . . . . . . . . . . . . . . . 27
2.4.4 Static Declarati ons . . . . . . . . . . . . . . . . . . . . . . 27
2.4.5 LET Declarations . . . . . . . . . . . . . . . . . . . . . . . 28
2.4.6 Local Variable Declar a t io n s . . . . . . . . . . . . . . . . . 28
2.4.7 Local Vector Declarati o n s . . . . . . . . . . . . . . . . . . 28
2.4.8 Function and Routine Declarations . . . . . . . . . . . . . 29
2.4.9 Dynamic Free Va r ia b l es . . . . . . . . . . . . . . . . . . . 30
2.5 Separate Compi l at i on . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.6 The objline1 Feature . . . . . . . . . . . . . . . . . . . . . . . . 32
3 The Library 33
3.1 Manifest constants . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.2 Global Variab l es . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.3 Global Funct i on s . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.3.1 Streams . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
3.3.2 The Filing System . . . . . . . . . . . . . . . . . . . . . . 81
3.4 Random Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
3.5 RAM streams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
3.6 Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . 83
3.7 Coroutine exam p l es . . . . . . . . . . . . . . . . . . . . . . . . . . 84
3.7.1 A square wave generator . . . . . . . . . . . . . . . . . . . 85
3.7.2 Hamming’s Prob l em . . . . . . . . . . . . . . . . . . . . . 85
3.7.3 A Discrete Event Simulator . . . . . . . . . . . . . . . . . 88
3.8 The Graphics Library . . . . . . . . . . . . . . . . . . . . . . . . . 94
3.8.1 The Graphics Constants . . . . . . . . . . . . . . . . . . . 94
3.8.2 The Graphics Global Variables . . . . . . . . . . . . . . . 94
3.8.3 The Graphics Functions . . . . . . . . . . . . . . . . . . . 95
3.9 The SDL Graphics Library . . . . . . . . . . . . . . . . . . . . . . 96
3.10 The GL Graphics Library . . . . . . . . . . . . . . . . . . . . . . 97
3.11 The Sound Library . . . . . . . . . . . . . . . . . . . . . . . . . . 98
3.11.1 The Sound Constants . . . . . . . . . . . . . . . . . . . . . 98
3.11.2 The Sound Global Variables . . . . . . . . . . . . . . . . . 98
3.11.3 The Sound Functions . . . . . . . . . . . . . . . . . . . . . 98
3.12 The EXT Library . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4 The Command Language 99
4.1 Bootstrapping Cintsys . . . . . . . . . . . . . . . . . . . . . . . . 99
4.2 Bootstrapping Cintpos . . . . . . . . . . . . . . . . . . . . . . . . 101
4.2.1 The Cintpos BOOT module . . . . . . . . . . . . . . . . . 101
4.2.2 startroot . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
4.3 Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105