; ; 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, "asctime.c", 3053, 1037194125 .dbg file, "../../include/stdio.h", 5945, 1113916546 .dbg file, "../../include/stddef.h", 2974, 1061022172 .dbg file, "../../include/stdarg.h", 2817, 1102777145 .dbg file, "../../include/time.h", 4812, 1121601586 .export _asctime .import _strftime .segment "RODATA" L0001: .byte $25,$43,$0D,$00 ; --------------------------------------------------------------- ; unsigned char* __fastcall__ asctime (const struct tm*) ; --------------------------------------------------------------- .segment "CODE" .proc _asctime .segment "BSS" L0006: .res 26,$00 .segment "CODE" ; ; { ; .dbg line, "asctime.c", 48 jsr pushax ; ; return strftime (buf, sizeof (buf), "%c\n", timep)? buf : 0; ; .dbg line, "asctime.c", 52 jsr decsp6 lda #<(L0006) ldx #>(L0006) ldy #$04 sta (sp),y iny txa sta (sp),y lda #$1A ldy #$02 sta (sp),y iny lda #$00 sta (sp),y lda #<(L0001) ldx #>(L0001) ldy #$00 sta (sp),y iny txa sta (sp),y ldy #$07 jsr ldaxysp jsr _strftime stx tmp1 ora tmp1 beq L000D lda #<(L0006) ldx #>(L0006) jmp incsp2 L000D: tax ; ; } ; .dbg line, "asctime.c", 53 jmp incsp2 .dbg line .endproc