]> git.sesse.net Git - pistorm/commitdiff
Update piscsi.c
authorbeeanyew <beeanyew@gmail.com>
Fri, 29 Jan 2021 13:32:32 +0000 (14:32 +0100)
committerbeeanyew <beeanyew@gmail.com>
Fri, 29 Jan 2021 13:32:32 +0000 (14:32 +0100)
platforms/amiga/piscsi/piscsi.c

index c7239aea55fa9e2d9e5a4b9c1f7cab1493575f3f..4337c69afa58c27d49166f39756b31c63ca9abe0 100644 (file)
@@ -240,8 +240,8 @@ uint32_t handle_piscsi_read(uint32_t addr, uint8_t type) {
                     printf("%.4X\n", v);
                     break;
                 case OP_TYPE_LONGWORD:
-                    //v = (*((uint16_t *)&diag_area[romoffs - 14]) << 16) | *((uint16_t *)&diag_area[romoffs - 12]);
-                    v = be32toh(*((uint32_t *)&diag_area[romoffs - PIB]));
+                    //v = (*((uint16_t *)&piscsi_rom_ptr[romoffs - 14]) << 16) | *((uint16_t *)&piscsi_rom_ptr[romoffs - 12]);
+                    v = be32toh(*((uint32_t *)&piscsi_rom_ptr[romoffs - PIB]));
                     printf("%.8X\n", v);
                     break;
             }