TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ALL
from: JAVIER KOHEN
date: 1997-07-31 15:23:00
subject: C++ or ASM?

I  was playing with my C++ compiler and I found myself writing this:
        v_screen = static_cast
                (const_cast(MK_FP(0xA000, 0x0000)));
Complicated? Yes, at least for me. I was curious what the asembly output
will be, so I've got this:
        mov        dword ptr DGROUP:v_screen,large 0A0000000h
Pretty shorter.
I think those C++ casts are purely cosmetic... ;-)
Would be:
        v_screen = 0xA0000000;
portable from 16 bit to 32 bit compilers?
Javier Kohen  [The_Crusher] http://jkohen.base.org
... COBOL programmers understand why women hate periods
-!- CrusherTag 0.3.2.
--- Terminate 4.00/Pro
---------------
* Origin: The King of The Ring (4:900/748.3)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.