; ; File generated by cc65 v 2.19 - Git fe19dd1 ; .fopt compiler,"cc65 v 2.19 - Git fe19dd1" .setcpu "HUC6280" .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, "common/perror.c", 2951, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/stdio.h", 6999, 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/errno.h", 5854, 1794640055 .dbg sym, "stderr", "00", extern, "_stderr" .dbg sym, "__errno", "00", extern, "___errno" .import _stderr .import _fprintf .export _perror .import _strerror .import ___errno .segment "RODATA" S0001: .byte $25,$73,$3A,$20,$25,$73,$0A,$00 S0002 := S0001+4 ; --------------------------------------------------------------- ; void __near__ __fastcall__ perror (const char *msg) ; --------------------------------------------------------------- .segment "CODE" .proc _perror: near .dbg func, "perror", "00", static, "_perror" .dbg sym, "msg", "00", auto, 0 .dbg sym, "errormsg", "00", auto, -2 .segment "CODE" .dbg line, "common/perror.c", 43 jsr pushax .dbg line, "common/perror.c", 45 lda ___errno ldx ___errno+1 jsr _strerror jsr pushax .dbg line, "common/perror.c", 48 ldy #$03 lda (c_sp),y dey ora (c_sp),y beq L0002 .dbg line, "common/perror.c", 49 lda _stderr ldx _stderr+1 jsr pushax lda #<(S0001) ldx #>(S0001) jsr pushax ldy #$09 jsr pushwysp ldy #$09 jsr pushwysp ldy #$08 .dbg line, "common/perror.c", 50 bra L0004 .dbg line, "common/perror.c", 51 L0002: lda _stderr ldx _stderr+1 jsr pushax lda #<(S0002) ldx #>(S0002) jsr pushax ldy #$07 jsr pushwysp ldy #$06 L0004: jsr _fprintf .dbg line, "common/perror.c", 53 jmp incsp4 .dbg line .endproc