]> git.sur5r.net Git - cc65/commitdiff
Add CBM kernal call TKSA to CBM library
authorcompyx <b.wassink@ziggo.nl>
Tue, 22 May 2018 12:16:00 +0000 (14:16 +0200)
committercompyx <b.wassink@ziggo.nl>
Tue, 22 May 2018 12:16:00 +0000 (14:16 +0200)
This adds the CBM kernal call TKSA as cbm_k_tksa() to the CBM library.

doc/c128.sgml
doc/c16.sgml
doc/c64.sgml
doc/cbm510.sgml
doc/cbm610.sgml
doc/funcref.sgml
doc/pet.sgml
doc/plus4.sgml
doc/vic20.sgml
include/cbm.h
libsrc/cbm/c_tksa.s [new file with mode: 0644]

index 1bdcf01f58cd809e443553d03cb80ba93ee50b2b..feda1cbba2a534b4fc60bf76ec88c12ce3719df4 100644 (file)
@@ -124,6 +124,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index 27938ff1e456795b2b88536733dff1a24d43603c..6375a78981faea530f89154def803c9f244e97a2 100644 (file)
@@ -115,6 +115,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index a18ce359ff6301cc116f987b59df4df6c466471b..b04b40508fbe5fffa4aa01c8cfad3d4e6e44f124 100644 (file)
@@ -217,6 +217,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index b171c2ce399d8ecf0a55ed6819e6339d44eca80f..1e6a4e07b2fe9a68bc9f9d0fe79c2b8b9db2075c 100644 (file)
@@ -118,6 +118,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index 790983b3d5c494f2d162830a1dc092f60582a5e8..9f963dbd5c741c98292c54a75a4e065f6e8f35e8 100644 (file)
@@ -121,6 +121,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index f10379c938f723e0a2c6632a581664537e253583..0fe1ce8471bf7fba04ac000ca8c1179634350fb0 100644 (file)
@@ -203,6 +203,7 @@ function.
 <item><ref id="cbm_k_setlfs" name="cbm_k_setlfs">
 <item><ref id="cbm_k_setnam" name="cbm_k_setnam">
 <item><ref id="cbm_k_talk" name="cbm_k_talk">
+<item><ref id="cbm_k_tksa" name="cbm_k_tksa">
 <item><ref id="cbm_k_udtim" name="cbm_k_udtim">
 <item><ref id="cbm_k_unlsn" name="cbm_k_unlsn">
 <!-- <item><ref id="cbm_load" name="cbm_load"> -->
@@ -2284,6 +2285,28 @@ only be used in presence of a prototype.
 </quote>
 
 
+<sect1>cbm_k_tksa<label id="cbm_k_tksa"><p>
+
+<quote>
+<descrip>
+<tag/Function/Send TALK secondary address to serial bus
+<tag/Header/<tt/<ref id="cbm.h" name="cbm.h">/
+<tag/Declaration/<tt/void __fastcall__ cbm_k_tksa (unsigned char addr);/
+<tag/Description/This function transmits a secondary address on the serial bus for a TALK device.
+<tag/Notes/<itemize>
+<item>The function is only available as fastcall function, so it may
+only be used in presence of a prototype.
+<item>The function can only be called after a call to TALK.
+<item>The function will not work after a LISTEN.
+</itemize>
+<tag/Availability/cc65
+<tag/See also/
+<ref id="cbm_k_talk" name="cbm_k_talk">
+<tag/Example/None.
+</descrip>
+</quote>
+
+
 <sect1>cbm_k_udtim<label id="cbm_k_udtim"><p>
 
 <quote>
index fd61716dda3d330f783368bd55996da72dc7c6e0..fef2d14ec37701fdb8745b60973dcb409f1654c7 100644 (file)
@@ -99,6 +99,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index c1b6165f6732d484b94f865c0f577adadfa658f7..333bd879a10e7ede800debfd38d15a1a16631986 100644 (file)
@@ -113,6 +113,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index a61691733ccebb4ac6636ad92c0b166d294d3283..1744a2b9019a4b7d44b678fc4bb1fccc2d32ccaa 100644 (file)
@@ -99,6 +99,7 @@ declaration and usage.
 <item>cbm_k_basin
 <item>cbm_k_bsout
 <item>cbm_k_clrch
+<item>cbm_k_tksa
 <item>cbm_load
 <item>cbm_open
 <item>cbm_opendir
index 1395f700f51568363ba4effcfb27087e75dbc1e4..fbf8d555a6a1205fe69513caf3793388ef4081c9 100644 (file)
@@ -204,6 +204,7 @@ void __fastcall__ cbm_k_setlfs (unsigned char LFN, unsigned char DEV,
                                 unsigned char SA);
 void __fastcall__ cbm_k_setnam (const char* Name);
 void __fastcall__ cbm_k_talk (unsigned char dev);
+void __fastcall__ cbm_k_tksa (unsigned char addr);
 void cbm_k_udtim (void);
 void cbm_k_unlsn (void);
 void cbm_k_untlk (void);
diff --git a/libsrc/cbm/c_tksa.s b/libsrc/cbm/c_tksa.s
new file mode 100644 (file)
index 0000000..b818d72
--- /dev/null
@@ -0,0 +1,12 @@
+;
+; Bas Wassink, 22.05.2018
+;
+; void __fastcall__ cbm_k_tksa (unsigned char addr)
+;
+
+
+        .import TKSA
+        .export _cbm_k_tksa
+
+_cbm_k_tksa = TKSA
+