Subversion Repositories Kolibri OS

Rev

Rev 987 | Rev 1624 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
122 diamond 1
;-----------------------------------------------------------------------------
31 halyavin 2
; project name:      TINYPAD
629 mikedld 3
; compiler:          flat assembler 1.67.21
297 mikedld 4
; memory to compile: 3.0/9.0 MBytes (without/with size optimizations)
827 mikedld 5
; version:           SVN (4.0.5)
6
; last update:       2008-07-18 (Jul 18, 2008)
7
; minimal kernel:    revision #823 (svn://kolibrios.org/kernel/trunk)
122 diamond 8
;-----------------------------------------------------------------------------
9
; originally by:     Ville Michael Turjanmaa >> villemt@aton.co.jyu.fi
258 mikedld 10
; maintained by:     Mike Semenyako          >> mike.dld@gmail.com
11
;                    Ivan Poddubny           >> ivan-yar@bk.ru
122 diamond 12
;-----------------------------------------------------------------------------
297 mikedld 13
; TODO (4.1.0):
617 mikedld 14
;   - add vertical selection, undo, goto position, overwrite mode, smart tabulation
178 heavyiron 15
;   - improve window drawing with small dimensions
617 mikedld 16
;   - save/load settings to/from ini file, not executable
17
;   - path autocompletion for open/save dialogs
259 mikedld 18
;   - other bug-fixes and speed/size optimizations
122 diamond 19
;-----------------------------------------------------------------------------
617 mikedld 20
; See history.txt for complete changelog
21
;-----------------------------------------------------------------------------
31 halyavin 22
 
178 heavyiron 23
include 'lang.inc'
617 mikedld 24
 
25
include '../../../macros.inc' ; useful stuff
26
include '../../../struct.inc'
27
include '../../../proc32.inc'
28
 
29
include 'external/libio.inc'
30
 
122 diamond 31
include 'tinypad.inc'
617 mikedld 32
 
297 mikedld 33
;purge mov,add,sub            ;  SPEED
31 halyavin 34
 
987 mikedld 35
header '01',1,@CODE,TINYPAD_END,STATIC_MEM_END,MAIN_STACK,@PARAMS,ini_path
31 halyavin 36
 
827 mikedld 37
APP_VERSION equ 'SVN (4.0.5)'
258 mikedld 38
 
617 mikedld 39
TRUE = 1
40
FALSE = 0
41
 
122 diamond 42
;include 'debug.inc'
280 mikedld 43
;define __DEBUG__ 1
44
;define __DEBUG_LEVEL__ 1
45
;include 'debug-fdo.inc'
31 halyavin 46
 
987 mikedld 47
; compiled-in options
48
 
280 mikedld 49
ASEPC = '-'  ; separator character (char)
50
ATOPH = 19   ; menu bar height (pixels)
51
SCRLW = 16   ; scrollbar widht/height (pixels)
52
ATABW = 8    ; tab key indent width (chars)
53
LINEH = 10   ; line height (pixels)
54
PATHL = 256  ; maximum path length (chars) !!! don't change !!!
55
AMINS = 8    ; minimal scroll thumb size (pixels)
56
LCHGW = 3    ; changed/saved marker width (pixels)
31 halyavin 57
 
280 mikedld 58
STATH = 16   ; status bar height (pixels)
59
TBARH = 18   ; tab bar height (pixels)
31 halyavin 60
 
987 mikedld 61
INI_SEC_PREFIX equ ''
31 halyavin 62
 
122 diamond 63
;-----------------------------------------------------------------------------
64
section @CODE ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
65
;-----------------------------------------------------------------------------
31 halyavin 66
 
258 mikedld 67
	cld
68
	mov	edi,@UDATA
69
	mov	ecx,@PARAMS-@UDATA
70
	mov	al,0
71
	rep	stosb
31 halyavin 72
 
259 mikedld 73
	mcall	68,11
74
	or	eax,eax
75
	jz	key.alt_x.close
76
 
617 mikedld 77
	stdcall dll.Load,@IMPORT
78
	or	eax,eax
79
	jnz	key.alt_x.close
80
 
987 mikedld 81
	mov	edi,ini_path
82
	xor	al,al
83
	mov	ecx,PATHL
84
	repne	scasb
85
	mov	dword[edi-1],'.ini'
