-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolbox_conf.a
271 lines (224 loc) · 8.61 KB
/
toolbox_conf.a
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
;==============================================================================
; DEMON - copy(l)eft 2018 http://harald.ist.org/
; tabsize=8
;==============================================================================
; This is the Toolbox configuration file. You can set some values and define,
; which modules and functions are linked into the binary, minimizing file size.
;------------------------------------------------------------------------------
; Include this file before any other Toolbox files. The ACME assembler can get
; confused with !ifdef , when the defines are not yet existing.
;------------------------------------------------------------------------------
;==============================================================================
!zone APPLICATION_SETTINGS
;==============================================================================
;------------------------------------------------------------------------------
; Colors to be set with toolbox:menu_colors.a:load_colors . Also used in menu
; definition strings (dialog, directory, but also application menu strings)
;------------------------------------------------------------------------------
!ifdef DEMONIC {
.pt = petscii_yellow
.pb = petscii_black
} else {
.pt = petscii_black
.pb = petscii_white
}
!ifdef WORK_SCREEN {
.pf = petscii_red
} else {
.pf = petscii_lgrey
}
color_background = .pb ; Main area background
color_text = .pt ; Main area text
color_cursor = color_text ; Typically color_text
color_frame = .pf ; Frame color/menu bars
color_frame_ext = petscii_black ; Frame above/below
color_menu = color_frame ; Menu text
color_menu_active = petscii_lred ; Menu F-key colors
color_menu_disabled = petscii_grey ; Disabled menu items
color_bracket = petscii_grey ; Options check box
color_select = petscii_green ; Options radio button
color_highlight = petscii_white ; Currently selected
color_error = petscii_lred ; Error messages
;------------------------------------------------------------------------------
; Some applications need to keep track of which menu/screen is currently
; active. Define unique screenid_* values here:
;------------------------------------------------------------------------------
screenid_main_menu = 1
;==============================================================================
!zone TOOLBOX_HOOKS
;==============================================================================
; Some modules provide the option to call hook functions in certain locations.
; This makes it possible for your program to enhance these functions without
; changing the Toolbox sources.
;GETKEY_HOOK = 1 ; JSR custom_getkey_handler
;IRQ_HOOK = 1 ; JSR custom_irq_handler
;==============================================================================
!zone TOOLBOX_OPTIONS
;==============================================================================
; Some modules provide special options:
GETKEY_BEEP = 1 ; Make a sound after each key press
; If beep disabled, screen will flash
GETKEY_IRQ_BLINK = 1 ; IRQ increases cursor_count
GETKEY_REPEAT_FLAG = $00 ; Enable repeating keys:
; $80=all, $7f=none, $00=control keys
!ifndef MIN_CODE_SIZE {
GETKEY_REPEAT_FIRST = $06
GETKEY_REPEAT_SPEED = $03
!ifdef USE_IRQ {
IRQ_MENU = 1 ; ISR is used to enhance the menu
}
} else {
GETKEY_REPEAT_FIRST = $01
GETKEY_REPEAT_SPEED = $00
}
;CUSTOM_RASTER_0 = 1 ; Use special raster line
;==============================================================================
!zone TOOLBOX_MODULE_SELECT
;==============================================================================
; This zone allows the complete disabling of a module, so you can reduce the
; size of your binary. Some modules depend on others as mentioned.
; Comment out, what you don't need:
TOOLBOX_CONSTANTS = 1 ; Generates no code, provides defs only
TOOLBOX_HELPERS = 1 ; (puts, getkey)
!ifndef MIN_CODE_SIZE {
TOOLBOX_MENU_COLORS = 1
TOOLBOX_RASTER_IRQ = 1 ; (OPT) Better cursror blink
}
;TOOLBOX_SYSPARAMS = 1
TOOLBOX_GETKEY = 1
TOOLBOX_SCROLL = 1
TOOLBOX_PUTS = 1
TOOLBOX_PUTS_WRAPPERS = 1
!ifdef WORK_SCREEN {
TOOLBOX_MENU_COLORS = 1
}
!ifdef TUI_MENU {
TOOLBOX_PRINT_MENU = 1
TOOLBOX_DIALOG = 1
}
TOOLBOX_FLOPPY = 1
;TOOLBOX_SECTOR = 1
;==============================================================================
!zone TOOLBOX_FUNCTION_SELECT
;==============================================================================
; This zone allows fine tuning of which functions in each module to include
; Comment out, what you don't need:
; TOOLBOX_HELPERS
;------------------------------------------------------------------------------
TB_SAVE_RESTORE_ZP = 1
TB_SLEEP = 1 ; (OPT?)
TB_SID_BEEP = 1 ; (OPT)
;TB_VSYNC = 1 ; (USR)
TB_LO_HI_NIBBLES = 1
TB_BYTE_TO_HEX = 1
TB_BYTE_TO_STR = 1
!ifndef MIN_CODE_SIZE {
TB_WORD_TO_STR = 1
}
TB_PETSCII_SCREEN_CONV = 1
TB_TO_UPPER_LOWER_CASE = 1
!ifdef TUI_MENU {
TB_GET_VISUAL_STRLEN = 1 ; (print_menu)
}
;TB_VRAM_READ_BYTE = 1 ; (USR)
;TB_DETECT_PAL_NTSC = 1 ; (USR)
; TOOLBOX_RASTER_IRQ
;------------------------------------------------------------------------------
;LOWER_CASE_MENU = 1 ; Keep the menu bars in lower case
; TOOLBOX_SCROLL
;------------------------------------------------------------------------------
TB_SCROLL_UP = 1 ; (puts)
TB_SCROLL_DOWN = 1 ; (puts)
!ifdef WORK_SCREEN {
TB_SAVE_SCREEN = 1 ; (dialog)
TB_LOAD_SCREEN = 1 ; (dialog)
}
; TOOLBOX_PUTS
;------------------------------------------------------------------------------
TB_PUTS_SAVE_ZP = 1 ; (OPT) Keep values in $f7..$ff intact
;TB_PUTS_SAVE_STATE = 1 ; (OPT?) color, rvs, crsrx/y <--> stack
TB_GET_UPDATE_VPTR = 1
TB_GOTO_XY = 1
TB_GET_COLOR_CODE = 1 ; --> opt
TB_COLOR_CODE_TAB = 1 ; --> opt
TB_CHECK_PRINTABLE_CHAR = 1 ; --> opt
TB_PUTS = 1
; TOOLBOX_PUTS_WRAPPERS
;------------------------------------------------------------------------------
TB_GOTO_POS0 = 1
TB_GOTO_EOL = 1
TB_MENU_HOME = 1 ; --> opt
TB_PUTC = 1
TB_SPUTC = 1
TB_PUTS_XY = 1
TB_PUTS_NEWLINE = 1
TB_PUTS_RVS = 1
!ifdef TUI_MENU {
TB_RPUTS_XY = 1
}
!ifndef MIN_CODE_SIZE {
TB_PUTS_STRBYTE = 1
}
TB_PUTS_HEXBYTE = 1
!ifndef MIN_CODE_SIZE {
TB_PUTS_STRWORD = 1
}
; TOOLBOX_MENU_COLORS
;------------------------------------------------------------------------------
!ifdef WORK_SCREEN {
TB_LOAD_COLORS = 1
} else {
TB_LOAD_SYSTEM_COLORS = 1
}
; TOOLBOX_PRINT_MENU
;------------------------------------------------------------------------------
;TB_MENU_SAVE_STATE = 1 ; (USR)
TB_CLEAR_ROW = 1 ; (print_menu)
;TB_EMPTY_TOP_ROW = 1 ; (USR?)
TB_PRINT_MENU = 1
TB_S_TOP_MENU = 1 ; (print_menu)
TB_S_BOTTOM_MENU = 1 ; (print_menu)
TB_S_SPACE_40 = 1 ; (print_menu)
; TOOLBOX_GETKEY
;------------------------------------------------------------------------------
; Nothing to configure here
; TOOLBOX_DIALOG
;------------------------------------------------------------------------------
TB_DRAW_BOX = 1 ; (text_box)
TB_TEXT_BOX = 1 ; (dialog_box)
TB_DIALOG_BOX = 1 ; (input_box)
TB_INPUT_BOX = 1 ; (USR)
; TOOLBOX_FLOPPY
;------------------------------------------------------------------------------
;TB_DISK_COMMAND = 1 ; (OPT)
TB_DISK_ERROR = 1 ; (OPT)
;TB_SECTORS_PER_TRACK = 1 ; (OPT)
TB_SAVE_TO_FILE = 1 ; (OPT)
TB_LOAD_FROM_FILE = 1 ; (OPT)
TB_LOAD_FROM_FILE_AUTO = 1 ; (OPT)
;TB_S_DOS_COMMAND = 1 ; (OPT) 40 char buffer for the user
; TOOLBOX_SECTOR
;------------------------------------------------------------------------------
TB_RWSECT_COMMON = 1
TB_SECTOR_READ = 1
TB_SECTOR_WRITE = 1
;==============================================================================
!zone TOOLBOX_INCLUDES
;==============================================================================
!convtab SCR
!ifdef TOOLBOX_CONSTANTS { !source "toolbox/constants.a" }
!ifdef TOOLBOX_HELPERS { !source "toolbox/helpers.a" }
!ifdef TOOLBOX_RASTER_IRQ { !source "toolbox/raster_irq.a" }
!ifdef TOOLBOX_SYSPARAMS { !source "toolbox/sysparams.a" }
!ifdef TOOLBOX_PUTS { !source "toolbox/puts.a" }
!ifdef TOOLBOX_PUTS_WRAPPERS { !source "toolbox/puts_wrappers.a" }
!ifdef TOOLBOX_SCROLL { !source "toolbox/scroll.a" }
!ifdef TOOLBOX_MENU_COLORS { !source "toolbox/menu_colors.a" }
!ifdef TOOLBOX_PRINT_MENU { !source "toolbox/print_menu.a" }
!ifdef TOOLBOX_GETKEY { !source "toolbox/getkey.a" }
!ifdef TOOLBOX_DIALOG { !source "toolbox/dialog.a" }
!ifdef TOOLBOX_FLOPPY { !source "toolbox/floppy.a" }
!ifdef TOOLBOX_SECTOR { !source "toolbox/sector.a" }
!convtab PET
;==============================================================================
!eof