]> git.sur5r.net Git - cc65/blobdiff - asminc/ser-kernel.inc
Comment out the RegVal function using #if to get rid of the compiler warning
[cc65] / asminc / ser-kernel.inc
index 303f1c5c8c84cd2908040f4fb5489cd81e40f896..50f8ec06de4400b813358ae5fc55d9dcdd68f87c 100644 (file)
@@ -6,10 +6,10 @@
 ;*                                                                          *
 ;*                                                                          *
 ;*                                                                          *
-;*(C) 2003      Ullrich von Bassewitz                                       *
-;*              Römerstrasse 52                                             *
-;*              D-70794 Filderstadt                                         *
-;*EMail:        uz@cc65.org                                                 *
+;*(C) 2003-2006, Ullrich von Bassewitz                                      *
+;*               Römerstrasse 52                                            *
+;*               D-70794 Filderstadt                                        *
+;*EMail:         uz@cc65.org                                                *
 ;*                                                                          *
 ;*                                                                          *
 ;*This software is provided 'as-is', without any expressed or implied       *
@@ -39,7 +39,7 @@
 .struct SER_HDR
         ID      .byte   3       ; Contains 0x73, 0x65, 0x72 ("ser")
         VERSION .byte   1       ; Interface version
-        JUMPTAB .struct 
+        JUMPTAB .struct
             INSTALL     .word   ; INSTALL routine
             UNINSTALL   .word   ; UNINSTALL routine
             OPEN        .word   ; OPEN routine
             PUT         .word   ; PUT routine
             STATUS      .word   ; STATUS routine
             IOCTL       .word   ; IOCTL routine
+           IRQ         .word   ; IRQ routine
         .endstruct
 .endstruct
 
 
+;------------------------------------------------------------------------------
+; The SER API version, stored SER_HDR::VERSION
+
+SER_API_VERSION         = $00
+
 ;------------------------------------------------------------------------------
 ; ser_params
 
@@ -87,6 +93,8 @@ SER_BAUD_38400                =       $10
 SER_BAUD_57600                 =       $11
 SER_BAUD_115200                =       $12
 SER_BAUD_230400                =       $13
+SER_BAUD_31250         =       $14
+SER_BAUD_62500         =       $15
 
 ; Data bit settings
 SER_BITS_5                     =       $00
@@ -133,10 +141,10 @@ SER_STATUS_DSR            =       $40     ; NOT data set ready
         .global ser_put
         .global ser_status
         .global ser_ioctl
-
+       .global ser_irq
 
 ;------------------------------------------------------------------------------
-; ASM functions
+; C callable functions
 
         .global _ser_unload
         .global _ser_install
@@ -148,4 +156,5 @@ SER_STATUS_DSR              =       $40     ; NOT data set ready
         .global _ser_status
         .global _ser_ioctl
 
+        .global _ser_clear_ptr