From 4ad35cf43bc0cd251dc1cee502fb2184559d6225 Mon Sep 17 00:00:00 2001 From: angelosa Date: Wed, 21 Aug 2024 08:55:25 +0200 Subject: m6502/m6510.cpp: initialize CPU port to all output Software list items promoted to working --------------------------------------- c64_cart.xml: Pitfall II: The Lost Caverns [Angelo Salese] --- hash/c64_cart.xml | 6 ++---- src/devices/cpu/m6502/m4510.cpp | 6 +++--- src/devices/cpu/m6502/m6510.cpp | 6 +++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/hash/c64_cart.xml b/hash/c64_cart.xml index cabf30490f9..d8d940f9ae1 100644 --- a/hash/c64_cart.xml +++ b/hash/c64_cart.xml @@ -3218,14 +3218,12 @@ Fails detecting [VIC] collsion detection at the end of stage 2 "the tunnel of fe - + Pitfall II: The Lost Caverns 1984 Activision - + diff --git a/src/devices/cpu/m6502/m4510.cpp b/src/devices/cpu/m6502/m4510.cpp index 02fde4bf88c..4e6f97b56e4 100644 --- a/src/devices/cpu/m6502/m4510.cpp +++ b/src/devices/cpu/m6502/m4510.cpp @@ -73,9 +73,9 @@ void m4510_device::device_reset() nomap = true; m65ce02_device::device_reset(); - dir = 0x00; - port = 0x00; - drive = 0x00; + dir = 0xff; + port = 0xff; + drive = 0xff; update_port(); } diff --git a/src/devices/cpu/m6502/m6510.cpp b/src/devices/cpu/m6502/m6510.cpp index fa9d36731c5..c54965a2f04 100644 --- a/src/devices/cpu/m6502/m6510.cpp +++ b/src/devices/cpu/m6502/m6510.cpp @@ -64,9 +64,9 @@ void m6510_device::device_start() void m6510_device::device_reset() { m6502_device::device_reset(); - dir = 0x00; - port = 0x00; - drive = 0x00; + dir = 0xff; + port = 0xff; + drive = 0xff; update_port(); } -- cgit v1.2.3