TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: RODERICK RIENSCHE
from: WAYNE ZIMMERLE
date: 1995-09-10 13:08:00
subject: Regs Ax Ah Al

-> WZ>with the original PB3.0 manuals and I must be missing something.
->
-> Try this:
->
-> type Register       'Define type Register with high and low bytes
->   Low as byte
->   High as byte
-> end type
->
-> union WordRegister  'Define a union to join Register type with
->   byte as Register  'a word variable
->   word as word
-> end union
->
-> dim RegAX as WordRegister 'Create your variable
->
-> asm mov ax, &h0ff0  'Load AX with &h0ff0
-> asm mov RegAX, ax   'Load Your variable with contents of AX
->
-> cls
-> print hex$(RegAX.word), hex$(RegAX.byte.High), hex$(RegAX.byte.Low)
-> 'Voila!
This looks really interesting.  I'll play with it.  Thanks 
--- InterEcho 1.11
---------------
* Origin: The DataStream (Node 1), Peoria, IL (1:232/30)

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