Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherrytree56567 committed Oct 27, 2023
1 parent c390b29 commit 8520d23
Show file tree
Hide file tree
Showing 20 changed files with 649 additions and 936 deletions.
15 changes: 1 addition & 14 deletions PSEMU/Bus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,9 @@ uint16_t Bus::load16(uint8_t addr) {
uint32_t Bus::dma_reg(uint32_t offset) {
auto major = (offset & 0x70) >> 4;
auto minor = offset & 0xf;
auto channel = dma.channels[dma.from_index(major)];
switch (major) {
case 0:
auto channel = dma.channels[dma.from_index(major)];

switch (minor) {
case 8:
return channel.control();
Expand All @@ -201,8 +200,6 @@ uint32_t Bus::dma_reg(uint32_t offset) {
}

case 1:
auto channel = dma.channels[dma.from_index(major)];

switch (minor) {
case 8:
return channel.control();
Expand All @@ -213,8 +210,6 @@ uint32_t Bus::dma_reg(uint32_t offset) {
}

case 2:
auto channel = dma.channels[dma.from_index(major)];

switch (minor) {
case 8:
return channel.control();
Expand All @@ -225,8 +220,6 @@ uint32_t Bus::dma_reg(uint32_t offset) {
}

case 3:
auto channel = dma.channels[dma.from_index(major)];

switch (minor) {
case 8:
return channel.control();
Expand All @@ -237,8 +230,6 @@ uint32_t Bus::dma_reg(uint32_t offset) {
}

case 4:
auto channel = dma.channels[dma.from_index(major)];

switch (minor) {
case 8:
return channel.control();
Expand All @@ -249,8 +240,6 @@ uint32_t Bus::dma_reg(uint32_t offset) {
}

case 5:
auto channel = dma.channels[dma.from_index(major)];

switch (minor) {
case 8:
return channel.control();
Expand All @@ -261,8 +250,6 @@ uint32_t Bus::dma_reg(uint32_t offset) {
}

case 6:
auto channel = dma.channels[dma.from_index(major)];

switch (minor) {
case 8:
return channel.control();
Expand Down
Loading

0 comments on commit 8520d23

Please sign in to comment.