; ; File generated by cc65 v 2.11.0 ; .fopt compiler,"cc65 v 2.11.0" .setcpu "6502" .smart on .autoimport on .case on .debuginfo on .importzp sp, sreg, regsave, regbank, tmp1, ptr1, ptr2 .macpack longbranch .dbg file, "rewind.c", 377, 1068141847 .dbg file, "../../include/stdio.h", 5945, 1113916546 .dbg file, "../../include/stddef.h", 2974, 1061022172 .dbg file, "../../include/stdarg.h", 2817, 1102777145 .import _clearerr .import _fseek .export _rewind ; --------------------------------------------------------------- ; void __fastcall__ rewind (struct _FILE*) ; --------------------------------------------------------------- .segment "CODE" .proc _rewind .segment "CODE" ; ; { ; .dbg line, "rewind.c", 20 jsr pushax ; ; fseek(f, 0L, SEEK_SET); ; .dbg line, "rewind.c", 21 jsr decsp6 ldy #$07 jsr ldaxysp ldy #$04 sta (sp),y iny txa sta (sp),y ldx #$00 ldy #$00 txa sta (sp),y iny sta (sp),y iny sta (sp),y iny sta (sp),y lda #$02 jsr _fseek ; ; clearerr(f); ; .dbg line, "rewind.c", 22 ldy #$01 jsr ldaxysp jsr _clearerr ; ; } ; .dbg line, "rewind.c", 23 jmp incsp2 .dbg line .endproc