Installation guide
OS-9 V2.4 on EUROCOM-17 7 Additional Libraries
Software Manual 43
Sys$AlignPtr Align pointer to 256 byte boundary
❏ Input:
d0.w = 12 (Sys$AlignPtr function code)
d1.l = pointer to memory block
❏ Output:
d0.l = the given pointer aligned to the next 256 byte boundary
❏ Error Output:
cc = carry bit set
d1.w = error code if error
❏ Possible Errors:
E$Permit - you must belong to group 0 to use this function
❏ Function:
Normally, a pointer to a memory block is returned by a 'Request
Memory' function. It will be aligned in any way suitable for the
operating system. Some applications (i.e. Sys$BlkMove) require a
256byte alignment of all pointers. To do this, the user should issue a
memory request of the amount needed PLUS 256bytes used for the
alignment. The pointer returned by the OS is then used by
Sys$AlignPtr.