; ; 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, "locale.c", 1634, 1065131069 .dbg file, "../../include/locale.h", 3420, 1113768568 .dbg file, "../../include/limits.h", 2978, 1039954353 .export _localeconv .export _setlocale .segment "DATA" _EmptyString: .byte $00 _lc: .addr _EmptyString .addr L0001 .addr _EmptyString .addr _EmptyString .addr _EmptyString .addr _EmptyString .addr _EmptyString .addr _EmptyString .addr _EmptyString .addr _EmptyString .byte $FF .byte $FF .byte $FF .byte $FF .byte $FF .byte $FF .byte $FF .byte $FF .segment "RODATA" L0001: .byte $2E,$00,$C3,$00 ; --------------------------------------------------------------- ; struct lconv* __near__ localeconv (void) ; --------------------------------------------------------------- .segment "CODE" .proc _localeconv: near .segment "CODE" ; ; return &lc; ; .dbg line, "locale.c", 54 lda #<(_lc) ldx #>(_lc) ; ; } ; .dbg line, "locale.c", 55 rts .dbg line .endproc ; --------------------------------------------------------------- ; unsigned char* __fastcall__ setlocale (int, const unsigned char*) ; --------------------------------------------------------------- .segment "CODE" .proc _setlocale .segment "CODE" ; ; { ; .dbg line, "locale.c", 60 jsr pushax ; ; if (locale == 0 || (locale [0] == 'C' && locale [1] == '\0') || locale [0] == '\0') { ; .dbg line, "locale.c", 61 ldy #$00 lda (sp),y iny ora (sp),y beq L0018 jsr ldaxysp ldy #$00 sta ptr1 stx ptr1+1 lda (ptr1),y cmp #$C3 bne L0024 iny jsr ldaxysp ldy #$01 sta ptr1 stx ptr1+1 lda (ptr1),y beq L0018 L0024: ldy #$01 jsr ldaxysp ldy #$00 sta ptr1 stx ptr1+1 lda (ptr1),y bne L0017 ; ; return "C"; ; .dbg line, "locale.c", 63 L0018: lda #<(L0001+2) ldx #>(L0001+2) jmp incsp4 ; ; return 0; ; .dbg line, "locale.c", 66 L0017: ldx #$00 txa ; ; } ; .dbg line, "locale.c", 68 jmp incsp4 .dbg line .endproc