| version 1.2, 2003/10/21 11:22:05 | version 1.4, 2003/12/08 00:55:34 | 
| Line 3 | Line 3 | 
 | #include        "np2.h" | #include        "np2.h" | 
 | #include        "viewer.h" | #include        "viewer.h" | 
 | #include        "viewcmn.h" | #include        "viewcmn.h" | 
| #include        "i286.h" | #include        "cpucore.h" | 
 |  |  | 
 |  |  | 
 | static  char            np2viewclass[] = "NP2-ViewWindow"; | static  char            np2viewclass[] = "NP2-ViewWindow"; | 
| Line 202  BOOL viewer_init(HINSTANCE hPreInst) { | Line 202  BOOL viewer_init(HINSTANCE hPreInst) { | 
 | np2vc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON2)); | np2vc.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON2)); | 
 | np2vc.hCursor = LoadCursor(NULL, IDC_ARROW); | np2vc.hCursor = LoadCursor(NULL, IDC_ARROW); | 
 | np2vc.hbrBackground = (HBRUSH)0; | np2vc.hbrBackground = (HBRUSH)0; | 
| np2vc.lpszMenuName = MAKEINTRESOURCE(IDM_VIEW); | np2vc.lpszMenuName = MAKEINTRESOURCE(IDR_VIEW); | 
 | np2vc.lpszClassName = np2viewclass; | np2vc.lpszClassName = np2viewclass; | 
 | if (!RegisterClass(&np2vc)) { | if (!RegisterClass(&np2vc)) { | 
 | return(FAILURE); | return(FAILURE); | 
| Line 275  static DWORD last = 0; | Line 275  static DWORD last = 0; | 
 | for (i=0; i<NP2VIEW_MAX; i++, view++) { | for (i=0; i<NP2VIEW_MAX; i++, view++) { | 
 | if ((view->alive) && (!view->lock)) { | if ((view->alive) && (!view->lock)) { | 
 | if (view->type == VIEWMODE_ASM) { | if (view->type == VIEWMODE_ASM) { | 
| view->seg = I286_CS; | view->seg = CPU_CS; | 
| view->off = I286_IP; | view->off = CPU_IP; | 
 | view->pos = 0; | view->pos = 0; | 
 | viewcmn_setvscroll(view->hwnd, view); | viewcmn_setvscroll(view->hwnd, view); | 
 | } | } |