-> 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)
|