Rev 2515 | Rev 2547 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2515 | Rev 2536 | ||
---|---|---|---|
Line 192... | Line 192... | ||
192 | ============ Function 4 - draw text string in the window. ============ |
192 | ============ Function 4 - draw text string in the window. ============ |
193 | ====================================================================== |
193 | ====================================================================== |
194 | Parameters: |
194 | Parameters: |
195 | * eax = 4 - function number |
195 | * eax = 4 - function number |
196 | * ebx = [coordinate on axis x]*65536 + [coordinate on axis y] |
196 | * ebx = [coordinate on axis x]*65536 + [coordinate on axis y] |
197 | * ecx = 0xX0RRGGBB, where |
197 | * ecx = 0xXYRRGGBB, where |
198 | * RR, GG, BB specify text color |
198 | * RR, GG, BB specify text color |
199 | * X=ABnn (bits): |
199 | * X=ABnn (bits): |
200 | * nn specifies the used font: 0=system monospaced, |
200 | * nn specifies the used font: 0=system monospaced, |
201 | 1=system font of variable width |
201 | 1=system font of variable width |
202 | * A=0 - output esi characters, A=1 - output ASCIIZ-string |
202 | * A=0 - output esi characters, A=1 - output ASCIIZ-string |
203 | * B=1 - fill background with the color edi |
203 | * B=1 - fill background with the color edi |
- | 204 | * Y = Cnnn |
|
- | 205 | * C=1 redirect the output to the user area, specified in edi |
|
- | 206 | * nnn - not used in the current, must be 0 (zero) |
|
204 | * edx = pointer to the beginning of the string |
207 | * edx = pointer to the beginning of the string |
205 | * esi = for A=0 length of the string, must not exceed 255; |
208 | * esi = for A=0 length of the string, must not exceed 255; |
206 | for A=1 is ignored |
209 | for A=1 is ignored |
- | 210 | * edi = color to fill background, if B=1 |
|
- | 211 | * edi = pointer to user area, for redirect, if C=1 |
|
- | 212 | ||
207 | Returned value: |
213 | Returned value: |
208 | * function does not return value |
214 | * function does not return value |
209 | Remarks: |
215 | Remarks: |
210 | * First system font is read out at loading from the file char.mt, |
216 | * First system font is read out at loading from the file char.mt, |
211 | second - from char2.mt. |
217 | second - from char2.mt. |
212 | * Both fonts have height 9 pixels, width of the monospaced font |
218 | * Both fonts have height 9 pixels, width of the monospaced font |
213 | is equal to 6 pixels. |
219 | is equal to 6 pixels. |
- | 220 | * C=1, pixel depth = 32 bits, user area is as follows: |
|
- | 221 | dword Xsize |
|
- | 222 | dword Ysize |
|
- | 223 | rest of the area = Xsize * Y size * 4 |
|
- | 224 | * You can not use B = 1 and C = 1, at the same time. Since in both |
|
- | 225 | cases, the register edi is used for different purposes. |
|
Line 214... | Line 226... | ||
214 | 226 | ||
215 | ====================================================================== |
227 | ====================================================================== |
216 | ========================= Function 5 - delay. ======================== |
228 | ========================= Function 5 - delay. ======================== |
217 | ====================================================================== |
229 | ====================================================================== |