mirror of
https://github.com/cc65/cc65.git
synced 2025-08-10 04:25:21 +00:00
Use SER_API_VERSION
git-svn-id: svn://svn.cc65.org/cc65/trunk@2737 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -33,8 +33,7 @@ ser_ioctl: jmp return0
|
|||||||
|
|
||||||
; Driver header signature
|
; Driver header signature
|
||||||
.rodata
|
.rodata
|
||||||
ser_sig: .byte $73, $65, $72, $00 ; "ser", version
|
ser_sig: .byte $73, $65, $72, SER_API_VERSION ; "ser", version
|
||||||
ser_sig_len = * - ser_sig
|
|
||||||
|
|
||||||
|
|
||||||
;----------------------------------------------------------------------------
|
;----------------------------------------------------------------------------
|
||||||
@@ -50,7 +49,7 @@ _ser_install:
|
|||||||
|
|
||||||
; Check the driver signature
|
; Check the driver signature
|
||||||
|
|
||||||
ldy #ser_sig_len-1
|
ldy #.sizeof(ser_sig)-1
|
||||||
@L0: lda (ptr1),y
|
@L0: lda (ptr1),y
|
||||||
cmp ser_sig,y
|
cmp ser_sig,y
|
||||||
bne inv_drv
|
bne inv_drv
|
||||||
@@ -64,7 +63,7 @@ _ser_install:
|
|||||||
@L1: inx ; Skip the JMP opcode
|
@L1: inx ; Skip the JMP opcode
|
||||||
jsr copy ; Copy one byte
|
jsr copy ; Copy one byte
|
||||||
jsr copy ; Copy one byte
|
jsr copy ; Copy one byte
|
||||||
cpx #(SER_HDR::JUMPTAB + .sizeof(SER_HDR::JUMPTAB))
|
cpy #(SER_HDR::JUMPTAB + .sizeof(SER_HDR::JUMPTAB))
|
||||||
bne @L1
|
bne @L1
|
||||||
|
|
||||||
jmp ser_install ; Call driver install routine
|
jmp ser_install ; Call driver install routine
|
||||||
|
Reference in New Issue
Block a user