Difference between revisions of "AMOSi:Struc"
Spellcoder (talk | contribs) m (1 revision(s)) |
Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile) |
(No difference)
|
Revision as of 02:45, 17 November 2007
STRUC provides you with a simple way of assigning a value to any one of the elements of a system structure.
value=Struc(address,"offset_name")
Struc(address,"offset_name")=value
address holds the address of your structure in memory. This will usually be returned by either a LIB BASE or a DEV BASE function.
Offset_Name is the name of the relevant data object from the appropriate manual.
The name will be converted into the offset number by AMOS Basic using the powerful auto-equate system. You'll therefore need to include a SET EQUATE BANK command near the start of your program in order to initialise this feature.