; ; File generated by cc65 v 2.19 - Git fe19dd1 ; .fopt compiler,"cc65 v 2.19 - Git fe19dd1" .setcpu "W65C02" .smart on .autoimport on .case on .debuginfo on .importzp c_sp, sreg, regsave, regbank .importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4 .macpack longbranch .dbg file, "rp6502/strftime.c", 916, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/rp6502.h", 11946, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/_6522.h", 3781, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/errno.h", 5854, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/string.h", 5678, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/time.h", 5354, 1794640055 .dbg sym, "__errno", "00", extern, "___errno" .import _ria_call_int .import ___errno .import _strlen .export _strftime ; --------------------------------------------------------------- ; unsigned int __near__ __fastcall__ strftime (char *buf, unsigned int bufsize, const char *format, const struct tm *tm) ; --------------------------------------------------------------- .segment "CODE" .proc _strftime: near .dbg func, "strftime", "00", static, "_strftime" .dbg sym, "buf", "00", auto, 6 .dbg sym, "bufsize", "00", auto, 4 .dbg sym, "format", "00", auto, 2 .dbg sym, "tm", "00", auto, 0 .dbg sym, "ax", "00", auto, -2 .dbg sym, "i", "00", auto, -4 .dbg sym, "len", "00", auto, -6 .segment "CODE" .dbg line, "rp6502/strftime.c", 8 jsr pushax .dbg line, "rp6502/strftime.c", 11 jsr decsp4 ldy #$07 jsr ldaxysp jsr _strlen jsr pushax .dbg line, "rp6502/strftime.c", 12 ldy #$0A lda (c_sp),y iny ora (c_sp),y bne L0002 .dbg line, "rp6502/strftime.c", 13 tax jmp L0001 .dbg line, "rp6502/strftime.c", 15 L0002: jsr ldax0sp cpx #$00 beq L0013 .dbg line, "rp6502/strftime.c", 16 ldx #$00 lda #$07 sta ___errno stz ___errno+1 .dbg line, "rp6502/strftime.c", 17 txa jmp L0001 .dbg line, "rp6502/strftime.c", 19 L0013: lda #$12 ldy #$02 jsr staxysp L0005: ldy #$03 lda (c_sp),y dey ora (c_sp),y beq L0012 .dbg line, "rp6502/strftime.c", 20 ldx #$00 lda #$01 jsr subeqysp clc ldy #$06 adc (c_sp),y sta ptr1 txa iny adc (c_sp),y sta ptr1+1 lda (ptr1) sta $FFEC .dbg line, "rp6502/strftime.c", 21 bra L0005 .dbg line, "rp6502/strftime.c", 24 L0009: ldx #$00 tya jsr subeq0sp clc ldy #$08 adc (c_sp),y sta ptr1 txa iny adc (c_sp),y sta ptr1+1 lda (ptr1) L0012: sta $FFEC .dbg line, "rp6502/strftime.c", 23 ldy #$01 lda (c_sp),y ora (c_sp) bne L0009 .dbg line, "rp6502/strftime.c", 26 lda #$3D jsr _ria_call_int ldy #$04 jsr staxysp .dbg line, "rp6502/strftime.c", 27 cpx #$80 bcc L000C .dbg line, "rp6502/strftime.c", 28 ldx #$00 txa bra L0001 .dbg line, "rp6502/strftime.c", 30 L000C: ldy #$05 jsr ldaxysp ldy #$0A cmp (c_sp),y txa iny sbc (c_sp),y lda #$00 tax bcc L0017 .dbg line, "rp6502/strftime.c", 31 stz $FFEF .dbg line, "rp6502/strftime.c", 32 bra L0001 .dbg line, "rp6502/strftime.c", 34 L0017: ldy #$02 jsr staxysp L000E: ldy #$03 jsr ldaxysp ldy #$04 cmp (c_sp),y txa iny sbc (c_sp),y bcs L000F .dbg line, "rp6502/strftime.c", 35 ldy #$03 jsr ldaxysp clc ldy #$0C adc (c_sp),y sta ptr1 txa iny adc (c_sp),y sta ptr1+1 lda $FFEC sta (ptr1) .dbg line, "rp6502/strftime.c", 34 ldy #$02 ldx #$00 lda #$01 jsr addeqysp bra L000E .dbg line, "rp6502/strftime.c", 37 L000F: jsr ldaxysp clc ldy #$0C adc (c_sp),y sta ptr1 txa iny adc (c_sp),y sta ptr1+1 lda #$00 sta (ptr1) .dbg line, "rp6502/strftime.c", 38 ldy #$05 jsr ldaxysp .dbg line, "rp6502/strftime.c", 39 L0001: ldy #$0E jmp addysp .dbg line .endproc