From baa1c2060d6b001938e63a696c964323eb00240b Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 13 Dec 2003 11:02:07 +0000 Subject: [PATCH] Use SER_API_VERSION git-svn-id: svn://svn.cc65.org/cc65/trunk@2737 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/serial/ser-kernel.s | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libsrc/serial/ser-kernel.s b/libsrc/serial/ser-kernel.s index 338136ac4..a0285f6c3 100644 --- a/libsrc/serial/ser-kernel.s +++ b/libsrc/serial/ser-kernel.s @@ -33,8 +33,7 @@ ser_ioctl: jmp return0 ; Driver header signature .rodata -ser_sig: .byte $73, $65, $72, $00 ; "ser", version -ser_sig_len = * - ser_sig +ser_sig: .byte $73, $65, $72, SER_API_VERSION ; "ser", version ;---------------------------------------------------------------------------- @@ -50,7 +49,7 @@ _ser_install: ; Check the driver signature - ldy #ser_sig_len-1 + ldy #.sizeof(ser_sig)-1 @L0: lda (ptr1),y cmp ser_sig,y bne inv_drv @@ -64,7 +63,7 @@ _ser_install: @L1: inx ; Skip the JMP opcode 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 jmp ser_install ; Call driver install routine -- 2.39.5