Changeset 09d1345 in buchla-68k for vlib/vputsv.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/vputsv.c
r6a37d5b r09d1345 16 16 /* 17 17 ============================================================================= 18 vputsv( sbase, row, col, str, attrib, len)18 vputsv(obase, row, col, str, attr, len) 19 19 20 Write string str to video RAM object pointed to by sbase21 at (row,col) with attr ibused for all characters. Line length is len.20 Write string str to video RAM object pointed to by obase 21 at (row,col) with attr used for all characters. Line length is len. 22 22 ============================================================================= 23 23 */ 24 24 25 void vputsv(uint16_t * sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t attrib, uint16_t len)25 void vputsv(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr, int16_t len) 26 26 { 27 uint16_t c;27 int16_t c; 28 28 29 29 while (c = *str++) { 30 30 31 vputcv( sbase, row, col, c, attrib, len);31 vputcv(obase, row, col, c, attr, len); 32 32 33 33 if (++col GE 64) { … … 43 43 /* 44 44 ============================================================================= 45 vputsav( sbase, row, col, str, attrib, len)45 vputsav(obase, row, col, str, attr, len) 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 Line length is len. 50 50 ============================================================================= 51 51 */ 52 52 53 void vputsav(uint16_t * sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t *attrib, uint16_t len)53 void vputsav(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr, int16_t len) 54 54 { 55 uint16_t c;55 int16_t c; 56 56 57 57 while (c = *str++) { 58 58 59 vputcv( sbase, row, col, c, *attrib++, len);59 vputcv(obase, row, col, c, *attr++, len); 60 60 61 61 if (++col GE 64) {
Note:
See TracChangeset
for help on using the changeset viewer.