Swapped the locations of a constructor and a destructor in a source file.
The constructor now is first. Used a more expressive literal zero.
This commit is contained in:
@@ -5,25 +5,15 @@
|
||||
; (which is the default on other cc65 platforms).
|
||||
; This module is linked by the conio and POSIX input functions.
|
||||
;
|
||||
; 2014-08-22, Greg King
|
||||
; 2014-09-04, Greg King
|
||||
;
|
||||
|
||||
.destructor restore_caps
|
||||
.constructor disable_caps
|
||||
.destructor restore_caps
|
||||
|
||||
.include "atmos.inc"
|
||||
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
|
||||
; Restore the old capitals-lock state.
|
||||
|
||||
restore_caps:
|
||||
lda capsave
|
||||
sta CAPSLOCK
|
||||
rts
|
||||
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
; Put this constructor into a segment that can be re-used by programs.
|
||||
;
|
||||
@@ -39,6 +29,18 @@ disable_caps:
|
||||
rts
|
||||
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
|
||||
.code
|
||||
|
||||
; Restore the old capitals-lock state.
|
||||
|
||||
restore_caps:
|
||||
lda capsave
|
||||
sta CAPSLOCK
|
||||
rts
|
||||
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
|
||||
.bss
|
||||
|
||||
Reference in New Issue
Block a user