86
	mov	byte[edi+3],0
87
 
88
	stdcall load_settings
89
 
617 mikedld 90
	stdcall mem.Alloc,65536
259 mikedld 91
	mov	[temp_buf],eax
92
 
178 heavyiron 93
	inc	[do_not_draw]
94
 
297 mikedld 95
	mov	dword[app_start],7
96
 
258 mikedld 97
	mov	esi,s_example
98
	mov	edi,tb_opensave.text
99
	mov	ecx,s_example.size
100
	mov	[tb_opensave.length],cl
101
	rep	movsb
31 halyavin 102
 
258 mikedld 103
	mov	esi,s_still
104
	mov	edi,s_search
105
	mov	ecx,s_still.size
106
	mov	[s_search.size],ecx
107
	rep	movsb
31 halyavin 108
 
258 mikedld 109
	cmp	byte[@PARAMS],0
110
	jz	no_params
31 halyavin 111
 
122 diamond 112
;// Willow's code to support DOCPAK [
31 halyavin 113
 
258 mikedld 114
	cmp	byte[@PARAMS],'*'
115
	jne	.noipc
178 heavyiron 116
 
117
;// diamond [ (convert size from decimal representation to dword)
118
;--     mov     edx,dword[@PARAMS+1]
258 mikedld 119
	mov	esi,@PARAMS+1
120
	xor	edx,edx
121
	xor	eax,eax
178 heavyiron 122
    @@: lodsb
258 mikedld 123
	test	al,al
124
	jz	@f
125
	lea	edx,[edx*4+edx]
126
	lea	edx,[edx*2+eax-'0']
127
	jmp	@b
178 heavyiron 128
    @@:
129
;// diamond ]
130
 
258 mikedld 131
	add	edx,20
259 mikedld 132
 
617 mikedld 133
	stdcall mem.Alloc,edx
259 mikedld 134
	mov	ebp,eax
280 mikedld 135
	push	eax
259 mikedld 136
 
280 mikedld 137
	mov	dword[ebp+0],0
138
	mov	dword[ebp+4],8
259 mikedld 139
	mcall	60,1,ebp
258 mikedld 140
	mcall	40,1000000b
280 mikedld 141
 
258 mikedld 142
	mcall	23,200
280 mikedld 143
 
258 mikedld 144
	cmp	eax,7
259 mikedld 145
	jne	key.alt_x.close
146
	mov	byte[ebp],1
147
 
148
	mov	ecx,[ebp+12]
280 mikedld 149
	lea	esi,[ebp+16]
259 mikedld 150
	call	create_tab
151
	call	load_from_memory
152
 
280 mikedld 153
	pop	ebp
617 mikedld 154
	stdcall mem.Free,ebp
259 mikedld 155
 
258 mikedld 156
	jmp	@f
122 diamond 157
  .noipc:
31 halyavin 158
 
122 diamond 159
;// Willow's code to support DOCPAK ]
31 halyavin 160
 
258 mikedld 161
	mov	esi,@PARAMS
162
	mov	edi,tb_opensave.text
163
	mov	ecx,PATHL
164
	rep	movsb
165
	mov	edi,tb_opensave.text
166
	mov	ecx,PATHL
167
	xor	al,al
168
	repne	scasb
169
	jne	key.alt_x.close
170
	lea	eax,[edi-tb_opensave.text-1]
171
	mov	[tb_opensave.length],al
297 mikedld 172
	call	load_file
280 mikedld 173
	jnc	@f
31 halyavin 174
 
122 diamond 175
  no_params:
259 mikedld 176
	call	create_tab
31 halyavin 177
 
178
    @@:
280 mikedld 179
	mov	[s_status],0
178 heavyiron 180
	dec	[do_not_draw]
987 mikedld 181
 
182
	mov	al,[tabs_pos]
183
	mov	[tab_bar.Style],al
184
 
258 mikedld 185
	mcall	66,1,1
186
	mcall	40,00100111b
178 heavyiron 187
red:
258 mikedld 188
	call	drawwindow
31 halyavin 189
 
122 diamond 190
;-----------------------------------------------------------------------------
31 halyavin 191
 
122 diamond 192
still:
297 mikedld 193
	call	draw_statusbar ; write current position & number of strings
31 halyavin 194
 
122 diamond 195
  .skip_write:
