OSDN Git Service

[VM][FMTOWNS] Add "USE_NOTIFY_POWER_OFF" feature around I/O 0020h "POFF" .
authorK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 20 Jan 2023 13:45:38 +0000 (22:45 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Fri, 20 Jan 2023 13:45:38 +0000 (22:45 +0900)
This also add notify power off from EMU:: to GUI via OSD:: .

source/src/vm/fmtowns/fmtowns.h
source/src/vm/fmtowns/towns_memory.cpp

index 9931f65..4364d0c 100644 (file)
 //#define _IO_DEBUG_LOG
 
 // device informations for win32
+#define USE_NOTIFY_POWER_OFF
 #define USE_CPU_TYPE                   2
 #define USE_FLOPPY_DISK                        4 // ??
 #define USE_CART                               2
index 4d3126b..b6beb74 100644 (file)
@@ -556,6 +556,7 @@ void TOWNS_MEMORY::write_io8(uint32_t addr, uint32_t data)
                                d_cpu->set_shutdown_flag(1);
                        }
                        // Todo: Implement true power off.
+                       emu->notify_power_off();
 //                     emu->power_off();
                } else {
                        poff_status = false;