TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: Frank Malcolm
date: 1996-07-02 06:38:24
subject: Regs

Hi, Paul.

PE> FA> Just curious why is REGS a union and not a struct ? It feels like one..

PE> Because they want to overlay the word-registers with byte-registers, instea
PE> of having them take up extra space.  It doesn't feel like a normal
PE> structure, because instead of going regs.ax = 5, you have to go regs.x.ax =
PE> 5.  BFN.  Paul.

And not just to avoid taking up extra space, but actually to refer to
the same memory. So if somewhere you write regs.x.ax = 0x1234 and later
on regs.h.ah = 0x56 then you want ax to end up as 0x5634.

Regards, fIM.

 * * Woah! Was that a wormhole, or did I drink too much?
@EOT:

---
* Origin: Pedants Inc. (3:711/934.24)
SEEN-BY: 711/808 934
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

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™.