297 mikedld 196
	mcall	10	; wait here until event
258 mikedld 197
	cmp	[main_closed],0
198
	jne	key.alt_x
199
	dec	eax	; redraw ?
200
	jz	red
201
	dec	eax	; key ?
202
	jz	key
203
	dec	eax	; button ?
204
	jz	button
205
	sub	eax,3	; mouse ?
206
	jz	mouse
31 halyavin 207
 
258 mikedld 208
	jmp	still.skip_write
31 halyavin 209
 
122 diamond 210
;-----------------------------------------------------------------------------
617 mikedld 211
proc get_event ctx ;//////////////////////////////////////////////////////////
122 diamond 212
;-----------------------------------------------------------------------------
617 mikedld 213
	mcall	10
214
	dec	eax	; redraw ?
215
	jz	.redraw
216
	dec	eax	; key ?
217
	jz	.key
218
	dec	eax	; button ?
219
	jz	.button
220
	sub	eax,2	; background ?
221
	jz	.background
222
	dec	eax	; mouse ?
223
	jz	.mouse
224
	dec	eax	; ipc ?
225
	jz	.ipc
226
	dec	eax	; network ?
227
	jz	.network
228
	dec	eax	; debug ?
229
	jz	.debug
230
	sub	eax,7	; irq ?
231
	js	.nothing
232
	cmp	eax,15
233
	jg	.nothing
234
	jmp	.irq
235
 
236
  .nothing:
237
	mov	eax,EV_IDLE
238
	ret
239
 
240
  .redraw:
241
	mov	eax,EV_REDRAW
242
	ret
243
 
244
  .key:
245
	mov	eax,EV_KEY
246
	ret
247
 
248
  .button:
249
	mov	eax,EV_BUTTON
250
	ret
251
 
252
  .background:
253
	mov	eax,EV_BACKGROUND
254
	ret
255
 
256
  .mouse:
257
	mov	eax,EV_MOUSE
258
	ret
259
 
260
  .ipc:
261
	mov	eax,EV_IPC
262
	ret
263
 
264
  .network:
265
	mov	eax,EV_NETWORK
266
	ret
267
 
268
  .debug:
269
	mov	eax,EV_DEBUG
270
	ret
271
endp
272
 
273
;-----------------------------------------------------------------------------
987 mikedld 274
proc load_settings ;//////////////////////////////////////////////////////////
275
;-----------------------------------------------------------------------------
276
	pushad
277
 
278
	invoke	ini.get_int,ini_path,ini_sec_options,ini_options_tabs_pos,2
279
	mov	[tabs_pos],al
280
	invoke	ini.get_int,ini_path,ini_sec_options,ini_options_secure_sel,0
281
	mov	[secure_sel],al
282
	invoke	ini.get_int,ini_path,ini_sec_options,ini_options_auto_braces,0
283
	mov	[auto_braces],al
284
	invoke	ini.get_int,ini_path,ini_sec_options,ini_options_auto_indent,1
285
	mov	[auto_indent],al
286
	invoke	ini.get_int,ini_path,ini_sec_options,ini_options_smart_tab,1
287
	mov	[smart_tab],al
288
	invoke	ini.get_int,ini_path,ini_sec_options,ini_options_optim_save,1
289
	mov	[optim_save],al
290
	invoke	ini.get_int,ini_path,ini_sec_options,ini_options_line_nums,0
291
	mov	[line_nums],al
292
 
293
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_text,0x00000000
294
	mov	[color_tbl.text],eax
295
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_back,0x00ffffff
296
	mov	[color_tbl.back],eax
297
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_text_sel,0x00ffffff
298
	mov	[color_tbl.text.sel],eax
299
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_back_sel,0x000a246a
300
	mov	[color_tbl.back.sel],eax
301
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_symbol,0x003030f0
302
	mov	[color_tbl.symbol],eax
303
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_number,0x00009000
304
	mov	[color_tbl.number],eax
305
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_string,0x00b00000
306
	mov	[color_tbl.string],eax
307
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_comment,0x00808080
308
	mov	[color_tbl.comment],eax
309
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_line_moded,0x00ffee62
310
	mov	[color_tbl.line.moded],eax
311
	invoke	ini.get_color,ini_path,ini_sec_colors,ini_colors_line_saved,0x006ce26c
