--- np2/win9x/debuguty/viewer.cpp 2003/10/16 17:59:09 1.1.1.1 +++ np2/win9x/debuguty/viewer.cpp 2003/12/08 00:55:34 1.4 @@ -1,9 +1,10 @@ #include "compiler.h" #include "resource.h" #include "np2.h" -#include "i286.h" #include "viewer.h" #include "viewcmn.h" +#include "cpucore.h" + static char np2viewclass[] = "NP2-ViewWindow"; NP2VIEW_T np2view[NP2VIEW_MAX]; @@ -201,7 +202,7 @@ BOOL viewer_init(HINSTANCE hPreInst) { np2vc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON2)); np2vc.hCursor = LoadCursor(NULL, IDC_ARROW); np2vc.hbrBackground = (HBRUSH)0; - np2vc.lpszMenuName = MAKEINTRESOURCE(IDM_VIEW); + np2vc.lpszMenuName = MAKEINTRESOURCE(IDR_VIEW); np2vc.lpszClassName = np2viewclass; if (!RegisterClass(&np2vc)) { return(FAILURE); @@ -274,8 +275,8 @@ static DWORD last = 0; for (i=0; ialive) && (!view->lock)) { if (view->type == VIEWMODE_ASM) { - view->seg = I286_CS; - view->off = I286_IP; + view->seg = CPU_CS; + view->off = CPU_IP; view->pos = 0; viewcmn_setvscroll(view->hwnd, view); }