2 ; Christian Kruger, 20-May-2018
4 ; CC65 runtime: Pop 2 bytes from stack to ptr1.
5 ; X is untouched, low byte in A, Y is defined to be 0!
13 .proc popptr1 ; 14 bytes (four usages = at least 2 bytes saved)
15 lda (sp),y ; get hi byte
16 sta ptr1+1 ; into ptr hi
17 dey ; no optimization for 65C02 here to have Y=0 at exit!
18 lda (sp),y ; get lo byte