comparison code_part1/OSTC_code_asm_part1/test_printf.asm @ 83:3e351e25f5d1

adding anti-aliased fonts frame and merging some patches from Jeando
author heinrichsweikamp
date Tue, 07 Dec 2010 22:36:19 +0100
parents
children
comparison
equal deleted inserted replaced
82:bc3092c41335 83:3e351e25f5d1
1 ;////////////////////////////////////////////////////////////////////////////
2 ;
3 ; file printf.inc
4 ; brief Compact macro to print PROM text, with formating options.
5 ; author JD Gascuel.
6 ;
7 ; copyright (c) 2010, JD Gascuel. All rights reserved.
8 ; $Id: test_printf.asm 72 2010-11-29 22:45:12Z gascuel $
9 ;//////////////////////////////////////////////////////////////////////////////
10 ; HISTORY
11 ; 2010-11-17 : [jDG] Creation...
12 ;
13
14 ;=============================================================================
15 ; test font screen
16
17 test_printf code_pack
18 test_printf:
19 call PLED_ClearScreen
20
21 call printf_inline
22 DB PRINTF_FONT_SMALL + PRINTF_TOPLEFT + PRINTF_COLOR8
23 DB .4, .2 ; top, leftx2
24 DB 0xFF ; White
25 DB " !\"#$%&'()*+,-;/"
26 DB 0,0
27
28 call printf_inline
29 DB PRINTF_INVERT + PRINTF_TOPLEFT + PRINTF_COLOR8
30 DB .30, .2 ; top, leftx2
31 DB 0xE0 ; Red
32 DB "0123456789:;<=>?"
33 DB 0,0
34
35 call printf_inline
36 DB PRINTF_TOPLEFT + PRINTF_COLOR8
37 DB .56, .2 ; top, leftx2
38 DB 0x1C ; Green
39 DB "@ABCDEFGHIJKLMNO"
40 DB 0,0
41
42 call printf_inline
43 DB PRINTF_INVERT + PRINTF_TOPLEFT + PRINTF_COLOR8
44 DB .82, .2 ; top, leftx2
45 DB 0x03 ; Blue
46 DB "PQRSTUVWXYZ[\\]^_"
47 DB 0,0
48
49 call printf_inline
50 DB PRINTF_TOPLEFT + PRINTF_COLOR8
51 DB .108, .2 ; top, leftx2
52 DB 0x1F ; Cyan
53 DB "`abcdefghijklmno"
54 DB 0,0
55
56 call printf_inline
57 DB PRINTF_TOPLEFT + PRINTF_COLOR8
58 DB .134, .2 ; top, leftx2
59 DB 0xE3 ; Magenta
60 DB "pqrstuvwxyz{|}~¤"
61 DB 0,0
62
63 call printf_inline
64 DB PRINTF_TOPLEFT + PRINTF_COLOR8
65 DB .160, .2 ; top, leftx2
66 DB 0xFC ; Yellow
67 DB "°", 0xB7
68 DB 0x01, ' '
69 DB 0x1F, ' '
70 DB 0x84, ' '
71 DB 0xFF, ' '
72 DB 0,0
73
74 ;=================================================================
75 call wait_page
76
77 call printf_inline
78 DB PRINTF_FONT_MEDIUM + PRINTF_TOPLEFT + PRINTF_COLOR8
79 DB .4, .4 ; top, leftx2
80 DB 0xFF ; White
81 DB "{/.01234567/}"
82 DB 0
83
84 call printf_inline
85 DB PRINTF_INVERT + PRINTF_FONT_MEDIUM + PRINTF_TOPLEFT
86 DB .36, .4 ; top, leftx2
87 DB "[/890:'\"m /]"
88 DB 0
89
90 call printf_inline
91 DB PRINTF_INVERT + PRINTF_FONT_LARGE + PRINTF_TOPLEFT
92 DB .68, .4
93 DB "123456"
94 DB 0
95
96 call printf_inline
97 DB PRINTF_INVERT + PRINTF_FONT_LARGE + PRINTF_TOPLEFT
98 DB .124, .4
99 DB "789. "
100 DB 0,0
101
102 return
103
104 ; Back to auto-aligned code:
105 post_test code