1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00
cc65/libsrc/cbm/rewinddir.s
uz c40b54ee6c Implemented rewinddir/seekdir.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5676 b7a2c559-68d2-44c3-8de9-860c34a00d81
2012-06-03 15:11:32 +00:00

26 lines
465 B
ArmAsm

;
; Ullrich von Bassewitz, 2012-06-03
;
; Based on C code by Groepaz
;
; void __fastcall__ rewinddir (DIR *dir);
;
.include "dir.inc"
.include "zeropage.inc"
.import pushax
.proc _rewinddir
jsr pushax ; Push dir
ldx #0
stx sreg+1
stx sreg
lda #32 ; Pass 32 as offset ...
jmp _seekdir ; ... to seekdir
.endproc