This vector initialises procedures and functions into the Basic name table and the Basic name list.
Call Parameters | Return Parameters | ||
---|---|---|---|
D3.L | Not used | D3.L | |
A1.L | Pointer to definition list | A1.L | Corrupted. |
A6.L | The usual Basic pointer | A6.L | May be updated |
No errors are returned by this vector call.
defs dc.w procnum ; Number of procedures (roughly) ; Then for each procedure dc.w proutine-* ; Relative pointer to routine dc.b proclen ; Length of procedure name dc.b procname ; Procedure name ; Followed by: dc.w 0 ; Signals end of procedures dc.w funcnum ; Number of functions (roughly) ; Then for each function dc.w froutine-* ; Relative pointer to routine dc.b funclen ; Length of function name dc.b funcname ; Function name ; Followed by: dc.w 0 ; Signals end of functions
The example below shows the use of this trap .
lea defs ; Definition List movea.w BP_INIT,a1 jmp (a1) ; Add new keywords and return to BASIC