From 9a98194dc5be7c2a1cb3f3b7e1cab7a346c29398 Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 31 Mar 2006 20:07:43 +0000 Subject: [PATCH] Code goes into the CODE segment, not RODATA. git-svn-id: svn://svn.cc65.org/cc65/trunk@3713 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/joystick/joy-kernel.s | 1 + libsrc/mouse/mouse-kernel.s | 1 + libsrc/serial/ser-kernel.s | 7 ++++--- libsrc/tgi/tgi-kernel.s | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libsrc/joystick/joy-kernel.s b/libsrc/joystick/joy-kernel.s index 7961e1c2a..975166b7e 100644 --- a/libsrc/joystick/joy-kernel.s +++ b/libsrc/joystick/joy-kernel.s @@ -36,6 +36,7 @@ joy_irq: .byte $60, $00, $00 ; RTS plus two dummy bytes joy_sig: .byte $6A, $6F, $79, JOY_API_VERSION ; "joy", version +.code ;---------------------------------------------------------------------------- ; unsigned char __fastcall__ joy_install (void* driver); ; /* Install the driver once it is loaded */ diff --git a/libsrc/mouse/mouse-kernel.s b/libsrc/mouse/mouse-kernel.s index 9dc7d3b23..fc8d9490e 100644 --- a/libsrc/mouse/mouse-kernel.s +++ b/libsrc/mouse/mouse-kernel.s @@ -41,6 +41,7 @@ mouse_irq: .byte $60, $00, $00 ; RTS plus two dummy bytes mouse_sig: .byte $6d, $6f, $75, MOUSE_API_VERSION ; "mou", version +.code ;---------------------------------------------------------------------------- ; unsigned char __fastcall__ mouse_install (const struct mouse_callbacks* c, ; void* driver); diff --git a/libsrc/serial/ser-kernel.s b/libsrc/serial/ser-kernel.s index cf5c20338..0bd494459 100644 --- a/libsrc/serial/ser-kernel.s +++ b/libsrc/serial/ser-kernel.s @@ -37,6 +37,7 @@ ser_irq: .byte $60, $00, $00 ; RTS plus two dummy bytes ser_sig: .byte $73, $65, $72, SER_API_VERSION ; "ser", version +.code ;---------------------------------------------------------------------------- ; unsigned char __fastcall__ ser_install (void* driver); ; /* Install the driver once it is loaded */ @@ -44,9 +45,9 @@ ser_sig: .byte $73, $65, $72, SER_API_VERSION ; "ser", version _ser_install: sta _ser_drv - sta ptr1 - stx _ser_drv+1 - stx ptr1+1 + sta ptr1 + stx _ser_drv+1 + stx ptr1+1 ; Check the driver signature diff --git a/libsrc/tgi/tgi-kernel.s b/libsrc/tgi/tgi-kernel.s index 41f34d181..6b95e1c96 100644 --- a/libsrc/tgi/tgi-kernel.s +++ b/libsrc/tgi/tgi-kernel.s @@ -67,6 +67,7 @@ tgi_irq: .byte $60, $00, $00 ; RTS plus two dummy bytes tgi_sig: .byte $74, $67, $69, TGI_API_VERSION ; "tgi", version +.code ;---------------------------------------------------------------------------- ; void __fastcall__ tgi_install (void* driver); ; /* Install an already loaded driver. */ @@ -188,3 +189,4 @@ _tgi_uninstall: rts + -- 2.39.5