1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-06 15:06:07 +00:00
cc65/libsrc/serial/ser_get.s
Greg King 0390c34e88 Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
2014-06-30 16:51:07 -04:00

26 lines
494 B
ArmAsm

;
; 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