mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Merge pull request #662 from Compyx/master
Add CBM kernal call SECOND to CBM library (see issue #525)
This commit is contained in:
commit
0138e110cc
@ -125,6 +125,7 @@ declaration and usage.
|
|||||||
<item>cbm_k_bsout
|
<item>cbm_k_bsout
|
||||||
<item>cbm_k_clrch
|
<item>cbm_k_clrch
|
||||||
<item>cbm_k_tksa
|
<item>cbm_k_tksa
|
||||||
|
<item>cbm_k_second
|
||||||
<item>cbm_load
|
<item>cbm_load
|
||||||
<item>cbm_open
|
<item>cbm_open
|
||||||
<item>cbm_opendir
|
<item>cbm_opendir
|
||||||
|
@ -116,6 +116,7 @@ declaration and usage.
|
|||||||
<item>cbm_k_bsout
|
<item>cbm_k_bsout
|
||||||
<item>cbm_k_clrch
|
<item>cbm_k_clrch
|
||||||
<item>cbm_k_tksa
|
<item>cbm_k_tksa
|
||||||
|
<item>cbm_k_second
|
||||||
<item>cbm_load
|
<item>cbm_load
|
||||||
<item>cbm_open
|
<item>cbm_open
|
||||||
<item>cbm_opendir
|
<item>cbm_opendir
|
||||||
|
@ -218,6 +218,7 @@ declaration and usage.
|
|||||||
<item>cbm_k_bsout
|
<item>cbm_k_bsout
|
||||||
<item>cbm_k_clrch
|
<item>cbm_k_clrch
|
||||||
<item>cbm_k_tksa
|
<item>cbm_k_tksa
|
||||||
|
<item>cbm_k_second
|
||||||
<item>cbm_load
|
<item>cbm_load
|
||||||
<item>cbm_open
|
<item>cbm_open
|
||||||
<item>cbm_opendir
|
<item>cbm_opendir
|
||||||
|
@ -119,6 +119,7 @@ declaration and usage.
|
|||||||
<item>cbm_k_bsout
|
<item>cbm_k_bsout
|
||||||
<item>cbm_k_clrch
|
<item>cbm_k_clrch
|
||||||
<item>cbm_k_tksa
|
<item>cbm_k_tksa
|
||||||
|
<item>cbm_k_second
|
||||||
<item>cbm_load
|
<item>cbm_load
|
||||||
<item>cbm_open
|
<item>cbm_open
|
||||||
<item>cbm_opendir
|
<item>cbm_opendir
|
||||||
|
@ -122,6 +122,7 @@ declaration and usage.
|
|||||||
<item>cbm_k_bsout
|
<item>cbm_k_bsout
|
||||||
<item>cbm_k_clrch
|
<item>cbm_k_clrch
|
||||||
<item>cbm_k_tksa
|
<item>cbm_k_tksa
|
||||||
|
<item>cbm_k_second
|
||||||
<item>cbm_load
|
<item>cbm_load
|
||||||
<item>cbm_open
|
<item>cbm_open
|
||||||
<item>cbm_opendir
|
<item>cbm_opendir
|
||||||
|
@ -200,6 +200,7 @@ function.
|
|||||||
<item><ref id="cbm_k_readst" name="cbm_k_readst">
|
<item><ref id="cbm_k_readst" name="cbm_k_readst">
|
||||||
<item><ref id="cbm_k_save" name="cbm_k_save">
|
<item><ref id="cbm_k_save" name="cbm_k_save">
|
||||||
<item><ref id="cbm_k_scnkey" name="cbm_k_scnkey">
|
<item><ref id="cbm_k_scnkey" name="cbm_k_scnkey">
|
||||||
|
<item><ref id="cbm_k_second" name="cbm_k_second">
|
||||||
<item><ref id="cbm_k_setlfs" name="cbm_k_setlfs">
|
<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_setnam" name="cbm_k_setnam">
|
||||||
<item><ref id="cbm_k_talk" name="cbm_k_talk">
|
<item><ref id="cbm_k_talk" name="cbm_k_talk">
|
||||||
@ -2224,6 +2225,31 @@ function, in order to provide input from the keyboard.
|
|||||||
</quote>
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1>cmb_k_second<label id="cbm_k_second"><p>
|
||||||
|
|
||||||
|
<quote>
|
||||||
|
<descrip>
|
||||||
|
<tag/Function/Send secondary address for LISTEN.
|
||||||
|
<tag/Header/<tt/<ref id="cbm.h" name="cbm.h">/
|
||||||
|
<tag/Declaration/<tt/void __fastcall__ cbm_k_second (unsigned char addr);/
|
||||||
|
<tag/Description/This function is used to send a secondary address to an I/O
|
||||||
|
device after a call to LISTEN is made, and the device is commanded to LISTEN.
|
||||||
|
<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 LISTEN.
|
||||||
|
<item>The function will not work after a TALK.
|
||||||
|
<item>When a secondary address is to be sent to a device on the serial bus,
|
||||||
|
the address must first be ORed with $60.
|
||||||
|
</itemize>
|
||||||
|
<tag/Availability/cc65
|
||||||
|
<tag/See also/
|
||||||
|
<ref id="cbm_k_listen" name="cbm_k_listen">
|
||||||
|
<tag/Exampe/None.
|
||||||
|
</descrip>
|
||||||
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
<sect1>cbm_k_setlfs<label id="cbm_k_setlfs"><p>
|
<sect1>cbm_k_setlfs<label id="cbm_k_setlfs"><p>
|
||||||
|
|
||||||
<quote>
|
<quote>
|
||||||
|
@ -114,6 +114,7 @@ declaration and usage.
|
|||||||
<item>cbm_k_bsout
|
<item>cbm_k_bsout
|
||||||
<item>cbm_k_clrch
|
<item>cbm_k_clrch
|
||||||
<item>cbm_k_tksa
|
<item>cbm_k_tksa
|
||||||
|
<item>cbm_k_second
|
||||||
<item>cbm_load
|
<item>cbm_load
|
||||||
<item>cbm_open
|
<item>cbm_open
|
||||||
<item>cbm_opendir
|
<item>cbm_opendir
|
||||||
|
@ -100,6 +100,7 @@ declaration and usage.
|
|||||||
<item>cbm_k_bsout
|
<item>cbm_k_bsout
|
||||||
<item>cbm_k_clrch
|
<item>cbm_k_clrch
|
||||||
<item>cbm_k_tksa
|
<item>cbm_k_tksa
|
||||||
|
<item>cbm_k_second
|
||||||
<item>cbm_load
|
<item>cbm_load
|
||||||
<item>cbm_open
|
<item>cbm_open
|
||||||
<item>cbm_opendir
|
<item>cbm_opendir
|
||||||
|
@ -200,6 +200,7 @@ unsigned char cbm_k_open (void);
|
|||||||
unsigned char cbm_k_readst (void);
|
unsigned char cbm_k_readst (void);
|
||||||
unsigned char __fastcall__ cbm_k_save(unsigned int start, unsigned int end);
|
unsigned char __fastcall__ cbm_k_save(unsigned int start, unsigned int end);
|
||||||
void cbm_k_scnkey (void);
|
void cbm_k_scnkey (void);
|
||||||
|
void __fastcall__ cbm_k_second (unsigned char addr);
|
||||||
void __fastcall__ cbm_k_setlfs (unsigned char LFN, unsigned char DEV,
|
void __fastcall__ cbm_k_setlfs (unsigned char LFN, unsigned char DEV,
|
||||||
unsigned char SA);
|
unsigned char SA);
|
||||||
void __fastcall__ cbm_k_setnam (const char* Name);
|
void __fastcall__ cbm_k_setnam (const char* Name);
|
||||||
|
12
libsrc/cbm/c_second.s
Normal file
12
libsrc/cbm/c_second.s
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
;
|
||||||
|
; Bas Wassink, 23.05.2018
|
||||||
|
;
|
||||||
|
; void __fastcall__ cbm_k_second (unsigned char addr)
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
.import SECOND
|
||||||
|
.export _cbm_k_second
|
||||||
|
|
||||||
|
_cbm_k_second = SECOND
|
||||||
|
|
Loading…
Reference in New Issue
Block a user