312
	mov	[color_tbl.line.saved],eax
313
 
314
	invoke	ini.get_int,ini_path,ini_sec_window,ini_window_left,250
315
	mov	[mainwnd_pos.x],eax
316
	invoke	ini.get_int,ini_path,ini_sec_window,ini_window_top,75
317
	mov	[mainwnd_pos.y],eax
318
	invoke	ini.get_int,ini_path,ini_sec_window,ini_window_width,6*80+6+SCRLW+5
319
	mov	[mainwnd_pos.w],eax
320
	invoke	ini.get_int,ini_path,ini_sec_window,ini_window_height,402
321
	mov	[mainwnd_pos.h],eax
322
 
323
	popad
324
	ret
325
endp
326
 
327
;-----------------------------------------------------------------------------
328
proc save_settings ;//////////////////////////////////////////////////////////
329
;-----------------------------------------------------------------------------
330
	pushad
331
 
332
	movzx	eax,[tabs_pos]
333
	invoke	ini.set_int,ini_path,ini_sec_options,ini_options_tabs_pos,eax
334
	movzx	eax,[secure_sel]
335
	invoke	ini.set_int,ini_path,ini_sec_options,ini_options_secure_sel,eax
336
	movzx	eax,[auto_braces]
337
	invoke	ini.set_int,ini_path,ini_sec_options,ini_options_auto_braces,eax
338
	movzx	eax,[auto_indent]
339
	invoke	ini.set_int,ini_path,ini_sec_options,ini_options_auto_indent,eax
340
	movzx	eax,[smart_tab]
341
	invoke	ini.set_int,ini_path,ini_sec_options,ini_options_smart_tab,eax
342
	movzx	eax,[optim_save]
343
	invoke	ini.set_int,ini_path,ini_sec_options,ini_options_optim_save,eax
344
	movzx	eax,[line_nums]
345
	invoke	ini.set_int,ini_path,ini_sec_options,ini_options_line_nums,eax
346
 
347
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_text,[color_tbl.text]
348
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_back,[color_tbl.back]
349
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_text_sel,[color_tbl.text.sel]
350
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_back_sel,[color_tbl.back.sel]
351
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_symbol,[color_tbl.symbol]
352
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_number,[color_tbl.number]
353
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_string,[color_tbl.string]
354
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_comment,[color_tbl.comment]
355
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_line_moded,[color_tbl.line.moded]
356
	invoke	ini.set_color,ini_path,ini_sec_colors,ini_colors_line_saved,[color_tbl.line.saved]
357
 
358
	invoke	ini.set_int,ini_path,ini_sec_window,ini_window_left,[mainwnd_pos.x]
359
	invoke	ini.set_int,ini_path,ini_sec_window,ini_window_top,[mainwnd_pos.y]
360
	invoke	ini.set_int,ini_path,ini_sec_window,ini_window_width,[mainwnd_pos.w]
361
	invoke	ini.set_int,ini_path,ini_sec_window,ini_window_height,[mainwnd_pos.h]
362
 
363
	popad
364
	ret
365
endp
366
 
367
;-----------------------------------------------------------------------------
617 mikedld 368
proc start_fasm ;/////////////////////////////////////////////////////////////
369
;-----------------------------------------------------------------------------
31 halyavin 370
; BL = run after compile
122 diamond 371
;-----------------------------------------------------------------------------
297 mikedld 372
; FASM infile,outfile,/path/to/files[,run]
373
;-----------------------------------------------------------------------------
374
	cmp	[cur_editor.AsmMode],0
258 mikedld 375
	jne	@f
376
	ret
297 mikedld 377
    @@:
378
	mov	eax,[tab_bar.Default.Ptr]
379
	or	eax,eax
380
	jnz	@f
381
	mov	eax,[tab_bar.Current.Ptr]
382
    @@: cmp	byte[eax+TABITEM.Editor.FilePath],'/'
383
	je	@f
384
	ret
385
    @@:
258 mikedld 386
	mov	edi,fasm_parameters
297 mikedld 387
	push	eax
31 halyavin 388
 
297 mikedld 389
	cld
31 halyavin 390
 
297 mikedld 391
	lea	esi,[eax+TABITEM.Editor.FilePath]
392
	add	esi,[eax+TABITEM.Editor.FileName]
393
	push	esi esi
