Hey Ken I know you're really busy, but I'd like to run this by you, since ASCIIPIXELS is your library!
I haven't actually tried to use this yet... I wanted to see if you had any suggestions about the opcode names or anything else. /*AP.H *ASCIIPIXELS interface to SmallC-85 *Part of M100SmallClib *ASCIIPIXELS by Ken Pettit * *Willard Goosey *[email protected] * *10/12/2017 */ /*$Id: ap.h,v 1.1 2017/10/13 04:04:15 goosey Exp goosey $ */ /*Please refer to AP_DOC.TXT for full documentation on ASCPIX*/ /*This isn't as pretty as I'd like since smallc-85's preprocessor *only does simple macros :-( */ #define ASCPIX 58000 /*entry point*/ /*call as bcall(ASCPIX,OPCODE,OPERAND) */ /*opcodes in A, arguement in HL*/ #define INIT_CURSOR 8 /*argument: Cursor number (0,1,2) */ #define CURSOR_ON 6 /*argument: y*256+x) #define CURSOR_OFF 7 /*argument: none */ #define SET_RENDER 1 #define SET_RENDER_OFFSET 128 /*argument: y*256+x *also works as bcall(ASCPIX,y+128,x) */ #define RENDER_STRING 2 /*argument: VARPTR(A$) *see varptr_string.h */ #define RENDER_FILE 3 /*argument VARPTR($filename) *see varptr_string.h */ #define RENDER_RESOURCE 4 /*argument: VARPTR($resource_name) *see varptr_string.h */ #define RESOURCE_FILENAME 5 /*argument: VARPTR($filename) *see varptr_string.h */ /*eof ap.h*/ Also, pbm2ap? AWESOME I love the netpbm tools! :-) Willard -- Willard Goosey [email protected] Socorro, New Mexico, USA I search my heart and find Cimmeria, land of Darkness and the Night. -- R.E. Howard
