; ; File generated by cc65 v 2.19 - Git ab8bb268 ; .fopt compiler,"cc65 v 2.19 - Git ab8bb268" .setcpu "6502" .smart on .autoimport on .case on .debuginfo off .importzp sp, sreg, regsave, regbank .importzp tmp1, tmp2, tmp3, tmp4, ptr1, ptr2, ptr3, ptr4 .macpack longbranch .export _localeconv .export _setlocale .segment "DATA" _EmptyString: .byte $00 _lc: .addr _EmptyString .addr S0002 .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" S0002: .byte $2E,$00 S0003: .byte $43,$00 ; --------------------------------------------------------------- ; struct lconv *__near__ localeconv (void) ; --------------------------------------------------------------- .segment "CODE" .proc _localeconv: near .segment "CODE" lda #<(_lc) ldx #>(_lc) rts .endproc ; --------------------------------------------------------------- ; char *__near__ __fastcall__ setlocale (int, const char *locale) ; --------------------------------------------------------------- .segment "CODE" .proc _setlocale: near .segment "CODE" jsr pushax ldy #$00 lda (sp),y iny ora (sp),y beq L000E jsr ldax0sp sta ptr1 stx ptr1+1 ldy #$00 lda (ptr1),y cmp #$43 bne L0010 jsr ldax0sp sta ptr1 stx ptr1+1 ldy #$01 lda (ptr1),y beq L000E jmp L0010 L0010: jsr ldax0sp sta ptr1 stx ptr1+1 ldy #$00 lda (ptr1),y beq L000E ldx #$00 txa jmp L0009 L000E: lda #<(S0003) ldx #>(S0003) L0009: jmp incsp4 .endproc