1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-30 23:50:04 +00:00
C02/doc/template.txt

37 lines
1.0 KiB
Plaintext
Raw Normal View History

Template Functions for C02 Programs
This is a template for the documentation of a C02 library module.
At the beginning of the program use the directives
#include <stddef.h02>
#include <template.h02>
The following functions are defined:
c,d,e = func(a,&d); Stores the input value a and the address of d
in memory.
Returns three bytes read from memory.
Note: Writes argument a to variable arg0,
the address of d to variables adr0 and adr1,
and returns the values of variables var0,
var1, and var2.
Note: This library expects the following functions to be defined:
ext(); External function description
along with the zero page variables
zpage0,zpage1: Zero page variable pair
the external variables
exvar0,exvar1: External variable pair
and the constants
#CNSTNAME Constant description