ch376 lib ca65 syntax You need to link with ptr1 in zero page if you use it with assembly. In C, ptr1 is linked when you compile