394
    @@: lodsb
395
	cmp	al,0
396
	je	@f
258 mikedld 397
	stosb
297 mikedld 398
	cmp	al,'.'
399
	jne	@b
400
	mov	ecx,esi
401
	jmp	@b
402
    @@:
258 mikedld 403
	mov	al,','
404
	stosb
31 halyavin 405
 
297 mikedld 406
	pop	esi
407
	sub	ecx,esi
408
	dec	ecx
409
	jz	@f
258 mikedld 410
	rep	movsb
297 mikedld 411
    @@:
258 mikedld 412
	mov	al,','
413
	stosb
31 halyavin 414
 
258 mikedld 415
	pop	ecx esi
297 mikedld 416
	add	esi,TABITEM.Editor.FilePath
417
	sub	ecx,esi
258 mikedld 418
	rep	movsb
31 halyavin 419
 
297 mikedld 420
	cmp	bl,0 ; run outfile ?
421
	je	@f
422
	mov	dword[edi],',run'
423
	add	edi,4
424
    @@:
258 mikedld 425
	mov	al,0
426
	stosb
31 halyavin 427
 
297 mikedld 428
	mov	[app_start.filename],app_fasm
429
	mov	[app_start.params],fasm_parameters
178 heavyiron 430
start_ret:
297 mikedld 431
	mcall	70,app_start
258 mikedld 432
	ret
617 mikedld 433
endp
31 halyavin 434
 
122 diamond 435
;-----------------------------------------------------------------------------
617 mikedld 436
proc open_debug_board ;///////////////////////////////////////////////////////
122 diamond 437
;-----------------------------------------------------------------------------
297 mikedld 438
	mov	[app_start.filename],app_board
439
	mov	[app_start.params],0
258 mikedld 440
	jmp	start_ret
617 mikedld 441
endp
31 halyavin 442
 
122 diamond 443
;-----------------------------------------------------------------------------
617 mikedld 444
proc open_sysfuncs_txt ;//////////////////////////////////////////////////////
122 diamond 445
;-----------------------------------------------------------------------------
297 mikedld 446
	mov	[app_start.filename],app_docpak
447
	mov	[app_start.params],sysfuncs_param
258 mikedld 448
	call	start_ret
449
	cmp	eax,0xfffffff0
450
	jb	@f
297 mikedld 451
	mov	[app_start.filename],app_tinypad
452
	mov	[app_start.params],sysfuncs_filename
258 mikedld 453
	call	start_ret
122 diamond 454
    @@: ret
617 mikedld 455
endp
31 halyavin 456
 
297 mikedld 457
set_opt:
178 heavyiron 458
 
297 mikedld 459
  .dialog:
460
	mov	[bot_mode],1
461
	mov	[bot_dlg_height],128
462
	mov	[bot_dlg_handler],optsdlg_handler
463
	mov	[focused_tb],tb_color
464
	mov	al,[tb_color.length]
465
	mov	[tb_color.pos.x],al
466
	mov	[tb_color.sel.x],0
467
	mov	[tb_casesen],1
468
	mov	[cur_part],0
469
	m2m	[cur_color],dword[color_tbl.text]
470
	mov	esi,color_tbl
471
	mov	edi,cur_colors
472
	mov	ecx,10
473
	cld
474
	rep	movsd
475
	call	drawwindow
476
	ret
31 halyavin 477
 
259 mikedld 478
  .line_numbers:
987 mikedld 479
	xor	[line_nums],1
480
	ret
259 mikedld 481
  .optimal_fill:
987 mikedld 482
	xor	[optim_save],1
483
	ret
259 mikedld 484
  .auto_indents:
987 mikedld 485
	xor	[auto_indent],1
486
	ret
259 mikedld 487
  .auto_braces:
987 mikedld 488
	xor	[auto_braces],1
489
	ret
259 mikedld 490
  .secure_sel:
987 mikedld 491
	xor	[secure_sel],1
258 mikedld 492
	ret
31 halyavin 493
 
122 diamond 494
;-----------------------------------------------------------------------------
31 halyavin 495
 
617 mikedld 496
include 'data/tp-defines.inc'
259 mikedld 497
 
