mirror of
https://github.com/cc65/cc65.git
synced 2024-11-05 08:05:51 +00:00
c40b54ee6c
git-svn-id: svn://svn.cc65.org/cc65/trunk@5676 b7a2c559-68d2-44c3-8de9-860c34a00d81
26 lines
465 B
ArmAsm
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
|
|
|