X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libsrc%2Fatari%2Fmcbtxtchar.s;h=3c992000c5f96fd12a5d4dd193dd8981f608534f;hb=db8bd84a82992d7d29fdd46443c194c1d8ea37fd;hp=90a25f673dc8b952a78935bff274e42178fb6a94;hpb=88e3e60550c47bee0c070d0aee74a88f6eee123e;p=cc65 diff --git a/libsrc/atari/mcbtxtchar.s b/libsrc/atari/mcbtxtchar.s index 90a25f673..3c992000c 100644 --- a/libsrc/atari/mcbtxtchar.s +++ b/libsrc/atari/mcbtxtchar.s @@ -12,7 +12,7 @@ .export _mouse_txt_callbacks .importzp tmp4 - .import mul40,loc_tmp + .import __mul40 .importzp mouse_txt_char ; screen code of mouse cursor .include "atari.inc" @@ -104,22 +104,15 @@ movex: ; Move the mouse cursor y position to the value in A/X. movey: - tax - ldy tmp4 ; mul40 uses tmp4 - lda loc_tmp ; and this local variable - pha - txa ; get parameter back + ldy tmp4 ; mul40 uses tmp4, save in Y lsr a ; convert y position to character line lsr a lsr a - jsr mul40 - clc + jsr __mul40 ; carry is cleared by _mul40 adc SAVMSC sta scrptr txa adc SAVMSC+1 sta scrptr+1 - pla - sta loc_tmp - sty tmp4 + sty tmp4 ; restore tmp4 rts