Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/fputs.as @ 3141:717ced83b885
coco3: Build SD card device descriptors for CoCo3FPGA
Added "CC3FPGAFLAGS = $(AFLAGS) -DCC3FPGA=1 $(FLAGS)" to
"level2/coco3/modules/makefile" for flagging Coco3FPGA specific features
in modules sources.
Added "llcoco3fpga", "ddsd0_coco3fpga", "sd0_coco3fpga", and
"sd1_coco3fpga" to the "coco3/modules/makefile" - RBF section, which
also now adds all to the "NITROS9/MODULES/RBF" on all disk images for
building new Coco3FPGA disks from NitrOS9.
Added new descriptor section to the "level2/coco3/modules/makefile"
reflecting the new Coco3FPGA SD card descriptors and their flags.
author | Bill Pierce <merlinious999@gmail.com> |
---|---|
date | Sat, 04 Feb 2017 11:06:28 +0100 |
parents | 03f26e88b809 |
children |
rev | line source |
---|---|
2474 | 1 ************************************** |
2 | |
3 * FPUTS: print null terminated string to "A". | |
4 | |
5 * OTHER MODULES REQUIRED: none | |
6 | |
7 * ENTRY: X=start of string | |
8 * A=path | |
9 | |
10 * EXIT: CC carry set if error | |
11 * B = OS9 error if any (from I$WritLn) | |
12 | |
13 * NOTE: string is feed through I$WritLn for editing (adding LF, etc.) | |
14 | |
15 nam Output String | |
16 ttl Assembler Library Module | |
17 | |
18 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
19 section .text |
2474 | 20 |
21 FPUTS: | |
22 pshs a,x,y,u | |
23 tfr x,u start of 1st segment to print | |
24 | |
25 loop | |
26 pshs u start of this segment | |
27 ldy #-1 size of this seg. | |
28 | |
29 l1 | |
30 leay 1,y count size | |
31 ldb ,u+ check for null/cr | |
32 beq doit null=do last seg. | |
33 cmpb #$0d cr=do this seg. | |
34 bne l1 | |
35 leay 1,y count CR as one of the ones to print | |
36 | |
37 doit | |
38 puls x get start of this segment | |
39 OS9 I$WritLn | |
40 bcs exit | |
41 tst -1,u at end? | |
42 bne loop | |
43 | |
44 exit | |
45 puls a,x,y,u,pc return with status in CC,error code in B | |
46 | |
47 endsect |