mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Code goes into the CODE segment, not RODATA.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3713 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
4c0720709b
commit
9a98194dc5
@ -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 */
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user