Changeset 09d1345 in buchla-68k for vlib/vputs.c
- Timestamp:
- 07/15/2017 10:03:02 AM (7 years ago)
- Branches:
- master
- Children:
- bf89cfb
- Parents:
- 6a37d5b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlib/vputs.c
r6a37d5b r09d1345 16 16 /* 17 17 ============================================================================= 18 vputs( sbase, row, col, str, attrib)18 vputs(obase, row, col, str, attrib) 19 19 20 Write string str to video RAM object pointed to by sbase21 at (row,col) with attr ibused for all characters.20 Write string str to video RAM object pointed to by obase 21 at (row,col) with attr used for all characters. 22 22 ============================================================================= 23 23 */ 24 24 25 void vputs(uint16_t * sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t attrib)25 void vputs(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr) 26 26 { 27 uint16_t c;27 int16_t c; 28 28 29 29 while (c = *str++) { 30 30 31 vputc( sbase, row, col, c, attrib);31 vputc(obase, row, col, c, attr); 32 32 33 33 if (++col GE 64) { … … 43 43 /* 44 44 ============================================================================= 45 vputsa( sbase, row, col, str, attrib)45 vputsa(obase, row, col, str, attrib) 46 46 47 Write string str in video RAM pointed to by sbase starting48 at (row, col) using attributes from the words pointed to by attr ib.47 Write string str in video RAM pointed to by obase starting 48 at (row, col) using attributes from the words pointed to by attr. 49 49 ============================================================================= 50 50 */ 51 51 52 void vputsa(uint16_t * sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t *attrib)52 void vputsa(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr) 53 53 { 54 uint16_t c;54 int16_t c; 55 55 56 56 while (c = *str++) { 57 57 58 vputc( sbase, row, col, c, *attrib++);58 vputc(obase, row, col, c, *attr++); 59 59 60 60 if (++col GE 64) {
Note:
See TracChangeset
for help on using the changeset viewer.