Mercurial > hg > Members > kono > nitros9-code
annotate lib/alib/frewind.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 rewind file | |
4 | |
5 * OTHER MODULES NEEDED: none | |
6 | |
7 * ENTRY: A=path | |
8 | |
9 | |
10 * EXIT: CC carry set if error (from I$Seek) | |
11 * B error code if any | |
12 | |
13 nam Rewind open RBF 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 FREWIND: | |
20 pshs x,u | |
21 ldx #0 | |
22 tfr x,u | |
23 os9 I$Seek seek to pos 0 | |
24 puls x,u,pc | |
25 | |
26 endsect | |
27 |