As stated above: please read the documentation, of CPCTELERA and SDCC (as linked), maybe the library has the commands you need so you don't have to implement them ?
Reading examples, manuals, trying it - development is NOT "hey write me what I want in this tool".
I have not much spare time for my cpc hobby and if I don't see "learning" just questions (here and in the german part of this forum, and even there in ENGLISH and not GERMAN) - well ...
Seems we got "CPCMAN" from german wiki replicated here. I'm out until the questions show a bit of understandment and self-effort.