122 diamond 498
include 'tp-draw.asm'
499
include 'tp-key.asm'
258 mikedld 500
include 'tp-button.asm'
122 diamond 501
include 'tp-mouse.asm'
502
include 'tp-files.asm'
258 mikedld 503
include 'tp-common.asm'
504
include 'tp-dialog.asm'
122 diamond 505
include 'tp-popup.asm'
506
include 'tp-tbox.asm'
259 mikedld 507
include 'tp-tabctl.asm'
508
include 'tp-editor.asm'
258 mikedld 509
include 'tp-recode.asm'
31 halyavin 510
 
617 mikedld 511
include 'external/dll.inc'
178 heavyiron 512
 
31 halyavin 513
;-----------------------------------------------------------------------------
122 diamond 514
section @DATA ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
31 halyavin 515
;-----------------------------------------------------------------------------
516
 
827 mikedld 517
;include_debug_strings
518
 
617 mikedld 519
include 'data/tp-idata.inc'
31 halyavin 520
 
617 mikedld 521
;-----------------------------------------------------------------------------
522
section @IMPORT ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
523
;-----------------------------------------------------------------------------
31 halyavin 524
 
617 mikedld 525
library \
526
	libini,'libini.obj',\
527
	libio,'libio.obj',\
528
	libgfx,'libgfx.obj'
31 halyavin 529
 
617 mikedld 530
import	libini, \
1102 diamond 531
	ini.get_str  ,'ini_get_str',\
532
	ini.set_str  ,'ini_set_str',\
533
	ini.get_int  ,'ini_get_int',\
534
	ini.set_int  ,'ini_set_int',\
535
	ini.get_color,'ini_get_color',\
536
	ini.set_color,'ini_set_color'
31 halyavin 537
 
617 mikedld 538
import	libio, \
1102 diamond 539
	file.find_first,'file_find_first',\
540
	file.find_next ,'file_find_next',\
541
	file.find_close,'file_find_close',\
542
	file.size      ,'file_size',\
543
	file.open      ,'file_open',\
544
	file.read      ,'file_read',\
545
	file.write     ,'file_write',\
546
	file.seek      ,'file_seek',\
547
	file.tell      ,'file_tell',\
548
	file.eof?      ,'file_iseof',\
549
	file.truncate  ,'file_truncate',\
550
	file.close     ,'file_close'
31 halyavin 551
 
617 mikedld 552
import	libgfx, \
1102 diamond 553
	gfx.open	,'gfx_open',\
554
	gfx.close	,'gfx_close',\
555
	gfx.pen.color	,'gfx_pen_color',\
556
	gfx.brush.color ,'gfx_brush_color',\
557
	gfx.pixel	,'gfx_pixel',\
558
	gfx.move.to	,'gfx_move_to',\
559
	gfx.line.to	,'gfx_line_to',\
560
	gfx.line	,'gfx_line',\
561
	gfx.polyline	,'gfx_polyline',\
562
	gfx.polyline.to ,'gfx_polyline_to',\
563
	gfx.fillrect	,'gfx_fillrect',\
564
	gfx.fillrect.ex ,'gfx_fillrect_ex',\
565
	gfx.framerect	,'gfx_framerect',\
566
	gfx.framerect.ex,'gfx_framerect_ex',\
567
	gfx.rectangle	,'gfx_rectangle',\
568
	gfx.rectangle.ex,'gfx_rectangle_ex'
31 halyavin 569
 
258 mikedld 570
TINYPAD_END:	 ; end of file
122 diamond 571
 
31 halyavin 572
;-----------------------------------------------------------------------------
122 diamond 573
section @UDATA ;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
31 halyavin 574
;-----------------------------------------------------------------------------
575
 
617 mikedld 576
include 'data/tp-udata.inc'
297 mikedld 577
 
31 halyavin 578
;-----------------------------------------------------------------------------
122 diamond 579
section @PARAMS ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
31 halyavin 580
;-----------------------------------------------------------------------------
581
 
582
fasm_parameters:
583
 
258 mikedld 584
p_info	process_information
122 diamond 585
p_info2 process_information
258 mikedld 586
sc	system_colors
122 diamond 587
 
987 mikedld 588
ini_path rb PATHL
589
 
259 mikedld 590
rb 1024*4
591
MAIN_STACK:
592
rb 1024*4
593
POPUP_STACK:
594
 
595
STATIC_MEM_END:
596
 
597
diff10 'Main memory size',0,$