]> git.sur5r.net Git - cc65/commitdiff
Working on the new serial code
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 20 Apr 2003 22:49:32 +0000 (22:49 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 20 Apr 2003 22:49:32 +0000 (22:49 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2070 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/ser-error.inc
asminc/ser-kernel.inc
libsrc/c64/c64.inc
libsrc/serial/ser-kernel.s

index 736846aae1dcd9525564fdc7fbfcc68b21ca67e9..e6057a64124dcf86df6d8075ce08f37b75ac3749 100644 (file)
@@ -45,6 +45,6 @@ SER_ERR_BAUD_UNAVAIL          =       $05     ; Baud rate not available
 SER_ERR_NO_DATA                =       $06     ; Nothing to read
 SER_ERR_OVERFLOW               =       $07     ; No room in send buffer
 SER_ERR_INIT_FAILED     =       $08    ; Initialization failed
-
+SER_ERR_INV_IOCTL       =       $09     ; IOCTL not supported
 
 
index 66ce8aea7f8f2f40cbe09095c418584eca0397dd..e378d851cefca9982514546381e1867b3cbf2fd8 100644 (file)
@@ -48,8 +48,9 @@ SER_HDR_PUT             = SER_HDR_JUMPTAB+8     ; PUT routine
 SER_HDR_PAUSE           = SER_HDR_JUMPTAB+10    ; PAUSE routine
 SER_HDR_UNPAUSE         = SER_HDR_JUMPTAB+12    ; UNPAUSE routine
 SER_HDR_STATUS          = SER_HDR_JUMPTAB+14    ; STATUS routine
+SER_HDR_IOCTL           = SER_HDR_JUMPTAB+16    ; IOCTL routine
 
-SER_HDR_JUMPCOUNT       = 8                     ; Number of jump vectors
+SER_HDR_JUMPCOUNT       = 9                     ; Number of jump vectors
 
 ;------------------------------------------------------------------------------
 ; Offsets into the struct passed to ser_params
@@ -128,7 +129,7 @@ SER_STATUS_DSR              =       $40     ; NOT data set ready
         .global ser_pause
         .global ser_unpause
         .global ser_status
-
+        .global ser_ioctl
 
 
 ;------------------------------------------------------------------------------
@@ -143,6 +144,6 @@ SER_STATUS_DSR              =       $40     ; NOT data set ready
         .global _ser_pause
         .global _ser_unpause
         .global _ser_status
-
+        .global _ser_ioctl
 
 
index 471551c2629b450b62d1a7ae1009f5dddb74f361..12b2829ad68bea544e129a528f7d2b86b8372734 100644 (file)
@@ -35,6 +35,7 @@ PALFLAG               = $2A6          ; $01 = PAL, $00 = NTSC
 ; Direct entries
 CLRSCR         = $E544
 KBDREAD                = $E5B4
+NMIEXIT         = $FEBC
 
 ; ---------------------------------------------------------------------------
 ; Vector and other locations
index 69c45df5e279b3bb28adeb917815c65ff4674ed0..8d9159d131707e739bbbddfb29d096e4a18198a3 100644 (file)
@@ -30,6 +30,7 @@ ser_put:        jmp     return0
 ser_pause:      jmp     return0
 ser_unpause:    jmp     return0
 ser_status:     jmp     return0
+ser_ioctl:      jmp     return0
 
 ; Driver header signature
 .rodata