Installation guide
OS-9 V2.4 on EUROCOM-17 7 Additional Libraries
Software Manual 51
align_ptr() Align a given pointer to a 256 byte boundary
❏ Synopsis:
long *align_ptr (pointer)
long *pointer;
❏ Usage:
Normally, a pointer to a memory block is returned by a 'Request
Memory' function, e.g. malloc(). It will be aligned in any way suitable
for the operating system. Some applications (i.e. blk_move()) require
a 256-byte 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
align_ptr().
❏ See Also:
F$System system call
set_disp() Set digit of hex display
❏ Synopsis:
int blk_move (digit)
unsigned digit; /* Digit for hex display */
❏ Usage:
This function writes the value of 'digit' into the boards hex display.
❏ See Also:
F$System system call
get_swt() Return the contents of the boards hex switches
❏ Synopsis:
int get_swt()
❏ Usage:
Returns the contents of the boards hex switches, which are located at
the front panel. The contents of the lower hex switch is located in the
lower nibble of the return value.
❏ See Also:
F$System system call