OSDN Git Service

nmi display bug.
authorastoria-d <astoria-d@mail.goo.ne.jp>
Wed, 5 Oct 2016 13:36:20 +0000 (22:36 +0900)
committerastoria-d <astoria-d@mail.goo.ne.jp>
Wed, 5 Oct 2016 13:36:20 +0000 (22:36 +0900)
emulator/debug.c

index 71a4118..58f96e7 100644 (file)
@@ -275,7 +275,7 @@ void disasm(const char* mnemonic, int addr_mode, unsigned short pc, struct cpu_6
 
     char full_reg[256];
     if (d5_disas)
-        printf("%04x%012lx ", (0xff & get_nmi_cnt()),
+        printf("%04x%012lx ", (0xffff & get_nmi_cnt()),
         (unsigned long)(0x0000ffffffffffffff & get_clock_cnt()));
 
     if (d2_short == TRUE) {