Changeset 09d1345 in buchla-68k for vlib/vputsv.c


Ignore:
Timestamp:
07/15/2017 10:03:02 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
bf89cfb
Parents:
6a37d5b
Message:

Prefer signed integers in vlib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlib/vputsv.c

    r6a37d5b r09d1345  
    1616/*
    1717   =============================================================================
    18         vputsv(sbase, row, col, str, attrib, len)
     18        vputsv(obase, row, col, str, attr, len)
    1919
    20         Write string str to video RAM object pointed to by sbase
    21         at (row,col) with attrib used 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.
    2222   =============================================================================
    2323*/
    2424
    25 void vputsv(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t attrib, uint16_t len)
     25void vputsv(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr, int16_t len)
    2626{
    27         uint16_t        c;
     27        int16_t c;
    2828
    2929        while (c = *str++) {
    3030
    31                 vputcv(sbase, row, col, c, attrib, len);
     31                vputcv(obase, row, col, c, attr, len);
    3232
    3333                if (++col GE 64) {
     
    4343/*
    4444   =============================================================================
    45         vputsav(sbase, row, col, str, attrib, len)
     45        vputsav(obase, row, col, str, attr, len)
    4646
    47         Write string str in video RAM pointed to by sbase starting
    48         at (row, col) using attributes from the words pointed to by attrib.
     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.
    4949        Line length is len.
    5050   =============================================================================
    5151*/
    5252
    53 void vputsav(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t *attrib, uint16_t len)
     53void vputsav(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr, int16_t len)
    5454{
    55         uint16_t        c;
     55        int16_t c;
    5656
    5757        while (c = *str++) {
    5858
    59                 vputcv(sbase, row, col, c, *attrib++, len);
     59                vputcv(obase, row, col, c, *attr++, len);
    6060
    6161                if (++col GE 64) {
Note: See TracChangeset for help on using the changeset viewer.