home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
mag&info
/
msjv7_6.zip
/
TOPTEN.ARJ
/
ETO.ARJ
/
ETO.COD
< prev
next >
Wrap
Text File
|
1992-10-01
|
42KB
|
1,282 lines
; File eto.c
; #include <windows.h>
;
; #include "basedefs.h"
; #include "eto.h"
;
; WINPROC WndProc ( WINDOWS_PARAMS );
;
; void TestIDM_RECT_FILLRECT ( HWND hWnd );
; void TestIDM_RECT_ETO ( HWND hWnd );
; void TestIDM_TEXT_TEXTOUT ( HWND hWnd );
; void TestIDM_TEXT_ETO ( HWND hWnd );
;
; /**************************************************************
; * *
; * Global Variables *
; * *
; **************************************************************/
;
; HANDLE ghInst;
; HWND ghWnd;
; char szNullString[] = "";
; char szAppName[] = "ETO";
; HBRUSH hRGBBrush[16];
; COLORREF dwRGB[16];
;
; /**************************************************************
; * *
; * WinMain *
; * *
; **************************************************************/
;
; int PASCAL WinMain (HANDLE hInstance, HANDLE hPrevInstance,
; LPSTR lpszCmdLine, int nCmdShow )
; {
; Line 34
; nCmdShow = 0006
; lpszCmdLine = 0008
; hPrevInstance = 000c
; hInstance = 000e
WinMain:
*** 000000 8c d8 mov ax,ds
*** 000002 90 xchg ax,ax
*** 000003 45 inc bp
*** 000004 55 push bp
*** 000005 8b ec mov bp,sp
*** 000007 1e push ds
*** 000008 8e d8 mov ds,ax
*** 00000a 81 ec 00 00 sub sp,OFFSET L01464
*** 00000e 56 push si
*** 00000f 57 push di
; i = fffa
; wndclass = ffe0
; msg = ffce
; MSG msg ;
; Line 35
; WNDCLASS wndclass ;
; Line 36
; int i;
; Line 37
;
; if (!hPrevInstance)
; Line 39
*** 000010 83 7e 0c 00 cmp WORD PTR 12[bp],OFFSET 0
*** 000014 74 03 e9 00 00 jne L01342
; {
; Line 40
; // Register the Parent Window
;
; wndclass.style = CS_BYTEALIGNCLIENT;
; Line 43
*** 000019 c7 46 e0 00 10 mov WORD PTR -32[bp],OFFSET 4096
; wndclass.lpfnWndProc = (WNDPROC)WndProc ;
; Line 44
*** 00001e c7 46 e2 00 00 mov WORD PTR -30[bp],OFFSET WndProc
*** 000023 c7 46 e4 00 00 mov WORD PTR -28[bp],SEG WndProc
; wndclass.cbClsExtra = 0 ;
; Line 45
*** 000028 c7 46 e6 00 00 mov WORD PTR -26[bp],OFFSET 0
; wndclass.cbWndExtra = 0 ;
; Line 46
*** 00002d c7 46 e8 00 00 mov WORD PTR -24[bp],OFFSET 0
; wndclass.hInstance = hInstance ;
; Line 47
*** 000032 8b 46 0e mov ax,WORD PTR 14[bp]
*** 000035 89 46 ea mov WORD PTR -22[bp],ax
; wndclass.hIcon = NULL;
; Line 48
*** 000038 c7 46 ec 00 00 mov WORD PTR -20[bp],OFFSET 0
; wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;
; Line 49
*** 00003d 6a 00 push OFFSET 0
*** 00003f 6a 00 push OFFSET 0
*** 000041 68 00 7f push OFFSET 32512
*** 000044 9a 00 00 00 00 call FAR PTR LoadCursor
*** 000049 89 46 ee mov WORD PTR -18[bp],ax
; wndclass.hbrBackground = GetStockObject ( LTGRAY_BRUSH ) ;
; Line 50
*** 00004c 6a 01 push OFFSET 1
*** 00004e 9a 00 00 00 00 call FAR PTR GetStockObject
*** 000053 89 46 f0 mov WORD PTR -16[bp],ax
; wndclass.lpszMenuName = (LPSTR)"PlainMenu" ;
; Line 51
*** 000056 b8 00 00 mov ax,OFFSET L01343
*** 000059 8c da mov dx,ds
*** 00005b 89 46 f2 mov WORD PTR -14[bp],ax
*** 00005e 89 56 f4 mov WORD PTR -12[bp],dx
; wndclass.lpszClassName = szAppName ;
; Line 52
*** 000061 b8 1c 00 mov ax,OFFSET _szAppName
*** 000064 8c da mov dx,ds
*** 000066 89 46 f6 mov WORD PTR -10[bp],ax
*** 000069 89 56 f8 mov WORD PTR -8[bp],dx
;
; if (!RegisterClass (&wndclass))
; Line 54
*** 00006c 8d 46 e0 lea ax,WORD PTR -32[bp]
*** 00006f 8c d2 mov dx,ss
*** 000071 52 push dx
*** 000072 50 push ax
*** 000073 9a 00 00 00 00 call FAR PTR RegisterClass
*** 000078 3d 00 00 cmp ax,OFFSET 0
*** 00007b 74 03 e9 00 00 jne L01344
; return FALSE;
; Line 55
*** 000080 b8 00 00 mov ax,OFFSET 0
*** 000083 e9 00 00 jmp L01338
;
; }
; Line 57
L01344:
;
; // Generate sixteen cached brushes, for each of the solid colors,
; // and fill in the dwRGB array
;
; for ( i = 0; i < 16; i++ )
; Line 62
L01342:
*** 000086 c7 46 fa 00 00 mov WORD PTR -6[bp],OFFSET 0
*** 00008b e9 00 00 jmp L01348
L01345:
; hRGBBrush[i] = CreateSolidBrush ( dwRGB[i] =
; Line 63
; RGB
; Line 64
; (
; min ((((i%8)&4)/4)*(((i%16)/8)+1)*128, 255),
; min ((((i%8)&2)/2)*(((i%16)/8)+1)*128, 255),
; min ((((i%8)&1)/1)*(((i%16)/8)+1)*128, 255)
; )
; );
; Line 70
*** 00008e b9 08 00 mov cx,OFFSET 8
*** 000091 8b 46 fa mov ax,WORD PTR -6[bp]
*** 000094 99 cwd
*** 000095 f7 f9 idiv cx
*** 000097 8b c2 mov ax,dx
*** 000099 25 01 00 and ax,OFFSET 1
*** 00009c b9 01 00 mov cx,OFFSET 1
*** 00009f 99 cwd
*** 0000a0 f7 f9 idiv cx
*** 0000a2 b9 10 00 mov cx,OFFSET 16
*** 0000a5 89 46 cc mov WORD PTR -52[bp],ax
*** 0000a8 8b 46 fa mov ax,WORD PTR -6[bp]
*** 0000ab 99 cwd
*** 0000ac f7 f9 idiv cx
*** 0000ae 8b c2 mov ax,dx
*** 0000b0 b9 08 00 mov cx,OFFSET 8
*** 0000b3 99 cwd
*** 0000b4 f7 f9 idiv cx
*** 0000b6 8b c8 mov cx,ax
*** 0000b8 83 c1 01 add cx,OFFSET 1
*** 0000bb 8b 46 cc mov ax,WORD PTR -52[bp]
*** 0000be f7 e9 imul cx
*** 0000c0 c1 e0 07 shl ax,OFFSET 7
*** 0000c3 3d ff 00 cmp ax,OFFSET 255
*** 0000c6 7c 03 e9 00 00 jge L01466
*** 0000cb b9 08 00 mov cx,OFFSET 8
*** 0000ce 8b 46 fa mov ax,WORD PTR -6[bp]
*** 0000d1 99 cwd
*** 0000d2 f7 f9 idiv cx
*** 0000d4 8b c2 mov ax,dx
*** 0000d6 25 01 00 and ax,OFFSET 1
*** 0000d9 b9 01 00 mov cx,OFFSET 1
*** 0000dc 99 cwd
*** 0000dd f7 f9 idiv cx
*** 0000df b9 10 00 mov cx,OFFSET 16
*** 0000e2 89 46 ca mov WORD PTR -54[bp],ax
*** 0000e5 8b 46 fa mov ax,WORD PTR -6[bp]
*** 0000e8 99 cwd
*** 0000e9 f7 f9 idiv cx
*** 0000eb 8b c2 mov ax,dx
*** 0000ed b9 08 00 mov cx,OFFSET 8
*** 0000f0 99 cwd
*** 0000f1 f7 f9 idiv cx
*** 0000f3 8b c8 mov cx,ax
*** 0000f5 83 c1 01 add cx,OFFSET 1
*** 0000f8 8b 46 ca mov ax,WORD PTR -54[bp]
*** 0000fb f7 e9 imul cx
*** 0000fd c1 e0 07 shl ax,OFFSET 7
*** 000100 e9 00 00 jmp L01465
L01466:
*** 000103 b8 ff 00 mov ax,OFFSET 255
L01465:
*** 000106 25 ff 00 and ax,OFFSET 255
*** 000109 ba 00 00 mov dx,OFFSET 0
*** 00010c b9 10 00 mov cx,OFFSET 16
*** 00010f 9a 00 00 00 00 call FAR PTR __aFlshl
*** 000114 89 46 c6 mov WORD PTR -58[bp],ax
*** 000117 89 56 c8 mov WORD PTR -56[bp],dx
*** 00011a b9 08 00 mov cx,OFFSET 8
*** 00011d 8b 46 fa mov ax,WORD PTR -6[bp]
*** 000120 99 cwd
*** 000121 f7 f9 idiv cx
*** 000123 8b c2 mov ax,dx
*** 000125 25 02 00 and ax,OFFSET 2
*** 000128 b9 02 00 mov cx,OFFSET 2
*** 00012b 99 cwd
*** 00012c f7 f9 idiv cx
*** 00012e b9 10 00 mov cx,OFFSET 16
*** 000131 89 46 c4 mov WORD PTR -60[bp],ax
*** 000134 8b 46 fa mov ax,WORD PTR -6[bp]
*** 000137 99 cwd
*** 000138 f7 f9 idiv cx
*** 00013a 8b c2 mov ax,dx
*** 00013c b9 08 00 mov cx,OFFSET 8
*** 00013f 99 cwd
*** 000140 f7 f9 idiv cx
*** 000142 8b c8 mov cx,ax
*** 000144 83 c1 01 add cx,OFFSET 1
*** 000147 8b 46 c4 mov ax,WORD PTR -60[bp]
*** 00014a f7 e9 imul cx
*** 00014c c1 e0 07 shl ax,OFFSET 7
*** 00014f 3d ff 00 cmp ax,OFFSET 255
*** 000152 7c 03 e9 00 00 jge L01469
*** 000157 b9 08 00 mov cx,OFFSET 8
*** 00015a 8b 46 fa mov ax,WORD PTR -6[bp]
*** 00015d 99 cwd
*** 00015e f7 f9 idiv cx
*** 000160 8b c2 mov ax,dx
*** 000162 25 02 00 and ax,OFFSET 2
*** 000165 b9 02 00 mov cx,OFFSET 2
*** 000168 99 cwd
*** 000169 f7 f9 idiv cx
*** 00016b b9 10 00 mov cx,OFFSET 16
*** 00016e 89 46 c2 mov WORD PTR -62[bp],ax
*** 000171 8b 46 fa mov ax,WORD PTR -6[bp]
*** 000174 99 cwd
*** 000175 f7 f9 idiv cx
*** 000177 8b c2 mov ax,dx
*** 000179 b9 08 00 mov cx,OFFSET 8
*** 00017c 99 cwd
*** 00017d f7 f9 idiv cx
*** 00017f 8b c8 mov cx,ax
*** 000181 83 c1 01 add cx,OFFSET 1
*** 000184 8b 46 c2 mov ax,WORD PTR -62[bp]
*** 000187 f7 e9 imul cx
*** 000189 c1 e0 07 shl ax,OFFSET 7
*** 00018c e9 00 00 jmp L01468
L01469:
*** 00018f b8 ff 00 mov ax,OFFSET 255
L01468:
*** 000192 c1 e0 08 shl ax,OFFSET 8
*** 000195 89 46 c0 mov WORD PTR -64[bp],ax
*** 000198 b9 08 00 mov cx,OFFSET 8
*** 00019b 8b 46 fa mov ax,WORD PTR -6[bp]
*** 00019e 99 cwd
*** 00019f f7 f9 idiv cx
*** 0001a1 8b c2 mov ax,dx
*** 0001a3 25 04 00 and ax,OFFSET 4
*** 0001a6 b9 04 00 mov cx,OFFSET 4
*** 0001a9 99 cwd
*** 0001aa f7 f9 idiv cx
*** 0001ac b9 10 00 mov cx,OFFSET 16
*** 0001af 89 46 be mov WORD PTR -66[bp],ax
*** 0001b2 8b 46 fa mov ax,WORD PTR -6[bp]
*** 0001b5 99 cwd
*** 0001b6 f7 f9 idiv cx
*** 0001b8 8b c2 mov ax,dx
*** 0001ba b9 08 00 mov cx,OFFSET 8
*** 0001bd 99 cwd
*** 0001be f7 f9 idiv cx
*** 0001c0 8b c8 mov cx,ax
*** 0001c2 83 c1 01 add cx,OFFSET 1
*** 0001c5 8b 46 be mov ax,WORD PTR -66[bp]
*** 0001c8 f7 e9 imul cx
*** 0001ca c1 e0 07 shl ax,OFFSET 7
*** 0001cd 3d ff 00 cmp ax,OFFSET 255
*** 0001d0 7c 03 e9 00 00 jge L01471
*** 0001d5 b9 08 00 mov cx,OFFSET 8
*** 0001d8 8b 46 fa mov ax,WORD PTR -6[bp]
*** 0001db 99 cwd
*** 0001dc f7 f9 idiv cx
*** 0001de 8b c2 mov ax,dx
*** 0001e0 25 04 00 and ax,OFFSET 4
*** 0001e3 b9 04 00 mov cx,OFFSET 4
*** 0001e6 99 cwd
*** 0001e7 f7 f9 idiv cx
*** 0001e9 b9 10 00 mov cx,OFFSET 16
*** 0001ec 89 46 bc mov WORD PTR -68[bp],ax
*** 0001ef 8b 46 fa mov ax,WORD PTR -6[bp]
*** 0001f2 99 cwd
*** 0001f3 f7 f9 idiv cx
*** 0001f5 8b c2 mov ax,dx
*** 0001f7 b9 08 00 mov cx,OFFSET 8
*** 0001fa 99 cwd
*** 0001fb f7 f9 idiv cx
*** 0001fd 8b c8 mov cx,ax
*** 0001ff 83 c1 01 add cx,OFFSET 1
*** 000202 8b 46 bc mov ax,WORD PTR -68[bp]
*** 000205 f7 e9 imul cx
*** 000207 c1 e0 07 shl ax,OFFSET 7
*** 00020a e9 00 00 jmp L01470
L01471:
*** 00020d b8 ff 00 mov ax,OFFSET 255
L01470:
*** 000210 25 ff 00 and ax,OFFSET 255
*** 000213 8b 4e c0 mov cx,WORD PTR -64[bp]
*** 000216 0b c1 or ax,cx
*** 000218 ba 00 00 mov dx,OFFSET 0
*** 00021b 8b 4e c6 mov cx,WORD PTR -58[bp]
*** 00021e 8b 5e c8 mov bx,WORD PTR -56[bp]
*** 000221 0b c1 or ax,cx
*** 000223 0b d3 or dx,bx
*** 000225 8b 5e fa mov bx,WORD PTR -6[bp]
*** 000228 d1 e3 shl bx,OFFSET 1
*** 00022a d1 e3 shl bx,OFFSET 1
*** 00022c 89 87 00 00 mov WORD PTR _dwRGB[bx],ax
*** 000230 89 97 02 00 mov WORD PTR _dwRGB+2[bx],dx
*** 000234 52 push dx
*** 000235 50 push ax
*** 000236 9a 00 00 00 00 call FAR PTR CreateSolidBrush
*** 00023b 8b 5e fa mov bx,WORD PTR -6[bp]
*** 00023e d1 e3 shl bx,OFFSET 1
*** 000240 89 87 00 00 mov WORD PTR _hRGBBrush[bx],ax
L01346:
*** 000244 83 46 fa 01 add WORD PTR -6[bp],OFFSET 1
L01348:
*** 000248 83 7e fa 10 cmp WORD PTR -6[bp],OFFSET 16
*** 00024c 7d 03 e9 3d fe jl L01345
L01347:
;
; ghInst = hInstance;
; Line 72
*** 000251 8b 46 0e mov ax,WORD PTR 14[bp]
*** 000254 a3 00 00 mov WORD PTR _ghInst,ax
;
;
; ghWnd = CreateWindow (szAppName, "Tiny Windows App",
; Line 75
; WS_OVERLAPPEDWINDOW,
; Line 76
; CW_USEDEFAULT, 0,
; Line 77
; CW_USEDEFAULT, 0,
; Line 78
; NULL, NULL, hInstance, NULL) ;
; Line 79
*** 000257 b8 1c 00 mov ax,OFFSET _szAppName
*** 00025a 8c da mov dx,ds
*** 00025c 52 push dx
*** 00025d 50 push ax
*** 00025e b8 0a 00 mov ax,OFFSET L01349
*** 000261 8c da mov dx,ds
*** 000263 52 push dx
*** 000264 50 push ax
*** 000265 68 cf 00 push OFFSET 207
*** 000268 6a 00 push OFFSET 0
*** 00026a 68 00 80 push OFFSET -32768
*** 00026d 6a 00 push OFFSET 0
*** 00026f 68 00 80 push OFFSET -32768
*** 000272 6a 00 push OFFSET 0
*** 000274 6a 00 push OFFSET 0
*** 000276 6a 00 push OFFSET 0
*** 000278 ff 76 0e push WORD PTR 14[bp]
*** 00027b 6a 00 push OFFSET 0
*** 00027d 6a 00 push OFFSET 0
*** 00027f 9a 00 00 00 00 call FAR PTR CreateWindow
*** 000284 a3 00 00 mov WORD PTR _ghWnd,ax
;
;
; ShowWindow ( ghWnd, nCmdShow );
; Line 82
*** 000287 ff 36 00 00 push WORD PTR _ghWnd
*** 00028b ff 76 06 push WORD PTR 6[bp]
*** 00028e 9a 00 00 00 00 call FAR PTR ShowWindow
; UpdateWindow ( ghWnd );
; Line 83
*** 000293 ff 36 00 00 push WORD PTR _ghWnd
*** 000297 9a 00 00 00 00 call FAR PTR UpdateWindow
;
; while (GetMessage((LPMSG)&msg, NULL, 0, 0))
; Line 85
L01351:
*** 00029c 8d 46 ce lea ax,WORD PTR -50[bp]
*** 00029f 8c d2 mov dx,ss
*** 0002a1 52 push dx
*** 0002a2 50 push ax
*** 0002a3 6a 00 push OFFSET 0
*** 0002a5 6a 00 push OFFSET 0
*** 0002a7 6a 00 push OFFSET 0
*** 0002a9 9a 00 00 00 00 call FAR PTR GetMessage
*** 0002ae 3d 00 00 cmp ax,OFFSET 0
*** 0002b1 75 03 e9 00 00 je L01352
; {
; Line 86
; TranslateMessage(&msg);
; Line 87
*** 0002b6 8d 46 ce lea ax,WORD PTR -50[bp]
*** 0002b9 8c d2 mov dx,ss
*** 0002bb 52 push dx
*** 0002bc 50 push ax
*** 0002bd 9a 00 00 00 00 call FAR PTR TranslateMessage
; DispatchMessage(&msg);
; Line 88
*** 0002c2 8d 46 ce lea ax,WORD PTR -50[bp]
*** 0002c5 8c d2 mov dx,ss
*** 0002c7 52 push dx
*** 0002c8 50 push ax
*** 0002c9 9a 00 00 00 00 call FAR PTR DispatchMessage
; }
; Line 89
; Line 89
*** 0002ce e9 cb ff jmp L01351
L01352:
;
; for ( i = 0; i < 16; i++ )
; Line 91
*** 0002d1 c7 46 fa 00 00 mov WORD PTR -6[bp],OFFSET 0
*** 0002d6 e9 00 00 jmp L01357
L01354:
; DeleteObject ( hRGBBrush[i] );
; Line 92
*** 0002d9 8b 5e fa mov bx,WORD PTR -6[bp]
*** 0002dc d1 e3 shl bx,OFFSET 1
*** 0002de ff b7 00 00 push WORD PTR _hRGBBrush[bx]
*** 0002e2 9a 00 00 00 00 call FAR PTR DeleteObject
L01355:
*** 0002e7 83 46 fa 01 add WORD PTR -6[bp],OFFSET 1
L01357:
*** 0002eb 83 7e fa 10 cmp WORD PTR -6[bp],OFFSET 16
*** 0002ef 7d 03 e9 e5 ff jl L01354
L01356:
;
; return msg.wParam ;
; Line 94
*** 0002f4 8b 46 d2 mov ax,WORD PTR -46[bp]
*** 0002f7 e9 00 00 jmp L01338
; }
; Line 95
; Line 95
L01338:
*** 0002fa 5f pop di
*** 0002fb 5e pop si
*** 0002fc 8d 66 fe lea sp,WORD PTR -2[bp]
*** 0002ff 1f pop ds
*** 000300 5d pop bp
*** 000301 4d dec bp
*** 000302 ca 0a 00 ret OFFSET 10
Local Size: 68
; Line 0
;
; /*********************************************************************
; * *
; * WndProc: Main Message Translator *
; * *
; *********************************************************************/
;
; WINPROC WndProc ( WINDOWS_PARAMS )
; {
; switch ( msg )
; {
; case WM_COMMAND :
;
; switch ( wParam )
; {
; case IDM_RECT_FILLRECT: TestIDM_RECT_FILLRECT ( hWnd ); break;
; case IDM_RECT_ETO : TestIDM_RECT_ETO ( hWnd ); break;
; case IDM_TEXT_TEXTOUT : TestIDM_TEXT_TEXTOUT ( hWnd ); break;
; case IDM_TEXT_ETO : TestIDM_TEXT_ETO ( hWnd ); break;
; }
; break;
;
; case WM_CREATE :
;
; break;
;
; case WM_DESTROY :
;
; PostQuitMessage (0) ;
; break ;
;
; default :
;
; return DefWindowProc ( hWnd, msg, wParam, lParam );
;
; }
; return 0L ;
; }
; //*************************************************************************
; //
; //
; //
; //*************************************************************************
;
; void TestIDM_RECT_FILLRECT ( HWND hWnd )
; {
; RECT r;
; int i, j;
; HDC hDC;
;
; GetClientRect ( hWnd, &r );
;
; hDC = GetDC ( hWnd );
;
; for ( j = 0; j < 3; j++ )
; for ( i = 0; i < 16; i++ )
; FillRect ( hDC, &r, hRGBBrush[i] );
;
; ReleaseDC ( hWnd, hDC );
;
; }
;
; //*************************************************************************
; //
; //
; //
; //*************************************************************************
;
; void TestIDM_RECT_ETO ( HWND hWnd )
; {
; RECT r;
; int i, j;
; HDC hDC;
;
; GetClientRect ( hWnd, &r );
;
; hDC = GetDC ( hWnd );
;
; for ( j = 0; j < 3; j++ )
; for ( i = 0; i < 16; i++ )
; {
; SetBkColor ( hDC, dwRGB[i] );
; ExtTextOut ( hDC, 0, 0, ETO_OPAQUE, &r, NULL, NULL, NULL );
; }
;
; ReleaseDC ( hWnd, hDC );
; }
;
; //*************************************************************************
; //
; //
; //
; //*************************************************************************
;
; void TestIDM_TEXT_TEXTOUT ( HWND hWnd )
; {
; RECT r;
; int i, j, k;
; HDC hDC;
; int iNumLines;
; WORD wCharHeight;
; char szTest[] = "This is a test!!!! ABCDEFGHIJKLMNOPQRSTUVWXYZ";
; int cbTest = lstrlen ( szTest );
;
; Line 104
; lParam = 0006
; wParam = 000a
; msg = 000c
; hWnd = 000e
WndProc:
*** 000306 8c d8 mov ax,ds
*** 000308 90 xchg ax,ax
*** 000309 45 inc bp
*** 00030a 55 push bp
*** 00030b 8b ec mov bp,sp
*** 00030d 1e push ds
*** 00030e 8e d8 mov ds,ax
*** 000310 81 ec 00 00 sub sp,OFFSET L01472
*** 000314 56 push si
*** 000315 57 push di
; GetClientRect ( hWnd, &r );
; Line 105
*** 000316 8b 46 0c mov ax,WORD PTR 12[bp]
*** 000319 e9 00 00 jmp L01367
;
; Line 106
; hDC = GetDC ( hWnd );
; Line 107
L01371:
;
; wCharHeight = HIWORD (GetTextExtent(hDC, szTest, cbTest));
; Line 109
*** 00031c 8b 46 0a mov ax,WORD PTR 10[bp]
*** 00031f e9 00 00 jmp L01372
;
; Line 110
; r.left = LOWORD (GetTextExtent(hDC, szTest, cbTest));
; Line 111
L01376:
*** 000322 ff 76 0e push WORD PTR 14[bp]
*** 000325 9a 00 00 00 00 call FAR PTR _TestIDM_RECT_FILLRECT
*** 00032a 83 c4 02 add sp,OFFSET 2
*** 00032d e9 00 00 jmp L01373
;
; Line 112
L01377:
*** 000330 ff 76 0e push WORD PTR 14[bp]
*** 000333 9a 00 00 00 00 call FAR PTR _TestIDM_RECT_ETO
*** 000338 83 c4 02 add sp,OFFSET 2
*** 00033b e9 00 00 jmp L01373
; iNumLines = r.bottom / wCharHeight;
; Line 113
L01378:
*** 00033e ff 76 0e push WORD PTR 14[bp]
*** 000341 9a 00 00 00 00 call FAR PTR _TestIDM_TEXT_TEXTOUT
*** 000346 83 c4 02 add sp,OFFSET 2
*** 000349 e9 00 00 jmp L01373
;
; Line 114
L01379:
*** 00034c ff 76 0e push WORD PTR 14[bp]
*** 00034f 9a 00 00 00 00 call FAR PTR _TestIDM_TEXT_ETO
*** 000354 83 c4 02 add sp,OFFSET 2
*** 000357 e9 00 00 jmp L01373
; for ( j = 0; j < 3; j++ )
; Line 115
; Line 115
*** 00035a e9 00 00 jmp L01373
L01372:
*** 00035d 3d 64 00 cmp ax,OFFSET 100
*** 000360 75 03 e9 bd ff je L01376
*** 000365 3d 65 00 cmp ax,OFFSET 101
*** 000368 75 03 e9 c3 ff je L01377
*** 00036d 3d 66 00 cmp ax,OFFSET 102
*** 000370 75 03 e9 c9 ff je L01378
*** 000375 3d 67 00 cmp ax,OFFSET 103
*** 000378 75 03 e9 cf ff je L01379
*** 00037d e9 00 00 jmp L01373
L01373:
; for ( i = 0; i < 16; i++ )
; Line 116
*** 000380 e9 00 00 jmp L01368
; {
; SetBkColor ( hDC, dwRGB[i] );
; Line 118
L01380:
; SetTextColor ( hDC, dwRGB[15-i] );
;
; Line 120
*** 000383 e9 00 00 jmp L01368
; for ( k = 0; k < iNumLines; k++ )
; {
; Line 122
L01381:
; r.top = k*wCharHeight;
; r.bottom = r.top + wCharHeight;
; Line 124
*** 000386 6a 00 push OFFSET 0
*** 000388 9a 00 00 00 00 call FAR PTR PostQuitMessage
; TextOut ( hDC, 0, k*wCharHeight, szTest, cbTest );
; Line 125
*** 00038d e9 00 00 jmp L01368
; FillRect ( hDC, &r, hRGBBrush[i] );
; }
; Line 127
L01382:
;
; }
; Line 129
*** 000390 ff 76 0e push WORD PTR 14[bp]
*** 000393 ff 76 0c push WORD PTR 12[bp]
*** 000396 ff 76 0a push WORD PTR 10[bp]
*** 000399 ff 76 08 push WORD PTR 8[bp]
*** 00039c ff 76 06 push WORD PTR 6[bp]
*** 00039f 9a 00 00 00 00 call FAR PTR DefWindowProc
*** 0003a4 e9 00 00 jmp L01366
;
; ReleaseDC ( hWnd, hDC );
; Line 131
; Line 131
*** 0003a7 e9 00 00 jmp L01368
L01367:
*** 0003aa 3d 01 00 cmp ax,OFFSET 1
*** 0003ad 75 03 e9 d1 ff je L01380
*** 0003b2 3d 02 00 cmp ax,OFFSET 2
*** 0003b5 75 03 e9 cc ff je L01381
*** 0003ba 3d 11 01 cmp ax,OFFSET 273
*** 0003bd 75 03 e9 5a ff je L01371
*** 0003c2 e9 cb ff jmp L01382
L01368:
; }
; Line 132
*** 0003c5 b8 00 00 mov ax,OFFSET 0
*** 0003c8 ba 00 00 mov dx,OFFSET 0
*** 0003cb e9 00 00 jmp L01366
;
; Line 133
; Line 133
L01366:
*** 0003ce 5f pop di
*** 0003cf 5e pop si
*** 0003d0 8d 66 fe lea sp,WORD PTR -2[bp]
*** 0003d3 1f pop ds
*** 0003d4 5d pop bp
*** 0003d5 4d dec bp
*** 0003d6 ca 0a 00 ret OFFSET 10
Local Size: 4
; Line 0
; //*************************************************************************
; //
; //
; //
; //*************************************************************************
;
; void TestIDM_TEXT_ETO ( HWND hWnd )
; {
; RECT r;
; int i, j, k;
; HDC hDC;
; int iNumLines;
; WORD wCharHeight;
; char szTest[] = "This is a test!!!! ABCDEFGHIJKLMNOPQRSTUVWXYZ";
; int cbTest = lstrlen ( szTest );
;
; GetClientRect ( hWnd, &r );
;
; hDC = GetDC ( hWnd );
;
; wCharHeight = HIWORD (GetTextExtent(hDC, szTest, cbTest));
;
; iNumLines = r.bottom / wCharHeight;
;
; for ( j = 0; j < 3; j++ )
; for ( i = 0; i < 16; i++ )
; {
; SetBkColor ( hDC, dwRGB[i] );
; SetTextColor ( hDC, dwRGB[15-i] );
;
; for ( k = 0; k < iNumLines; k++ )
; {
; r.top = k*wCharHeight;
; r.bottom = r.top + wCharHeight;
; ExtTextOut ( hDC, 0, k*wCharHeight, ETO_OPAQUE, &r, szTest, cbTest, NULL );
; }
;
; }
;
; ReleaseDC ( hWnd, hDC );
; }
;
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Line 141
; hWnd = 0006
_TestIDM_RECT_FILLRECT:
*** 0003da 8c d8 mov ax,ds
*** 0003dc 90 xchg ax,ax
*** 0003dd 45 inc bp
*** 0003de 55 push bp
*** 0003df 8b ec mov bp,sp
*** 0003e1 1e push ds
*** 0003e2 8e d8 mov ds,ax
*** 0003e4 81 ec 00 00 sub sp,OFFSET L01473
*** 0003e8 56 push si
*** 0003e9 57 push di
; hDC = fffa
; i = fff8
; r = fff0
; j = ffee
; ; Line 142
; ; Line 143
; ; Line 144
; ; ; Line 146
*** 0003ea ff 76 06 push WORD PTR 6[bp]
*** 0003ed 8d 46 f0 lea ax,WORD PTR -16[bp]
*** 0003f0 8c d2 mov dx,ss
*** 0003f2 52 push dx
*** 0003f3 50 push ax
*** 0003f4 9a 00 00 00 00 call FAR PTR GetClientRect
; ; ; Line 148
*** 0003f9 ff 76 06 push WORD PTR 6[bp]
*** 0003fc 9a 00 00 00 00 call FAR PTR GetDC
*** 000401 89 46 fa mov WORD PTR -6[bp],ax
; ; ; Line 150
*** 000404 c7 46 ee 00 00 mov WORD PTR -18[bp],OFFSET 0
*** 000409 e9 00 00 jmp L01393
L01390:
; ; Line 151
*** 00040c c7 46 f8 00 00 mov WORD PTR -8[bp],OFFSET 0
*** 000411 e9 00 00 jmp L01397
L01394:
; ; Line 152
*** 000414 ff 76 fa push WORD PTR -6[bp]
*** 000417 8d 46 f0 lea ax,WORD PTR -16[bp]
*** 00041a 8c d2 mov dx,ss
*** 00041c 52 push dx
*** 00041d 50 push ax
*** 00041e 8b 5e f8 mov bx,WORD PTR -8[bp]
*** 000421 d1 e3 shl bx,OFFSET 1
*** 000423 ff b7 00 00 push WORD PTR _hRGBBrush[bx]
*** 000427 9a 00 00 00 00 call FAR PTR FillRect
L01395:
*** 00042c 83 46 f8 01 add WORD PTR -8[bp],OFFSET 1
L01397:
*** 000430 83 7e f8 10 cmp WORD PTR -8[bp],OFFSET 16
*** 000434 7d 03 e9 db ff jl L01394
L01396:
L01391:
*** 000439 83 46 ee 01 add WORD PTR -18[bp],OFFSET 1
L01393:
*** 00043d 83 7e ee 03 cmp WORD PTR -18[bp],OFFSET 3
*** 000441 7d 03 e9 c6 ff jl L01390
L01392:
; ; ; Line 154
*** 000446 ff 76 06 push WORD PTR 6[bp]
*** 000449 ff 76 fa push WORD PTR -6[bp]
*** 00044c 9a 00 00 00 00 call FAR PTR ReleaseDC
; ; ; Line 156
; Line 156
L01385:
*** 000451 5f pop di
*** 000452 5e pop si
*** 000453 8d 66 fe lea sp,WORD PTR -2[bp]
*** 000456 1f pop ds
*** 000457 5d pop bp
*** 000458 4d dec bp
*** 000459 cb ret OFFSET 0
Local Size: 18
; Line 0
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Line 165
; hWnd = 0006
_TestIDM_RECT_ETO:
*** 00045a 8c d8 mov ax,ds
*** 00045c 90 xchg ax,ax
*** 00045d 45 inc bp
*** 00045e 55 push bp
*** 00045f 8b ec mov bp,sp
*** 000461 1e push ds
*** 000462 8e d8 mov ds,ax
*** 000464 81 ec 00 00 sub sp,OFFSET L01474
*** 000468 56 push si
*** 000469 57 push di
; hDC = fffa
; i = fff8
; r = fff0
; j = ffee
; ; Line 166
; ; Line 167
; ; Line 168
; ; ; Line 170
*** 00046a ff 76 06 push WORD PTR 6[bp]
*** 00046d 8d 46 f0 lea ax,WORD PTR -16[bp]
*** 000470 8c d2 mov dx,ss
*** 000472 52 push dx
*** 000473 50 push ax
*** 000474 9a 00 00 00 00 call FAR PTR GetClientRect
; ; ; Line 172
*** 000479 ff 76 06 push WORD PTR 6[bp]
*** 00047c 9a 00 00 00 00 call FAR PTR GetDC
*** 000481 89 46 fa mov WORD PTR -6[bp],ax
; ; ; Line 174
*** 000484 c7 46 ee 00 00 mov WORD PTR -18[bp],OFFSET 0
*** 000489 e9 00 00 jmp L01408
L01405:
; ; Line 175
*** 00048c c7 46 f8 00 00 mov WORD PTR -8[bp],OFFSET 0
*** 000491 e9 00 00 jmp L01412
L01409:
; ; Line 176
; ; Line 177
*** 000494 ff 76 fa push WORD PTR -6[bp]
*** 000497 8b 5e f8 mov bx,WORD PTR -8[bp]
*** 00049a d1 e3 shl bx,OFFSET 1
*** 00049c d1 e3 shl bx,OFFSET 1
*** 00049e ff b7 02 00 push WORD PTR _dwRGB+2[bx]
*** 0004a2 ff b7 00 00 push WORD PTR _dwRGB[bx]
*** 0004a6 9a 00 00 00 00 call FAR PTR SetBkColor
; ; Line 178
*** 0004ab ff 76 fa push WORD PTR -6[bp]
*** 0004ae 6a 00 push OFFSET 0
*** 0004b0 6a 00 push OFFSET 0
*** 0004b2 6a 02 push OFFSET 2
*** 0004b4 8d 46 f0 lea ax,WORD PTR -16[bp]
*** 0004b7 8c d2 mov dx,ss
*** 0004b9 52 push dx
*** 0004ba 50 push ax
*** 0004bb 6a 00 push OFFSET 0
*** 0004bd 6a 00 push OFFSET 0
*** 0004bf 6a 00 push OFFSET 0
*** 0004c1 6a 00 push OFFSET 0
*** 0004c3 6a 00 push OFFSET 0
*** 0004c5 9a 00 00 00 00 call FAR PTR ExtTextOut
; ; Line 179
L01410:
; Line 179
*** 0004ca 83 46 f8 01 add WORD PTR -8[bp],OFFSET 1
L01412:
*** 0004ce 83 7e f8 10 cmp WORD PTR -8[bp],OFFSET 16
*** 0004d2 7d 03 e9 bd ff jl L01409
L01411:
L01406:
; Line 179
*** 0004d7 83 46 ee 01 add WORD PTR -18[bp],OFFSET 1
L01408:
*** 0004db 83 7e ee 03 cmp WORD PTR -18[bp],OFFSET 3
*** 0004df 7d 03 e9 a8 ff jl L01405
L01407:
; ; ; Line 181
*** 0004e4 ff 76 06 push WORD PTR 6[bp]
*** 0004e7 ff 76 fa push WORD PTR -6[bp]
*** 0004ea 9a 00 00 00 00 call FAR PTR ReleaseDC
; ; Line 182
; Line 182
L01400:
*** 0004ef 5f pop di
*** 0004f0 5e pop si
*** 0004f1 8d 66 fe lea sp,WORD PTR -2[bp]
*** 0004f4 1f pop ds
*** 0004f5 5d pop bp
*** 0004f6 4d dec bp
*** 0004f7 cb ret OFFSET 0
Local Size: 18
; Line 0
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Line 191
; hWnd = 0006
_TestIDM_TEXT_TEXTOUT:
*** 0004f8 8c d8 mov ax,ds
*** 0004fa 90 xchg ax,ax
*** 0004fb 45 inc bp
*** 0004fc 55 push bp
*** 0004fd 8b ec mov bp,sp
*** 0004ff 1e push ds
*** 000500 8e d8 mov ds,ax
*** 000502 81 ec 00 00 sub sp,OFFSET L01475
*** 000506 56 push si
*** 000507 57 push di
; hDC = fffa
; cbTest = fff8
; szTest = ffca
; i = ffc8
; wCharHeight = ffc6
; r = ffbe
; j = ffbc
; k = ffba
; iNumLines = ffb8
; ; Line 192
; ; Line 193
; ; Line 194
; ; Line 195
; ; Line 196
; ; Line 197
*** 000508 6a 2e push OFFSET 46
*** 00050a b8 20 00 mov ax,OFFSET L01425
*** 00050d 8c da mov dx,ds
*** 00050f 52 push dx
*** 000510 50 push ax
*** 000511 8d 46 ca lea ax,WORD PTR -54[bp]
*** 000514 8c d2 mov dx,ss
*** 000516 52 push dx
*** 000517 50 push ax
*** 000518 9a 00 00 00 00 call FAR PTR __fmemcpy
*** 00051d 83 c4 0a add sp,OFFSET 10
; ; Line 198
*** 000520 8d 46 ca lea ax,WORD PTR -54[bp]
*** 000523 8c d2 mov dx,ss
*** 000525 52 push dx
*** 000526 50 push ax
*** 000527 9a 00 00 00 00 call FAR PTR lstrlen
*** 00052c 89 46 f8 mov WORD PTR -8[bp],ax
; ; ; Line 200
*** 00052f ff 76 06 push WORD PTR 6[bp]
*** 000532 8d 46 be lea ax,WORD PTR -66[bp]
*** 000535 8c d2 mov dx,ss
*** 000537 52 push dx
*** 000538 50 push ax
*** 000539 9a 00 00 00 00 call FAR PTR GetClientRect
; ; ; Line 202
*** 00053e ff 76 06 push WORD PTR 6[bp]
*** 000541 9a 00 00 00 00 call FAR PTR GetDC
*** 000546 89 46 fa mov WORD PTR -6[bp],ax
; ; ; Line 204
*** 000549 ff 76 fa push WORD PTR -6[bp]
*** 00054c 8d 46 ca lea ax,WORD PTR -54[bp]
*** 00054f 8c d2 mov dx,ss
*** 000551 52 push dx
*** 000552 50 push ax
*** 000553 ff 76 f8 push WORD PTR -8[bp]
*** 000556 9a 00 00 00 00 call FAR PTR GetTextExtent
*** 00055b b9 10 00 mov cx,OFFSET 16
*** 00055e 9a 00 00 00 00 call FAR PTR __aFulshr
*** 000563 25 ff ff and ax,OFFSET -1
*** 000566 83 e2 00 and dx,OFFSET 0
*** 000569 89 46 c6 mov WORD PTR -58[bp],ax
; ; ; Line 206
*** 00056c ff 76 fa push WORD PTR -6[bp]
*** 00056f 8d 46 ca lea ax,WORD PTR -54[bp]
*** 000572 8c d2 mov dx,ss
*** 000574 52 push dx
*** 000575 50 push ax
*** 000576 ff 76 f8 push WORD PTR -8[bp]
*** 000579 9a 00 00 00 00 call FAR PTR GetTextExtent
*** 00057e 89 46 be mov WORD PTR -66[bp],ax
; ; ; Line 208
*** 000581 8b 46 c4 mov ax,WORD PTR -60[bp]
*** 000584 2b d2 sub dx,dx
*** 000586 f7 76 c6 div WORD PTR -58[bp]
*** 000589 89 46 b8 mov WORD PTR -72[bp],ax
; ; ; Line 210
*** 00058c c7 46 bc 00 00 mov WORD PTR -68[bp],OFFSET 0
*** 000591 e9 00 00 jmp L01430
L01427:
; ; Line 211
*** 000594 c7 46 c8 00 00 mov WORD PTR -56[bp],OFFSET 0
*** 000599 e9 00 00 jmp L01434
L01431:
; ; Line 212
; ; Line 213
*** 00059c ff 76 fa push WORD PTR -6[bp]
*** 00059f 8b 5e c8 mov bx,WORD PTR -56[bp]
*** 0005a2 d1 e3 shl bx,OFFSET 1
*** 0005a4 d1 e3 shl bx,OFFSET 1
*** 0005a6 ff b7 02 00 push WORD PTR _dwRGB+2[bx]
*** 0005aa ff b7 00 00 push WORD PTR _dwRGB[bx]
*** 0005ae 9a 00 00 00 00 call FAR PTR SetBkColor
; ; Line 214
*** 0005b3 ff 76 fa push WORD PTR -6[bp]
*** 0005b6 bb 0f 00 mov bx,OFFSET 15
*** 0005b9 2b 5e c8 sub bx,WORD PTR -56[bp]
*** 0005bc d1 e3 shl bx,OFFSET 1
*** 0005be d1 e3 shl bx,OFFSET 1
*** 0005c0 ff b7 02 00 push WORD PTR _dwRGB+2[bx]
*** 0005c4 ff b7 00 00 push WORD PTR _dwRGB[bx]
*** 0005c8 9a 00 00 00 00 call FAR PTR SetTextColor
; ; ; Line 216
*** 0005cd c7 46 ba 00 00 mov WORD PTR -70[bp],OFFSET 0
*** 0005d2 e9 00 00 jmp L01438
L01435:
; ; Line 217
; ; Line 218
*** 0005d5 8b 46 ba mov ax,WORD PTR -70[bp]
*** 0005d8 f7 6e c6 imul WORD PTR -58[bp]
*** 0005db 89 46 c0 mov WORD PTR -64[bp],ax
; ; Line 219
*** 0005de 8b 46 c0 mov ax,WORD PTR -64[bp]
*** 0005e1 03 46 c6 add ax,WORD PTR -58[bp]
*** 0005e4 89 46 c4 mov WORD PTR -60[bp],ax
; ; Line 220
*** 0005e7 ff 76 fa push WORD PTR -6[bp]
*** 0005ea 6a 00 push OFFSET 0
*** 0005ec 8b 46 ba mov ax,WORD PTR -70[bp]
*** 0005ef f7 6e c6 imul WORD PTR -58[bp]
*** 0005f2 50 push ax
*** 0005f3 8d 46 ca lea ax,WORD PTR -54[bp]
*** 0005f6 8c d2 mov dx,ss
*** 0005f8 52 push dx
*** 0005f9 50 push ax
*** 0005fa ff 76 f8 push WORD PTR -8[bp]
*** 0005fd 9a 00 00 00 00 call FAR PTR TextOut
; ; Line 221
*** 000602 ff 76 fa push WORD PTR -6[bp]
*** 000605 8d 46 be lea ax,WORD PTR -66[bp]
*** 000608 8c d2 mov dx,ss
*** 00060a 52 push dx
*** 00060b 50 push ax
*** 00060c 8b 5e c8 mov bx,WORD PTR -56[bp]
*** 00060f d1 e3 shl bx,OFFSET 1
*** 000611 ff b7 00 00 push WORD PTR _hRGBBrush[bx]
*** 000615 9a 00 00 00 00 call FAR PTR FillRect
; ; Line 222
L01436:
; Line 222
*** 00061a 83 46 ba 01 add WORD PTR -70[bp],OFFSET 1
L01438:
*** 00061e 8b 46 b8 mov ax,WORD PTR -72[bp]
*** 000621 39 46 ba cmp WORD PTR -70[bp],ax
*** 000624 7d 03 e9 ac ff jl L01435
L01437:
; ; ; Line 224
L01432:
; Line 224
*** 000629 83 46 c8 01 add WORD PTR -56[bp],OFFSET 1
L01434:
*** 00062d 83 7e c8 10 cmp WORD PTR -56[bp],OFFSET 16
*** 000631 7d 03 e9 66 ff jl L01431
L01433:
L01428:
; Line 224
*** 000636 83 46 bc 01 add WORD PTR -68[bp],OFFSET 1
L01430:
*** 00063a 83 7e bc 03 cmp WORD PTR -68[bp],OFFSET 3
*** 00063e 7d 03 e9 51 ff jl L01427
L01429:
; ; ; Line 226
*** 000643 ff 76 06 push WORD PTR 6[bp]
*** 000646 ff 76 fa push WORD PTR -6[bp]
*** 000649 9a 00 00 00 00 call FAR PTR ReleaseDC
; ; Line 227
; Line 227
L01415:
*** 00064e 5f pop di
*** 00064f 5e pop si
*** 000650 8d 66 fe lea sp,WORD PTR -2[bp]
*** 000653 1f pop ds
*** 000654 5d pop bp
*** 000655 4d dec bp
*** 000656 cb ret OFFSET 0
Local Size: 72
; Line 0
; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; Line 236
; hWnd = 0006
_TestIDM_TEXT_ETO:
*** 000658 8c d8 mov ax,ds
*** 00065a 90 xchg ax,ax
*** 00065b 45 inc bp
*** 00065c 55 push bp
*** 00065d 8b ec mov bp,sp
*** 00065f 1e push ds
*** 000660 8e d8 mov ds,ax
*** 000662 81 ec 00 00 sub sp,OFFSET L01477
*** 000666 56 push si
*** 000667 57 push di
; hDC = fffa
; cbTest = fff8
; szTest = ffca
; i = ffc8
; wCharHeight = ffc6
; r = ffbe
; j = ffbc
; k = ffba
; iNumLines = ffb8
; ; Line 237
; ; Line 238
; ; Line 239
; ; Line 240
; ; Line 241
; ; Line 242
*** 000668 6a 2e push OFFSET 46
*** 00066a b8 4e 00 mov ax,OFFSET L01450
*** 00066d 8c da mov dx,ds
*** 00066f 52 push dx
*** 000670 50 push ax
*** 000671 8d 46 ca lea ax,WORD PTR -54[bp]
*** 000674 8c d2 mov dx,ss
*** 000676 52 push dx
*** 000677 50 push ax
*** 000678 9a 00 00 00 00 call FAR PTR __fmemcpy
*** 00067d 83 c4 0a add sp,OFFSET 10
; ; Line 243
*** 000680 8d 46 ca lea ax,WORD PTR -54[bp]
*** 000683 8c d2 mov dx,ss
*** 000685 52 push dx
*** 000686 50 push ax
*** 000687 9a 00 00 00 00 call FAR PTR lstrlen
*** 00068c 89 46 f8 mov WORD PTR -8[bp],ax
; ; ; Line 245
*** 00068f ff 76 06 push WORD PTR 6[bp]
*** 000692 8d 46 be lea ax,WORD PTR -66[bp]
*** 000695 8c d2 mov dx,ss
*** 000697 52 push dx
*** 000698 50 push ax
*** 000699 9a 00 00 00 00 call FAR PTR GetClientRect
; ; ; Line 247
*** 00069e ff 76 06 push WORD PTR 6[bp]
*** 0006a1 9a 00 00 00 00 call FAR PTR GetDC
*** 0006a6 89 46 fa mov WORD PTR -6[bp],ax
; ; ; Line 249
*** 0006a9 ff 76 fa push WORD PTR -6[bp]
*** 0006ac 8d 46 ca lea ax,WORD PTR -54[bp]
*** 0006af 8c d2 mov dx,ss
*** 0006b1 52 push dx
*** 0006b2 50 push ax
*** 0006b3 ff 76 f8 push WORD PTR -8[bp]
*** 0006b6 9a 00 00 00 00 call FAR PTR GetTextExtent
*** 0006bb b9 10 00 mov cx,OFFSET 16
*** 0006be 9a 00 00 00 00 call FAR PTR __aFulshr
*** 0006c3 25 ff ff and ax,OFFSET -1
*** 0006c6 83 e2 00 and dx,OFFSET 0
*** 0006c9 89 46 c6 mov WORD PTR -58[bp],ax
; ; ; Line 251
*** 0006cc 8b 46 c4 mov ax,WORD PTR -60[bp]
*** 0006cf 2b d2 sub dx,dx
*** 0006d1 f7 76 c6 div WORD PTR -58[bp]
*** 0006d4 89 46 b8 mov WORD PTR -72[bp],ax
; ; ; Line 253
*** 0006d7 c7 46 bc 00 00 mov WORD PTR -68[bp],OFFSET 0
*** 0006dc e9 00 00 jmp L01455
L01452:
; ; Line 254
*** 0006df c7 46 c8 00 00 mov WORD PTR -56[bp],OFFSET 0
*** 0006e4 e9 00 00 jmp L01459
L01456:
; ; Line 255
; ; Line 256
*** 0006e7 ff 76 fa push WORD PTR -6[bp]
*** 0006ea 8b 5e c8 mov bx,WORD PTR -56[bp]
*** 0006ed d1 e3 shl bx,OFFSET 1
*** 0006ef d1 e3 shl bx,OFFSET 1
*** 0006f1 ff b7 02 00 push WORD PTR _dwRGB+2[bx]
*** 0006f5 ff b7 00 00 push WORD PTR _dwRGB[bx]
*** 0006f9 9a 00 00 00 00 call FAR PTR SetBkColor
; ; Line 257
*** 0006fe ff 76 fa push WORD PTR -6[bp]
*** 000701 bb 0f 00 mov bx,OFFSET 15
*** 000704 2b 5e c8 sub bx,WORD PTR -56[bp]
*** 000707 d1 e3 shl bx,OFFSET 1
*** 000709 d1 e3 shl bx,OFFSET 1
*** 00070b ff b7 02 00 push WORD PTR _dwRGB+2[bx]
*** 00070f ff b7 00 00 push WORD PTR _dwRGB[bx]
*** 000713 9a 00 00 00 00 call FAR PTR SetTextColor
; ; ; Line 259
*** 000718 c7 46 ba 00 00 mov WORD PTR -70[bp],OFFSET 0
*** 00071d e9 00 00 jmp L01463
L01460:
; ; Line 260
; ; Line 261
*** 000720 8b 46 ba mov ax,WORD PTR -70[bp]
*** 000723 f7 6e c6 imul WORD PTR -58[bp]
*** 000726 89 46 c0 mov WORD PTR -64[bp],ax
; ; Line 262
*** 000729 8b 46 c0 mov ax,WORD PTR -64[bp]
*** 00072c 03 46 c6 add ax,WORD PTR -58[bp]
*** 00072f 89 46 c4 mov WORD PTR -60[bp],ax
; ; Line 263
*** 000732 ff 76 fa push WORD PTR -6[bp]
*** 000735 6a 00 push OFFSET 0
*** 000737 8b 46 ba mov ax,WORD PTR -70[bp]
*** 00073a f7 6e c6 imul WORD PTR -58[bp]
*** 00073d 50 push ax
*** 00073e 6a 02 push OFFSET 2
*** 000740 8d 46 be lea ax,WORD PTR -66[bp]
*** 000743 8c d2 mov dx,ss
*** 000745 52 push dx
*** 000746 50 push ax
*** 000747 8d 46 ca lea ax,WORD PTR -54[bp]
*** 00074a 8c d2 mov dx,ss
*** 00074c 52 push dx
*** 00074d 50 push ax
*** 00074e 8b 46 f8 mov ax,WORD PTR -8[bp]
*** 000751 50 push ax
*** 000752 6a 00 push OFFSET 0
*** 000754 6a 00 push OFFSET 0
*** 000756 9a 00 00 00 00 call FAR PTR ExtTextOut
; ; Line 264
L01461:
; Line 264
*** 00075b 83 46 ba 01 add WORD PTR -70[bp],OFFSET 1
L01463:
*** 00075f 8b 46 b8 mov ax,WORD PTR -72[bp]
*** 000762 39 46 ba cmp WORD PTR -70[bp],ax
*** 000765 7d 03 e9 b6 ff jl L01460
L01462:
; ; ; Line 266
L01457:
; Line 266
*** 00076a 83 46 c8 01 add WORD PTR -56[bp],OFFSET 1
L01459:
*** 00076e 83 7e c8 10 cmp WORD PTR -56[bp],OFFSET 16
*** 000772 7d 03 e9 70 ff jl L01456
L01458:
L01453:
; Line 266
*** 000777 83 46 bc 01 add WORD PTR -68[bp],OFFSET 1
L01455:
*** 00077b 83 7e bc 03 cmp WORD PTR -68[bp],OFFSET 3
*** 00077f 7d 03 e9 5b ff jl L01452
L01454:
; ; ; Line 268
*** 000784 ff 76 06 push WORD PTR 6[bp]
*** 000787 ff 76 fa push WORD PTR -6[bp]
*** 00078a 9a 00 00 00 00 call FAR PTR ReleaseDC
; ; Line 269
; Line 269
L01441:
*** 00078f 5f pop di
*** 000790 5e pop si
*** 000791 8d 66 fe lea sp,WORD PTR -2[bp]
*** 000794 1f pop ds
*** 000795 5d pop bp
*** 000796 4d dec bp
*** 000797 cb ret OFFSET 0
Local Size: 72
; Line 0