Working on new serial API
git-svn-id: svn://svn.cc65.org/cc65/trunk@2069 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
25
libsrc/serial/ser_get.s
Normal file
25
libsrc/serial/ser_get.s
Normal file
@@ -0,0 +1,25 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 2003-04-18
|
||||
;
|
||||
; unsigned char __fastcall__ ser_get (char* b);
|
||||
; /* Get a character from the serial port. If no characters are available, the
|
||||
; * function will return SER_ERR_NO_DATA, so this is not a fatal error.
|
||||
; */
|
||||
|
||||
|
||||
.importzp ptr1
|
||||
|
||||
.include "ser-kernel.inc"
|
||||
|
||||
|
||||
.proc _ser_get
|
||||
|
||||
sta ptr1
|
||||
stx ptr1+1 ; Save pointer to char
|
||||
jmp ser_get ; Call the driver
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user