Subversion Repositories Kolibri OS

Rev

Rev 1702 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1702 Rev 3339
Line 1... Line 1...
1
;=============================================================================
1
;=============================================================================
2
; Kolibri Graphics Benchmark 0.4
2
; Kolibri Graphics Benchmark 0.5
-
 
3
;--------------------------------------
3
; MGB - Menuet Graphics Benchmark 0.3
4
; MGB - Menuet Graphics Benchmark 0.3
4
; Compile with FASM
5
; Compile with FASM
5
;
6
;
6
;=============================================================================
7
;=============================================================================
-
 
8
; version:	0.5
-
 
9
; last update:  05/03/2013
-
 
10
; written by:   Marat Zakiyanov aka Mario79, aka Mario
-
 
11
; changes:      benchmark f73-blitter
-
 
12
;---------------------------------------------------------------------
7
; version:	0.4
13
; version:	0.4
8
; last update:  18/09//2010
14
; last update:  18/09//2010
9
; written by:   Marat Zakiyanov aka Mario79, aka Mario
15
; written by:   Marat Zakiyanov aka Mario79, aka Mario
10
; changes:      select path with OpenDialog,
16
; changes:      select path with OpenDialog,
11
;               use of Box_Lib and Proc_Lib,
17
;               use of Box_Lib and Proc_Lib,
Line 293... Line 299...
293
	xor	ebx,ebx
299
	xor	ebx,ebx
294
	mcall	7,,<90,123>,<15,33>
300
	mcall	7,,<90,123>,<15,33>
295
	ret
301
	ret
296
;---------------------------------------------------------------------
302
;---------------------------------------------------------------------
297
align 4
303
align 4
-
 
304
testDrawPicture_f73:
-
 
305
	xor	ebx,ebx
-
 
306
	mcall	73,,params_f73
-
 
307
	ret
-
 
308
;---------------------------------------------------------------------
-
 
309
align 4
298
testDrawVertLine:
310
testDrawVertLine:
299
	mcall	38,<300,300>,<30,380>,1090207Fh
311
	mcall	38,<300,300>,<30,380>,1090207Fh
300
	ret
312
	ret
301
;---------------------------------------------------------------------
313
;---------------------------------------------------------------------
302
align 4
314
align 4
Line 534... Line 546...
534
align 4
546
align 4
535
results_table dd \
547
results_table dd \
536
  ?,?,testDrawWindow,aDrawingWindow,\
548
  ?,?,testDrawWindow,aDrawingWindow,\
537
  ?,?,testDrawBar,aDrawingBar,\
549
  ?,?,testDrawBar,aDrawingBar,\
538
  ?,?,testDrawPicture,aDrawingPicture,\
550
  ?,?,testDrawPicture,aDrawingPicture,\
-
 
551
  ?,?,testDrawPicture_f73,aDrawingPictF73,\
539
  ?,?,testDrawVertLine,aDrawingVLine,\
552
  ?,?,testDrawVertLine,aDrawingVLine,\
540
  ?,?,testDrawHorzLine,aDrawingHLine,\
553
  ?,?,testDrawHorzLine,aDrawingHLine,\
541
  ?,?,testDrawFreeLine,aDrawingFLine,\
554
  ?,?,testDrawFreeLine,aDrawingFLine,\
542
  ?,?,testDrawText1,aDrawingText1,\
555
  ?,?,testDrawText1,aDrawingText1,\
543
  ?,?,testDrawText2,aDrawingText2,\
556
  ?,?,testDrawText2,aDrawingText2,\
Line 549... Line 562...
549
TEST_REC_SIZE = 16
562
TEST_REC_SIZE = 16
550
TESTS_NUM     = ($ - results_table) / TEST_REC_SIZE - 1
563
TESTS_NUM     = ($ - results_table) / TEST_REC_SIZE - 1
551
;---------------------------------------------------------------------
564
;---------------------------------------------------------------------
552
aDrawingWindow	db 'Window Of Type #3, 325x400 px',0
565
aDrawingWindow	db 'Window Of Type #3, 325x400 px',0
553
aDrawingBar	db 'Filled Rectangle, 100x250 px',0
566
aDrawingBar	db 'Filled Rectangle, 100x250 px',0
554
aDrawingPicture db 'Picture, 55x123, px',0
567
aDrawingPicture db 'Picture, 90x123, px',0
-
 
