--- nono/m88xx0/m88100.h 2026/04/29 17:04:34 1.1.1.2 +++ nono/m88xx0/m88100.h 2026/04/29 17:04:38 1.1.1.3 @@ -221,8 +221,13 @@ class m88kcpu : public m88100reg void WriteDataException(uint32 addr, uint32 data, uint32 flag); void XmemDataException(uint32 addr, uint32 data, uint32 flag); - // ブランチ履歴 - BranchHistory brhist {}; + // 例外名を返す + static const char *GetExceptionName(int vector); + + // ブランチ履歴 (例外履歴を含む) + BranchHistory_m88xx0 brhist {}; + // 例外履歴のみ + BranchHistory_m88xx0 exhist {}; // FPU bool IsFPUEnable() { return !(psr & PSR_SFD1); } @@ -258,6 +263,9 @@ OP_PROTO(illegal); void op_unimpl() { printf("unimplemented op XIP=%08x opX=%08x\n", xip, (uint32)opX); } + + // 例外名 + static const char * const exception_names[]; }; // とりあえず