Changeset 8c8b4e5 in buchla-68k for vlib


Ignore:
Timestamp:
09/17/2017 05:01:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
432327d
Parents:
5c4721b
Message:

More volatile hardware accesses.

Location:
vlib
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • vlib/vbfill4.c

    r5c4721b r8c8b4e5  
    2727};
    2828
    29 void vbfill4(uint16_t *obj, int16_t obwidth, int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax, uint16_t color)
     29void vbfill4(volatile uint16_t *obj, int16_t obwidth, int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax, uint16_t color)
    3030{
    3131        int16_t mw, nl, width;
    3232
    33         register uint16_t *fwp, *wp;
    34 
    35         register uint16_t lmask, rmask;
    36         register int16_t i, j;
     33        volatile uint16_t *fwp, *wp;
     34
     35        uint16_t lmask, rmask;
     36        int16_t i, j;
    3737
    3838        fwp = obj + (int32_t)(xmin >> 2) + ((int32_t)ymin * obwidth);
  • vlib/vbfill4.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vbfill4(uint16_t *obj, int16_t obwidth, int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax, uint16_t color);
     17extern  void            vbfill4(volatile uint16_t *obj, int16_t obwidth, int16_t xmin, int16_t ymin, int16_t xmax, int16_t ymax, uint16_t color);
  • vlib/vclrs.c

    r5c4721b r8c8b4e5  
    2222*/
    2323
    24 void vclrs(uint16_t *obase, int16_t row, int16_t col, int16_t nc, int16_t ch, uint16_t attr)
     24void vclrs(volatile uint16_t *obase, int16_t row, int16_t col, int16_t nc, int16_t ch, uint16_t attr)
    2525{
    2626        while (nc--)
  • vlib/vclrs.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vclrs(uint16_t *obase, int16_t row, int16_t col, int16_t nc, int16_t ch, uint16_t attr);
     17extern  void            vclrs(volatile uint16_t *obase, int16_t row, int16_t col, int16_t nc, int16_t ch, uint16_t attr);
  • vlib/vmput.c

    r5c4721b r8c8b4e5  
    1616*/
    1717
    18 void vmput(uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t ma)
     18void vmput(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t ma)
    1919{
    2020        register int16_t c, tc, tr;
     
    4141*/
    4242
    43 void vmputa(uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t *ma[])
     43void vmputa(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t *ma[])
    4444{
    4545        register int16_t c, tc, tr;
  • vlib/vmput.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vmput(uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t ma);
    18 extern  void            vmputa(uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t *ma[]);
     17extern  void            vmput(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t ma);
     18extern  void            vmputa(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *ms[], uint16_t *ma[]);
  • vlib/vobjfns.c

    r5c4721b r8c8b4e5  
    121121*/
    122122
    123 void SetObj(int16_t obj, int16_t type, int16_t bank, uint16_t *base, int16_t xpix, int16_t ypix, int16_t x0, int16_t y0, uint16_t flags, int16_t pri)
     123void SetObj(int16_t obj, int16_t type, int16_t bank, volatile uint16_t *base, int16_t xpix, int16_t ypix, int16_t x0, int16_t y0, uint16_t flags, int16_t pri)
    124124{
    125125        register struct octent *op;
     
    216216*/
    217217
    218 void CpyObj(uint16_t *from, uint16_t *to, int16_t w, int16_t h, int16_t sw)
    219 {
    220         register uint16_t *tp;
    221         register int16_t i, j;
     218void CpyObj(volatile uint16_t *from, volatile uint16_t *to, int16_t w, int16_t h, int16_t sw)
     219{
     220        volatile uint16_t *tp;
     221        int16_t i, j;
    222222
    223223        for (i = h; i--; ) {
  • vlib/vobjfns.x

    r5c4721b r8c8b4e5  
    2525*/
    2626
    27 extern  void            CpyObj(uint16_t *from, uint16_t *to, int16_t w, int16_t h, int16_t sw);
     27extern  void            CpyObj(volatile uint16_t *from, volatile uint16_t *to, int16_t w, int16_t h, int16_t sw);
    2828extern  void            SelObj(int16_t obj);
    29 extern  void            SetObj(int16_t obj, int16_t type, int16_t bank, uint16_t *base, int16_t xpix, int16_t ypix, int16_t x0, int16_t y0, uint16_t flags, int16_t pri);
     29extern  void            SetObj(int16_t obj, int16_t type, int16_t bank, volatile uint16_t *base, int16_t xpix, int16_t ypix, int16_t x0, int16_t y0, uint16_t flags, int16_t pri);
    3030extern  void            SetPri(int16_t obj, int16_t pri);
  • vlib/vputs.c

    r5c4721b r8c8b4e5  
    2323*/
    2424
    25 void vputs(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr)
     25void vputs(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr)
    2626{
    2727        int16_t c;
     
    5050*/
    5151
    52 void vputsa(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr)
     52void vputsa(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr)
    5353{
    5454        int16_t c;
  • vlib/vputs.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vputs(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr);
    18 extern  void            vputsa(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr);
     17extern  void            vputs(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr);
     18extern  void            vputsa(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr);
  • vlib/vputsv.c

    r5c4721b r8c8b4e5  
    2323*/
    2424
    25 void vputsv(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr, int16_t len)
     25void vputsv(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr, int16_t len)
    2626{
    2727        int16_t c;
     
    5151*/
    5252
    53 void vputsav(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr, int16_t len)
     53void vputsav(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr, int16_t len)
    5454{
    5555        int16_t c;
  • vlib/vputsv.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vputsav(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr, int16_t len);
    18 extern  void            vputsv(uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr, int16_t len);
     17extern  void            vputsav(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t *attr, int16_t len);
     18extern  void            vputsv(volatile uint16_t *obase, int16_t row, int16_t col, int8_t *str, uint16_t attr, int16_t len);
  • vlib/vspray4.c

    r5c4721b r8c8b4e5  
    2525*/
    2626
    27 void vspray4(uint16_t *vobj, int16_t vwid, int16_t fg, int8_t *ml[], int16_t vb, int16_t pitch)
     27void vspray4(volatile uint16_t *vobj, int16_t vwid, int16_t fg, int8_t *ml[], int16_t vb, int16_t pitch)
    2828{
    2929        register int8_t *cp, *lp, c;
  • vlib/vspray4.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vspray4(uint16_t *vobj, int16_t vwid, int16_t fg, int8_t *ml[], int16_t vb, int16_t pitch);
     17extern  void            vspray4(volatile uint16_t *vobj, int16_t vwid, int16_t fg, int8_t *ml[], int16_t vb, int16_t pitch);
  • vlib/vtext.c

    r5c4721b r8c8b4e5  
    1212static uint16_t msk[] = { 0xFF00, 0x00FF };
    1313
    14 void vtext(uint16_t *obj, int16_t nc, int16_t row, int16_t col, int8_t *ip)
     14void vtext(volatile uint16_t *obj, int16_t nc, int16_t row, int16_t col, int8_t *ip)
    1515{
    16         register uint16_t *op;
     16        volatile uint16_t *op;
    1717
    1818        while (*ip) {
  • vlib/vtext.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vtext(uint16_t *obj, int16_t nc, int16_t row, int16_t col, int8_t *ip);
     17extern  void            vtext(volatile uint16_t *obj, int16_t nc, int16_t row, int16_t col, int8_t *ip);
  • vlib/vwputm.c

    r5c4721b r8c8b4e5  
    2424*/
    2525
    26 void vwputm(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *ml[])
     26void vwputm(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *ml[])
    2727{
    2828        while (*ml) {
  • vlib/vwputm.x

    r5c4721b r8c8b4e5  
    1515*/
    1616
    17 extern  void            vwputm(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *ml[]);
     17extern  void            vwputm(volatile uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *ml[]);
Note: See TracChangeset for help on using the changeset viewer.