568
aDrawingPictF73	db 'Picture for Blitter, 90x123, px',0
555
aDrawingVLine	db 'Vertical Line, 350 px',0
569
aDrawingVLine	db 'Vertical Line, 350 px',0
556
aDrawingHLine	db 'Horizontal Line, 270 px',0
570
aDrawingHLine	db 'Horizontal Line, 270 px',0
557
aDrawingFLine	db 'Free-angled Line, 350 px',0
571
aDrawingFLine	db 'Free-angled Line, 350 px',0
558
aDrawingText1	db 'Fixed-width Text, 34 chars',0
572
aDrawingText1	db 'Fixed-width Text, 34 chars',0
559
aDrawingText2	db 'Proportional Text, 34 chars',0
573
aDrawingText2	db 'Proportional Text, 34 chars',0
560
aDrawingNumber	db 'Decimal Number, 8 digits',0
574
aDrawingNumber	db 'Decimal Number, 8 digits',0
561
aDrawingPixel	db 'Single Pixel',0
575
aDrawingPixel	db 'Single Pixel',0
Line 562... Line 576...
562
 
576
 
563
aTestText	db 'This is a 34-charachters test text'
577
aTestText	db 'This is a 34-charachters test text'
564
aButtonsText	db 'Test      Comment+    Pattern+      Open        Save',0
578
aButtonsText	db 'Test      Comment+    Pattern+      Open        Save',0
Line 565... Line 579...
565
aCaption	db 'Kolibri Graphical Benchmark 0.4',0
579
aCaption	db 'Kolibri Graphical Benchmark 0.5',0
566
 
580
 
Line 567... Line 581...
567
aLeft	db 'Left    :',0
581
aLeft	db 'Left    :',0
Line 636... Line 650...
636
start_temp_file_name:	db 'pattern.mgb',0
650
start_temp_file_name:	db 'pattern.mgb',0
Line 637... Line 651...
637
 
651
 
638
path4	db '/rd/1/pattern.mgb',0
652
path4	db '/rd/1/pattern.mgb',0
639
;---------------------------------------------------------------------
653
;---------------------------------------------------------------------
-
 
654
align 4
-
 
655
params_f73:
-
 
656
; destination
-
 
657
.offset_X_dest	dd 0	; +0
-
 
658
.offset_Y_dest	dd 0	; +4
-
 
659
.width_dest	dd 90	; +8
-
 
660
.height_dest	dd 123	; +12
-
 
661
; source
-
 
662
.offset_X_src	dd 0	; +16
-
 
663
.offset_Y_src	dd 0	; +20
-
 
664
.width_src	dd 90	; +24
-
 
665
.height_src	dd 123	; +28
-
 
666
; other
-
 
667
.pointer	dd 0	; 90*4	; +32
-
 
668
.row_size	dd 90*4	; +36
-
 
669
;---------------------------------------------------------------------
640
align 4
670
align 4
641
ProcLib_import:
671
ProcLib_import:
642
OpenDialog_Init		dd aOpenDialog_Init
672
OpenDialog_Init		dd aOpenDialog_Init
643
OpenDialog_Start	dd aOpenDialog_Start
673
OpenDialog_Start	dd aOpenDialog_Start
644
;OpenDialog__Version	dd aOpenDialog_Version
674
;OpenDialog__Version	dd aOpenDialog_Version
Line 781... Line 811...
781
;---------------------------------------------------------------------
811
;---------------------------------------------------------------------
782
	rb 4096
812
	rb 4096
783
thread_stack1:
813
thread_stack1:
784
;---------------------------------------------------------------------
814
;---------------------------------------------------------------------
785
	rb 4096
815
	rb 4096
-
 
816
	rb 0x2884	; for F73 image size 123*90*4
786
stacktop:
817
stacktop:
787
I_END:
818
I_END:
788
@@:
819
@@: