F$LDDDXY

From NitrOS-9
Jump to: navigation, search
Get Two Bytes Load D from [D+X],[Y]
OS9 F$LDDDXY 103F 48

Entry Conditions

D offset to the offset within the DAT image

X offset within the DAT image

Y DAT image pointer

Exit Conditions

D contents of two bytes at [D+X],[Y]

Error Output

CC carry set on error

B error code, if any

Additional Information

  • Get Two Bytes loads two bytes from the address space described by the DAT image pointer. If the DAT image pointer is to the entire DAT, make D+X equal to the process address for data. If the DAT image is not the entire image (64K), you must adjust D+X relative to the beginning of the DAT image. Using D+X lets you keep a local pointer within a block, and also lets you point to an offset within the DAT image that points to a specified block number.

krn