Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/putcr.as @ 3158:927ba5ebc06e
mc09 l2: move MMU bit-field defines to defs file.
author | Neal Crook <foofoobedoo@gmail.com> |
---|---|
date | Thu, 06 Apr 2017 21:43:58 +0100 |
parents | 03f26e88b809 |
children |
rev | line source |
---|---|
2474 | 1 **************************************** |
2 | |
3 * Subroutine to print a carriage return to std. out. | |
4 | |
5 * OTHER MODULES REQUIRED: FPUTCR | |
6 | |
7 * ENTRY: none | |
8 | |
9 * EXIT: CC carry set if error (from I$WritLn) | |
10 * B error code if any. | |
11 | |
12 | |
13 nam Output Carriage Return to Std. Out | |
14 ttl Assembler Library Module | |
15 | |
16 | |
2782
aaba193af04f
Updated code to use lwasm/lwlink
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2474
diff
changeset
|
17 section .text |
2474 | 18 |
19 PUTCR: | |
20 pshs a | |
21 lda #1 std out | |
22 lbsr FPUTCR | |
23 puls a,pc | |
24 | |
25 endsect |