Move constructor code into the INIT segment
git-svn-id: svn://svn.cc65.org/cc65/trunk@3405 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -56,6 +56,8 @@ L2: jsr KBDREAD ; Read char and return in A
|
||||
.constructor initkbd
|
||||
.destructor donekbd
|
||||
|
||||
.segment "INIT"
|
||||
|
||||
.proc initkbd
|
||||
|
||||
ldy #15
|
||||
@@ -68,6 +70,8 @@ L2: jsr KBDREAD ; Read char and return in A
|
||||
.endproc
|
||||
|
||||
|
||||
.code
|
||||
|
||||
.proc donekbd
|
||||
|
||||
ldx #$39 ; Copy the original function keys
|
||||
|
||||
Reference in New Issue
Block a user