2 ; Ullrich von Bassewitz, 05.08.1998
3 ; Christian Krueger, 11-Mar-2017, added 65SC02 optimization
5 ; CC65 runtime: long sub reversed
11 .export tosrsub0ax, tosrsubeax
13 .importzp sp, sreg, tmp1
18 .if (.cpu .bitand ::CPU_ISET_65SC02)
29 .if (.cpu .bitand ::CPU_ISET_65SC02)
37 sta tmp1 ; use as temp storage
50 jmp addysp1 ; drop TOS