> From: Erik Reuter <[EMAIL PROTECTED]>
>
> On Wed, Feb 26, 2003 at 02:51:48PM +0000, Jose J. Ortiz-Carlo wrote:
>
> > You have to agree, though, that the *mother* of all incomprehensible
> > programming languages has to be Assembly language.
>
> No, I disagree, seriously. Assembly language was the easiest language I
> have learned. Tedious to use, but easy to understand. It followed what
> was going on in the CPU in a straightforward manner, little
abstraction.
There are less C keywords than ASM instructions. Simple is always
better.
c:
if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) // message to process
{
if (!GetMessage(&msg, NULL, 0, 0)) return msg.wParam;
TranslateMessage(&msg);
DispatchMessage(&msg);
asm:
; 502 : if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) //
message to process
00059 6a 00 push 0
0005b 6a 00 push 0
0005d 6a 00 push 0
0005f 6a 00 push 0
00061 8d 4d e4 lea ecx, DWORD PTR _msg$[ebp]
00064 51 push ecx
00065 ff 15 00 00 00
00 call DWORD PTR [EMAIL PROTECTED]
0006b 85 c0 test eax, eax
0006d 74 35 je SHORT $L37207
; 504 : if (!GetMessage(&msg, NULL, 0, 0)) return
msg.wParam;
0006f 6a 00 push 0
00071 6a 00 push 0
00073 6a 00 push 0
00075 8d 55 e4 lea edx, DWORD PTR _msg$[ebp]
00078 52 push edx
00079 ff 15 00 00 00
00 call DWORD PTR [EMAIL PROTECTED]
0007f 85 c0 test eax, eax
00081 75 08 jne SHORT $L37208
00083 8b 45 ec mov eax, DWORD PTR _msg$[ebp+8]
00086 e9 25 01 00 00 jmp $L37206
$L37208:
; 505 : TranslateMessage(&msg);
0008b 8d 45 e4 lea eax, DWORD PTR _msg$[ebp]
0008e 50 push eax
0008f ff 15 00 00 00
00 call DWORD PTR [EMAIL PROTECTED]
; 506 : DispatchMessage(&msg);
00095 8d 4d e4 lea ecx, DWORD PTR _msg$[ebp]
00098 51 push ecx
00099 ff 15 00 00 00
00 call DWORD PTR [EMAIL PROTECTED]
_______________________________________________
http://www.mccmedia.com/mailman/listinfo/brin-l