Removed wrong inheritance of SCDP and SCBR from Disk class (#948)

* Fixed TODOs, updated SCBR and SCDP

* Introduced ByteWriter interface

* Use accessors instead of directly accessing length/block fields
This commit is contained in:
Uwe Seimet
2022-10-29 18:10:00 +02:00
committed by GitHub
parent c1f63c6745
commit 6e35577368
20 changed files with 148 additions and 169 deletions

View File

@@ -981,7 +981,7 @@ int GPIOBUS::GetCommandByteCount(BYTE opcode)
return 16;
} else if (opcode == 0xA0) {
return 12;
} else if (opcode == 0x05 || (opcode >= 0x20 && opcode <= 0x7D)) {
} else if (opcode >= 0x20 && opcode <= 0x7D) {
return 10;
} else {
return 6;

View File

@@ -13,6 +13,7 @@
#include "config.h"
#include "scsi.h"
#include "bus.h"
#include <array>
#ifdef __linux__
@@ -47,7 +48,7 @@
#define GPIO_FUNCTION_TRACE
#endif
using namespace std; // NOSONAR Not relevant for rascsi
using namespace std;
//---------------------------------------------------------------------------
//