Changeset 081eee0 in buchla-68k
- Timestamp:
- 11/12/2017 09:23:46 PM (7 years ago)
- Branches:
- master
- Children:
- cdb0f36
- Parents:
- 522c363
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/puteq.c
r522c363 r081eee0 62 62 int16_t i; 63 63 volatile uint8_t *psg; 64 int 8_t eqdata;64 int16_t eqdata; 65 65 66 66 psg = &io_tone; … … 82 82 83 83 *(psg + PSG_ADDR) = PSG_PRTB; 84 *(psg + PSG_WRIT) = eqdata;84 *(psg + PSG_WRIT) = (uint8_t)eqdata; 85 85 86 86 eqdata |= EQ_CLK; /* set clock high */ 87 87 88 88 *(psg + PSG_ADDR) = PSG_PRTB; 89 *(psg + PSG_WRIT) = eqdata;89 *(psg + PSG_WRIT) = (uint8_t)eqdata; 90 90 91 91 byte >>= 1; /* shift next bit into LSB */ … … 95 95 96 96 *(psg + PSG_ADDR) = PSG_PRTB; 97 *(psg + PSG_WRIT) = eqdata;97 *(psg + PSG_WRIT) = (uint8_t)eqdata; 98 98 99 99 eqdata |= EQ_STB; /* set strobe high */ 100 100 101 101 *(psg + PSG_ADDR) = PSG_PRTB; 102 *(psg + PSG_WRIT) = eqdata;102 *(psg + PSG_WRIT) = (uint8_t)eqdata; 103 103 } 104 104
Note:
See TracChangeset
for help on using the changeset viewer.