Changeset 09d1345 in buchla-68k for vlib/vputs.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/vputs.c

    r6a37d5b r09d1345  
    1616/*
    1717   =============================================================================
    18         vputs(sbase, row, col, str, attrib)
     18        vputs(obase, row, col, str, attrib)
    1919
    20         Write string str to video RAM object pointed to by sbase
    21         at (row,col) with attrib used 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.
    2222   =============================================================================
    2323*/
    2424
    25 void vputs(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t attrib)
     25void vputs(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr)
    2626{
    27         uint16_t        c;
     27        int16_t c;
    2828
    2929        while (c = *str++) {
    3030
    31                 vputc(sbase, row, col, c, attrib);
     31                vputc(obase, row, col, c, attr);
    3232
    3333                if (++col GE 64) {
     
    4343/*
    4444   =============================================================================
    45         vputsa(sbase, row, col, str, attrib)
     45        vputsa(obase, row, col, str, attrib)
    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   =============================================================================
    5050*/
    5151
    52 void vputsa(uint16_t *sbase, uint16_t row, uint16_t col, int8_t *str, uint16_t *attrib)
     52void vputsa(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr)
    5353{
    54         uint16_t        c;
     54        int16_t c;
    5555
    5656        while (c = *str++) {
    5757
    58                 vputc(sbase, row, col, c, *attrib++);
     58                vputc(obase, row, col, c, *attr++);
    5959
    6060                if (++col GE 64) {
Note: See TracChangeset for help on using the changeset viewer.