OSDN Git Service

[VM][FMR50] .
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 8 Feb 2017 05:33:32 +0000 (14:33 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 8 Feb 2017 05:33:32 +0000 (14:33 +0900)
source/src/vm/fmr50/CMakeLists.txt
source/src/vm/fmr50/bios.cpp
source/src/vm/fmr50/memory.cpp

index 12c121f..69a7425 100644 (file)
@@ -11,4 +11,5 @@ add_library(vm_fmr50
        scsi.cpp
        timer.cpp
        fmr50.cpp
-)
\ No newline at end of file
+       
+)
index 69ed7fd..c76f349 100644 (file)
@@ -313,9 +313,10 @@ bool BIOS::bios_call_i86(uint32_t PC, uint16_t regs[], uint16_t sregs[], int32_t
        
        if(PC == 0xfffc4) {
                // disk bios
-#ifdef _DEBUG_LOG
-               emu->out_debug_log(_T("%6x\tDISK BIOS: AH=%2x,AL=%2x,CX=%4x,DX=%4x,BX=%4x,DS=%2x,DI=%2x\n"), get_cpu_pc(0), AH,AL,CX,DX,BX,DS,DI);
-#endif
+//#ifdef _DEBUG_LOG
+//             emu->out_debug_log(_T("%6x\tDISK BIOS: AH=%2x,AL=%2x,CX=%4x,DX=%4x,BX=%4x,DS=%2x,DI=%2x\n"), get_cpu_pc(0), AH,AL,CX,DX,BX,DS,DI);
+               //printf(_T("%6x\tDISK BIOS: AH=%2x,AL=%2x,CX=%4x,DX=%4x,BX=%4x,DS=%2x,DI=%2x\n"), get_cpu_pc(0), AH,AL,CX,DX,BX,DS,DI);
+//#endif
                if(AH == 2) {
                        // drive status
                        if((AL & 0xf0) == 0x20) {
@@ -1077,6 +1078,7 @@ bool BIOS::bios_int_i86(int intnum, uint16_t regs[], uint16_t sregs[], int32_t*
        
        if(intnum == 0x93) {
                // disk bios
+       printf("INT 93H\n");
                return bios_call_i86(0xfffc4, regs, sregs, ZeroFlag, CarryFlag);
        }
        return false;
index 45684ac..dc3a99d 100644 (file)
@@ -479,6 +479,7 @@ uint32_t MEMORY::read_data8(uint32_t addr)
                }
        }
 #endif
+       //printf("@@@@@ ADDRESS=%08x DATA=%02x\n", addr, rbank[addr >> 11][addr & 0x7ff]);
        return rbank[addr >> 11][addr & 0x7ff];
 }