Changeset bf89cfb in buchla-68k for vlib/vobjfns.c
- Timestamp:
- 07/15/2017 11:15:58 AM (7 years ago)
- Branches:
- master
- Children:
- c80943f
- Parents:
- 09d1345
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlib/vobjfns.c
r09d1345 rbf89cfb 6 6 7 7 SelObj(obj) 8 int obj;9 8 10 9 Select 'obj' as the current working object. 11 10 12 11 SetPri(obj, pri) 13 int obj, pri;14 12 15 13 Display object 'obj' with priority 'pri'. 16 14 17 15 SetObj(obj, type, bank, base, xpix, ypix, x0, y0, flags, pri) 18 int obj, type, bank, xpix, ypix, x0, y0, flags, pri;19 unsigned int *base;20 16 21 17 Setup object 'obj' of type 'type' at 'base' in bank 'bank' … … 27 23 28 24 CpyObj(from, to, w, h, sw) 29 unsigned int *from, *to;30 int w, h, sw;31 25 32 26 Copy a 'w'-word by 'h'-line object from 'from' to 'to' with … … 51 45 #include "ram.h" 52 46 47 typedef void (**intvec)(void); 48 53 49 int16_t wsize; /* object width calculated by SetObj() */ 54 50 int16_t vi_dis; /* disable use of VIint */ … … 96 92 97 93 op = &v_obtab[obj]; /* point at the object table */ 98 op->opri = pri;/* set the priority */94 op->opri = (int8_t)pri; /* set the priority */ 99 95 100 96 v_odtab[pri][0] = op->odtw0 | V_BLA; /* start object as blanked */ 101 97 v_odtab[pri][1] = op->odtw1; 102 v_odtab[pri][2] = ( (int32_t)op->obase >> 1) & 0xFFFF;98 v_odtab[pri][2] = (uint16_t)(((int32_t)op->obase >> 1) & 0xFFFF); 103 99 104 100 objon(pri, op->objy, op->ysize); /* enable access table bits */ … … 111 107 vi_ctl |= (1u << pri); /* set unblank bit */ 112 108 113 if (*( (int32_t *)0x000064)NE &VIint) /* make sure VI vector is set */109 if (*(intvec)0x000064 NE &VIint) /* make sure VI vector is set */ 114 110 BIOS(B_SETV, 25, VIint); 115 111 … … 142 138 op->objy = y0; 143 139 op->obase = base; 144 op->opri = pri;140 op->opri = (int8_t)pri; 145 141 op->obank = bank & 3; 146 142
Note:
See TracChangeset
for help on using the changeset viewer.