view lib/alib/puts.as @ 2802:58ca94b06908 lwtools-port

now built from defs files
author Boisy Pitre <boisy.pitre@nuance.com>
date Fri, 01 Feb 2013 19:26:44 -0600
parents 03f26e88b809
children
line wrap: on
line source

***********************************

* Print a null terminated string to standard out.

* OTHER MODULES NEEDED: fputs

* ENTRY: X=string to print

* EXIT: CC carry set if error
*       B error code (if any)


 nam Print String to Std. Out
 ttl Assembler Library Module


 section .text

PUTS:
 pshs a
 lda #1 std out
 lbsr FPUTS
 puls a,pc

 endsect