From: Stefan Date: Tue, 23 Jan 2018 12:02:47 +0000 (+0100) Subject: Moved initcgetc to initcputc X-Git-Tag: V2.17~42^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=caa40866c3ebdf3d2540b072aac1462d6afe9b33;p=cc65 Moved initcgetc to initcputc --- diff --git a/libsrc/atmos/cgetc.s b/libsrc/atmos/cgetc.s index f1d727a50..72cd9407a 100644 --- a/libsrc/atmos/cgetc.s +++ b/libsrc/atmos/cgetc.s @@ -6,7 +6,6 @@ ; .export _cgetc - .constructor initcgetc .import cursor .forceimport disable_caps @@ -53,14 +52,3 @@ @L3: rts .endproc - -; ------------------------------------------------------------------------ -; Switch the cursor off. Code goes into the ONCE segment, -; which will be reused after it is run. - -.segment "ONCE" - -initcgetc: - lsr STATUS - asl STATUS ; Clear bit zero - rts diff --git a/libsrc/atmos/cputc.s b/libsrc/atmos/cputc.s index a0ef14b70..f1ce5f2b7 100644 --- a/libsrc/atmos/cputc.s +++ b/libsrc/atmos/cputc.s @@ -8,6 +8,7 @@ .export _cputcxy, _cputc .export setscrptr, putchar + .constructor initcputc .import rvs .import popax .importzp ptr2 @@ -95,3 +96,13 @@ ScrTabHi: .byte >(SCREEN + Line * SCREEN_XSIZE) .endrep +; ------------------------------------------------------------------------ +; Switch the cursor off. Code goes into the ONCE segment, +; which will be reused after it is run. + +.segment "ONCE" + +initcputc: + lsr STATUS + asl STATUS ; Clear bit zero + rts