This is an old version from the tos.hyp. The new is on GitHub!

HomeLine-ABITBLTPut pixel

6.5 Initialization

Name: »Line-A initialization«
Line-A number: $A000
Syntax: See 'Bindings for linea_init'
Description: This Line-A function serves to inquire the address of the Line-A parameter block.
Return value: The function returns in d0 and a0 a pointer to the parameter block. In a1 a pointer to a field with 3 addresses of the system fonts will be returned, and in a2 a pointer to the start addresses of the Line-A routines.

Note: Some bindings, as that from TC, for instance, do not return the addresses to the caller, but set the parameters for the call of the Line-A functions themselves internally.
Availability: All TOS versions.
See also: Binding   LINEA

6.5.1 Bindings for linea_init

Pure-C: void linea_init( void );
Assembler:
movem.l   D0-D2/A0-A2,-(A7)  ; Save registers
dc.w      $A000              ; Line-A opcode
move.l    A0,pParamblk       ; Pointer parameter block LINEA
move.l    A1,pFnthdr         ; Pointer system fonts
move.l    a2,pFktadr         ; Pointer start addr. Line-A routines
movem.l   (a7)+,d0-d2/a0-a2  ; Restore registers

HomeLine-ABITBLTPut pixel