upd765.h: remove unused variable

This commit is contained in:
hap 2024-04-06 13:40:32 +02:00
parent 99ef097d67
commit c790916022
2 changed files with 3 additions and 3 deletions

View file

@ -483,7 +483,7 @@ void upd765_family_device::tdr_w(uint8_t data)
uint8_t upd765_family_device::msr_r()
{
uint32_t msr = 0;
uint8_t msr = 0;
switch(main_phase) {
case PHASE_CMD:
msr |= MSR_RQM;
@ -540,7 +540,7 @@ uint8_t upd765_family_device::fifo_r()
switch(main_phase) {
case PHASE_CMD:
if(machine().side_effects_disabled())
return 0x00;
return 0xff;
if(command_pos)
fifo_w(0xff);
LOGFIFO("fifo_r in command phase\n");

View file

@ -245,7 +245,7 @@ protected:
int fifo_pos, fifo_expected, command_pos, result_pos, sectors_read;
bool fifo_write;
uint8_t dor, dsr, msr, fifo[16], command[16], result[16];
uint8_t dor, dsr, fifo[16], command[16], result[16];
uint8_t st1, st2, st3;
uint8_t fifocfg;
uint8_t precomp;