Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/fputy.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 |
parents | 03f26e88b809 |
children |
rev | line source |
---|---|
2474 | 1 *************************************** |
2 | |
3 * Subroutine to save word in Y to file | |
4 | |
5 * OTHER MODULES NEEDED: none | |
6 | |
7 * ENTRY: A=path | |
8 * Y=value to save | |
9 | |
10 * EXIT: CC carry set if error (from I$Write) | |
11 * B error code if any | |
12 | |
13 nam Save word to file | |
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 FPUTY: | |
20 pshs x,y | |
21 ldy #2 number of chars to write | |
22 leax 2,s point X at value | |
23 os9 I$Write | |
24 puls x,y,pc | |
25 | |
26 endsect | |
27 |