view lib/alib/putc.as @ 2852:f2e92661b4c6 lwtools-port

Makefiles: Always use macro for lwar and rm The LWAR macro is new, rm was still used in one place.
author Tormod Volden <debian.tormod@gmail.com>
date Fri, 12 Jul 2013 22:41:18 +0200 (2013-07-12)
parents 03f26e88b809
children
line wrap: on
line source
**********************************

* Put single character to standard out.

* OTHER MODULES NEEDED: FPUTC

* ENTRY: B=character to print

* EXIT: CC carry set if error
*       B=error code if any

 nam Print Char to Std. Out
 ttl Assembler Library Module


 section .text

PUTC:
 pshs a
 lda #1 stn out
 lbsr FPUTC
 puls a,pc

 endsect