Changeset 6a37d5b in buchla-68k


Ignore:
Timestamp:
07/15/2017 05:04:43 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
09d1345
Parents:
7bb1284
Message:

Prefer signed integers in assembly prototypes.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • include/vsdd.h

    r7bb1284 r6a37d5b  
    5555struct octent {                 /* Object control table entry */
    5656
    57         uint16_t        ysize,  /* Height of object in pixels */
     57        int16_t         ysize,  /* Height of object in pixels */
    5858                        xsize;  /* Width of object in pixels */
    5959
  • misc/proto.c

    r7bb1284 r6a37d5b  
    120120}
    121121
    122 void GLCplot(uint16_t x, uint16_t y, uint16_t val)
     122void GLCplot(int16_t x, int16_t y, int16_t val)
    123123{
    124124}
     
    140140}
    141141
    142 void objclr(uint16_t obj)
    143 {
    144 }
    145 
    146 void objoff(uint16_t obj, uint16_t line, uint16_t num)
    147 {
    148 }
    149 
    150 void objon(uint16_t obj, uint16_t line, uint16_t num)
     142void objclr(int16_t obj)
     143{
     144}
     145
     146void objoff(int16_t obj, int16_t line, int16_t num)
     147{
     148}
     149
     150void objon(int16_t obj, int16_t line, int16_t num)
    151151{
    152152}
     
    156156}
    157157
    158 void procpfl(uint16_t trig)
     158void procpfl(int16_t trig)
    159159{
    160160}
     
    182182}
    183183
    184 uint16_t setipl(uint16_t arg)
     184int16_t setipl(int16_t arg)
    185185{
    186186    return 0;
     
    241241}
    242242
    243 void vbank(uint16_t b)
    244 {
    245 }
    246 
    247 void vclrav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len)
     243void vbank(int16_t b)
     244{
     245}
     246
     247void vclrav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len)
    248248{
    249249}
     
    265265}
    266266
    267 void vputa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t attrib)
    268 {
    269 }
    270 
    271 void vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib)
    272 {
    273 }
    274 
    275 void vputcv(uint16_t *adr, uint16_t row, uint16_t col, uint8_t chr, uint16_t atr, uint16_t cols)
     267void vputa(uint16_t *obase, int16_t row, int16_t col, uint16_t attr)
     268{
     269}
     270
     271void vputc(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr)
     272{
     273}
     274
     275void vputcv(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr, int16_t cols)
    276276{
    277277}
     
    281281}
    282282
    283 void vsetav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len)
    284 {
    285 }
    286 
    287 void vsetcv(uint16_t *adr, uint16_t row, uint16_t col, uint16_t cfb, uint16_t len)
    288 {
    289 }
    290 
    291 void vsplot4(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t row, uint16_t col, int8_t *str,
    292              uint16_t pitch, uint16_t ht, int16_t cgtab[][256])
    293 {
    294 }
    295 
    296 void vvputsv(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t bg, uint16_t row, uint16_t col,
    297              int8_t *str, uint16_t pitch, uint16_t ht, int16_t cgtab[][256])
     283void vsetav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len)
     284{
     285}
     286
     287void vsetcv(uint16_t *obase, int16_t row, int16_t col, uint16_t fgbg, int16_t len)
     288{
     289}
     290
     291void vsplot4(uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str,
     292             int16_t pitch, int16_t ht, int16_t cgtab[][256])
     293{
     294}
     295
     296void vvputsv(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col,
     297             int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256])
    298298{
    299299}
  • misc/proto.x

    r7bb1284 r6a37d5b  
    5555*/
    5656
    57 extern  void            GLCplot(uint16_t x, uint16_t y, uint16_t val);
     57extern  void            GLCplot(int16_t x, int16_t y, int16_t val);
    5858extern  void            Lo_RAM(void);
    5959extern  void            VIint(void);
     
    6969extern  void            jumpto(void *addr);
    7070extern  void            longjmp(struct JMP_BUF *env, int16_t val);
    71 extern  void            objclr(uint16_t obj);
    72 extern  void            objoff(uint16_t obj, uint16_t line, uint16_t num);
    73 extern  void            objon(uint16_t obj, uint16_t line, uint16_t num);
     71extern  void            objclr(int16_t obj);
     72extern  void            objoff(int16_t obj, int16_t line, int16_t num);
     73extern  void            objon(int16_t obj, int16_t line, int16_t num);
    7474extern  void            panic(void);
    75 extern  void            procpfl(uint16_t trig);
     75extern  void            procpfl(int16_t trig);
    7676extern  int32_t         rand24(void);
    7777extern  void            rjumpto(void *addr);
    7878extern  void            se_disp(struct s_entry *ep, int16_t sd, struct gdsel *gdstb[], int16_t cf);
    7979extern  struct  s_entry *se_exec(struct s_entry *ep, int16_t sd);
    80 extern  uint16_t        setipl(uint16_t arg);
     80extern  int16_t         setipl(int16_t arg);
    8181extern  int16_t         setjmp(struct JMP_BUF *env);
    8282extern  void            setsio(void);
     
    9191extern  void            tsplot4(uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
    9292extern  int32_t         uldiv(int32_t divid, int32_t divis);
    93 extern  void            vbank(uint16_t b);
    94 extern  void            vclrav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len);
     93extern  void            vbank(int16_t b);
     94extern  void            vclrav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
    9595extern  void            vcputs(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
    9696extern  void            vcputsv(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch);
    9797extern  void            vfwait(void);
    98 extern  void            vputa(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t attrib);
    99 extern  void            vputc(uint16_t *sbase, uint16_t row, uint16_t col, uint16_t c, uint16_t attrib);
    100 extern  void            vputcv(uint16_t *adr, uint16_t row, uint16_t col, uint8_t chr, uint16_t atr, uint16_t cols);
     98extern  void            vputa(uint16_t *obase, int16_t row, int16_t col, uint16_t attr);
     99extern  void            vputc(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr);
     100extern  void            vputcv(uint16_t *obase, int16_t row, int16_t col, int16_t c, uint16_t attr, int16_t cols);
    101101extern  void            vputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
    102 extern  void            vsetav(uint16_t *adr, uint16_t row, uint16_t col, uint16_t atr, uint16_t len);
    103 extern  void            vsetcv(uint16_t *adr, uint16_t row, uint16_t col, uint16_t cfb, uint16_t len);
    104 extern  void            vsplot4(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t row, uint16_t col, int8_t *str, uint16_t pitch, uint16_t ht, int16_t cgtab[][256]);
    105 extern  void            vvputsv(uint16_t *obase, uint16_t nw, uint16_t fg, uint16_t bg, uint16_t row, uint16_t col, int8_t *str, uint16_t pitch, uint16_t ht, int16_t cgtab[][256]);
     102extern  void            vsetav(uint16_t *obase, int16_t row, int16_t col, uint16_t attr, int16_t len);
     103extern  void            vsetcv(uint16_t *obase, int16_t row, int16_t col, uint16_t fgbg, int16_t len);
     104extern  void            vsplot4(uint16_t *obase, int16_t nw, int16_t fg, int16_t row, int16_t col, int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256]);
     105extern  void            vvputsv(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str, int16_t pitch, int16_t ht, int16_t cgtab[][256]);
    106106extern  void            vwputp(struct octent *octad, int16_t xloc, int16_t yloc, int16_t val);
    107107extern  void            vwputs(uint16_t *obase, int16_t nw, int16_t fg, int16_t bg, int16_t row, int16_t col, int8_t *str);
Note: See TracChangeset for help on using the changeset viewer.