;
 
         .export         _cgetc
-        .constructor    initcgetc
 
         .import         cursor
         .forceimport    disable_caps
 @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
 
 
         .export         _cputcxy, _cputc
         .export         setscrptr, putchar
+        .constructor    initcputc
         .import         rvs
         .import         popax
         .importzp       ptr2
                 .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