Last change
on this file since 4b63bf3 was 8c8b4e5, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
More volatile hardware accesses.
|
-
Property mode
set to
100644
|
File size:
911 bytes
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | vclrs.c -- clear a VSDD text line to a specified value
|
---|
| 4 | Version 2 -- 1987-04-15 -- D.N. Lynx Crowe
|
---|
| 5 | (c) Copyright 1987 -- D.N. Lynx Crowe
|
---|
| 6 |
|
---|
| 7 | vclrs(obase, row, col, nc, ch, atr)
|
---|
| 8 |
|
---|
| 9 | Clear 'nc' characters in the text object 'obase' to 'ch',
|
---|
| 10 | using atrributes 'atr', starting at ('row','col');
|
---|
| 11 |
|
---|
| 12 | No error checking is done, so beware.
|
---|
| 13 | =============================================================================
|
---|
| 14 | */
|
---|
| 15 |
|
---|
[b28a12e] | 16 | #include "ram.h"
|
---|
[f40a309] | 17 |
|
---|
| 18 | /*
|
---|
| 19 | =============================================================================
|
---|
| 20 | vclrs(obase, row, col, nc, ch, atr) -- clear a line on the VSDD
|
---|
| 21 | =============================================================================
|
---|
| 22 | */
|
---|
| 23 |
|
---|
[8c8b4e5] | 24 | void vclrs(volatile uint16_t *obase, int16_t row, int16_t col, int16_t nc, int16_t ch, uint16_t attr)
|
---|
[f40a309] | 25 | {
|
---|
| 26 | while (nc--)
|
---|
[09d1345] | 27 | vputc(obase, row, col++, ch, attr);
|
---|
[f40a309] | 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.