comparison code_part1/OSTC_code_asm_part1/strings.inc @ 123:6a94f96e9cea

The big cleanup, again.
author JeanDo
date Thu, 30 Dec 2010 23:45:20 +0100
parents dc349e4264bb
children cdba979821ee
comparison
equal deleted inserted replaced
122:3003a8040b78 123:6a94f96e9cea
90 call strcat_block 90 call strcat_block
91 DB string, 0 91 DB string, 0
92 endm 92 endm
93 93
94 ;============================================================================= 94 ;=============================================================================
95 ; A variant of STRCAT when there is just on char to output
96 ; Input/Output/Trashed : none.
97 PUTC macro char
98 movlw char
99 movwf POSTINC2
100 endm
101
102 ;=============================================================================
95 ; A variant of STRCPY that send the string to the word processor afterwards. 103 ; A variant of STRCPY that send the string to the word processor afterwards.
96 ; Input/Output: see STRCPY. 104 ; Input/Output: see STRCPY.
97 ; Trashed: See STRCPY + word_processor. In particular, switch RAM to Bank1 105 ; Trashed: See STRCPY + word_processor. In particular, switch RAM to Bank1
98 ; 106 ;
99 STRCPY_PRINT macro string 107 STRCPY_PRINT macro string
141 149
142 WIN_LARGE_INVERT macro x, y 150 WIN_LARGE_INVERT macro x, y
143 call start_large_invert_block 151 call start_large_invert_block
144 DB x, y 152 DB x, y
145 endm 153 endm
154
155 ;=============================================================================
156 ; A shortcut for PLED_box and PLED_frame call sequences.
157 ;
158 ; Erase a given screen area.
159 WIN_BOX_BLACK macro top, bottom, left, right
160 call box_black_block
161 db top, (bottom)-(top)+1, left, (right)-(left)+1
162 endm
163
164 ; Fill a given screen area with standard color (CF35).
165 WIN_BOX_STD macro top, bottom, left, right
166 call box_std_block
167 db top, (bottom)-(top)+1, left, (right)-(left)+1
168 endm
169
170 ; Fill a given screen area with color from WREG (8bits rrrgggbb)
171 WIN_BOX_COLOR macro top, bottom, left, right
172 call box_color_block
173 db top, (bottom)-(top)+1, left, (right)-(left)+1
174 endm
175
176 ; Draw a frame in standard color (CF35).
177 WIN_FRAME_STD macro top, bottom, left, right
178 call box_frame_std
179 db top, (bottom)-(top)+1, left, (right)-(left)+1
180 endm
181
182