|
|
| version 1.3, 2003/12/08 00:55:34 | version 1.5, 2004/04/08 13:08:23 |
|---|---|
| Line 29 static void viewasm_paint(NP2VIEW_T *vie | Line 29 static void viewasm_paint(NP2VIEW_T *vie |
| BYTE buf[16]; | BYTE buf[16]; |
| char str[16]; | char str[16]; |
| HFONT hfont; | HFONT hfont; |
| PREFIX_T fix; | BOOL opsize; |
| UNASM_T una; | _UNASM una; |
| int step; | int step; |
| hfont = CreateFont(16, 0, 0, 0, 0, 0, 0, 0, | hfont = CreateFont(16, 0, 0, 0, 0, 0, 0, 0, |
| Line 73 static void viewasm_paint(NP2VIEW_T *vie | Line 73 static void viewasm_paint(NP2VIEW_T *vie |
| view->buf2.type = ALLOCTYPE_ASM; | view->buf2.type = ALLOCTYPE_ASM; |
| view->buf2.arg = seg4 + view->off; | view->buf2.arg = seg4 + view->off; |
| off = view->off; | off = view->off; |
| unasm_reset(&fix); | |
| for (i=0; i<255; i++) { | for (i=0; i<255; i++) { |
| off &= 0xffff; | off &= 0xffff; |
| *r++ = off; | *r++ = off; |
| Line 91 static void viewasm_paint(NP2VIEW_T *vie | Line 90 static void viewasm_paint(NP2VIEW_T *vie |
| p = buf; | p = buf; |
| viewmem_read(&(view->dmem), seg4 + off, buf, 16); | viewmem_read(&(view->dmem), seg4 + off, buf, 16); |
| } | } |
| step = unasm(off, p, &fix, NULL); | step = unasm(NULL, p, 16, FALSE, off); |
| off += (WORD)step; | off += (WORD)step; |
| } | } |
| *r = off; | *r = off; |
| Line 106 static void viewasm_paint(NP2VIEW_T *vie | Line 105 static void viewasm_paint(NP2VIEW_T *vie |
| off = view->off; | off = view->off; |
| } | } |
| unasm_reset(&fix); | |
| for (y=0; y<rc->bottom; y+=16) { | for (y=0; y<rc->bottom; y+=16) { |
| wsprintf(str, "%04x:%04x", view->seg, off); | wsprintf(str, "%04x:%04x", view->seg, off); |
| TextOut(hdc, 0, y, str, 9); | TextOut(hdc, 0, y, str, 9); |
| Line 125 static void viewasm_paint(NP2VIEW_T *vie | Line 123 static void viewasm_paint(NP2VIEW_T *vie |
| p = buf; | p = buf; |
| viewmem_read(&(view->dmem), seg4 + off, buf, 16); | viewmem_read(&(view->dmem), seg4 + off, buf, 16); |
| } | } |
| step = unasm(off, p, &fix, &una); | step = unasm(&una, p, 16, FALSE, off); |
| if (!step) { | if (!step) { |
| break; | break; |
| } | } |
| Line 223 void viewasm_init(NP2VIEW_T *dst, NP2VIE | Line 221 void viewasm_init(NP2VIEW_T *dst, NP2VIE |
| dst->mul = 1; | dst->mul = 1; |
| dst->pos = 0; | dst->pos = 0; |
| } | } |