comparison rf5c164.h @ 2145:62a53c052d9b

PCM channel add should saturate on overflow, not wrap around
author Michael Pavone <pavone@retrodev.com>
date Sat, 26 Mar 2022 02:01:55 -0700
parents 485834c0fea7
children 4fbe1e7c4a73
comparison
equal deleted inserted replaced
2144:10e4439d8f13 2145:62a53c052d9b
15 uint32_t cycle; 15 uint32_t cycle;
16 uint32_t clock_step; 16 uint32_t clock_step;
17 uint16_t ram[64*1024]; 17 uint16_t ram[64*1024];
18 uint16_t ram_bank; 18 uint16_t ram_bank;
19 uint16_t pending_address; 19 uint16_t pending_address;
20 int16_t left; 20 int32_t left;
21 int16_t right; 21 int32_t right;
22 rf5c164_channel channels[8]; 22 rf5c164_channel channels[8];
23 uint8_t pending_byte; 23 uint8_t pending_byte;
24 uint8_t channel_enable; 24 uint8_t channel_enable;
25 uint8_t selected_channel; 25 uint8_t selected_channel;
26 uint8_t cur_channel; 26 uint8_t cur_channel;