; ; File generated by cc65 v 2.19 - Git fe19dd1 ; .fopt compiler,"cc65 v 2.19 - Git fe19dd1" .setcpu "65SC02" .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, "main.c", 1488, 1794639822 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/lynx.h", 7273, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/_mikey.h", 9393, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/_suzy.h", 11804, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/tgi.h", 10994, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/tgi/tgi-error.h", 3568, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/target.h", 3090, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/6502.h", 5470, 1794640055 .dbg file, "/data/emu/lynx-python/reference/src/cc65/include/stdint.h", 5720, 1794640055 .dbg file, "../shared/util.h", 1382, 1794639822 .forceimport __STARTUP__ .dbg sym, "tgi_static_stddrv", "00", extern, "_tgi_static_stddrv" .dbg sym, "g_results", "00", extern, "_g_results" .dbg sym, "g_debug_results", "00", extern, "_g_debug_results" .import _tgi_static_stddrv .import _tgi_install .import _tgi_init .import _tgi_clear .import _tgi_setcolor .import _tgi_outtextxy .import _tgi_ioctl .import _run_tests .import _g_results .import _g_debug_results .export _main .segment "DATA" _k_test_names: .addr S0002 .addr S0003 .addr S0004 .addr S0005 .addr S0006 .addr S0007 .addr S0008 .addr S0009 .addr S000A .addr S000B .segment "RODATA" S0001: .byte $30,$31,$32,$33,$34,$35,$36,$37,$38,$39,$41,$42,$43,$44,$45,$46 .byte $00 S0004: .byte $45,$4E,$41,$42,$4C,$45,$20,$50,$48,$41,$53,$45,$00 S000B: .byte $4C,$49,$4E,$4B,$20,$43,$41,$53,$43,$41,$44,$45,$00 S0009: .byte $54,$49,$4D,$45,$52,$20,$57,$52,$49,$54,$45,$53,$00 S000A: .byte $4D,$49,$4B,$45,$59,$20,$41,$43,$43,$45,$53,$53,$00 S0008: .byte $54,$49,$4D,$45,$52,$20,$52,$45,$41,$44,$53,$00 S0003: .byte $54,$36,$3E,$54,$33,$20,$4F,$52,$44,$45,$52,$00 S0005: .byte $43,$4F,$55,$4E,$54,$20,$50,$48,$41,$53,$45,$00 S0002: .byte $54,$33,$3E,$54,$36,$20,$4F,$52,$44,$45,$52,$00 S0006: .byte $50,$52,$45,$53,$43,$41,$4C,$45,$52,$00 S0007: .byte $54,$34,$20,$50,$48,$41,$53,$45,$00 S000D: .byte $50,$41,$53,$53,$00 ; --------------------------------------------------------------- ; void __near__ hex2 (char *out, unsigned char v) ; --------------------------------------------------------------- .segment "CODE" .proc _hex2: near .dbg func, "hex2", "00", static, "_hex2" .dbg sym, "out", "00", auto, 1 .dbg sym, "v", "00", auto, 0 .segment "CODE" .dbg line, "../shared/util.h", 42 jsr pusha .dbg line, "../shared/util.h", 44 ldy #$02 jsr ldaxysp sta sreg stx sreg+1 lda (c_sp) lsr a lsr a lsr a lsr a and #$0F clc adc M0001 ldx M0001+1 bcc L0003 inx L0003: sta ptr1 stx ptr1+1 lda (ptr1) sta (sreg) .dbg line, "../shared/util.h", 45 ldy #$02 jsr ldaxysp ina bne L0002 inx L0002: sta sreg stx sreg+1 lda (c_sp) and #$0F clc adc M0001 ldx M0001+1 bcc L0004 inx L0004: sta ptr1 stx ptr1+1 lda (ptr1) sta (sreg) .dbg line, "../shared/util.h", 46 ldy #$02 jsr ldaxysp jsr incax2 sta ptr1 stx ptr1+1 lda #$00 sta (ptr1) .dbg line, "../shared/util.h", 47 jmp incsp3 .dbg line .segment "DATA" M0001: .addr S0001 .endproc ; --------------------------------------------------------------- ; void __near__ paint_results (void) ; --------------------------------------------------------------- .segment "CODE" .proc _paint_results: near .dbg func, "paint_results", "00", static, "_paint_results" .segment "CODE" .dbg line, "main.c", 52 stz M0002 stz M0002+1 L0002: lda M0002 cmp #$0A lda M0002+1 sbc #$00 bvc L0006 eor #$80 L0006: jpl L0012 .dbg line, "main.c", 54 lda M0002 ldx M0002+1 jsr aslax3 jsr incax2 sta M0003 stx M0003+1 .dbg line, "main.c", 57 lda #$09 jsr _tgi_setcolor .dbg line, "main.c", 58 lda #$09 jsr pusha0 lda M0003 ldx M0003+1 jsr pushax lda M0002 ldx M0002+1 jsr aslax1 clc adc #<(_k_test_names) tay txa adc #>(_k_test_names) tax tya jsr ldaxi jsr _tgi_outtextxy .dbg line, "main.c", 60 lda M0002 sta ptr1 lda M0002+1 clc adc #>(_g_results) sta ptr1+1 ldy #<(_g_results) lda (ptr1),y bne L0011 .dbg line, "main.c", 62 lda #$0A jsr _tgi_setcolor .dbg line, "main.c", 63 lda #>(S000D) sta M0004+1 lda #<(S000D) .dbg line, "main.c", 65 bra L0010 .dbg line, "main.c", 67 L0011: lda #$02 jsr _tgi_setcolor .dbg line, "main.c", 68 lda #<(M0001) ldx #>(M0001) jsr pushax lda M0002 sta ptr1 lda M0002+1 clc adc #>(_g_results) sta ptr1+1 ldy #<(_g_results) lda (ptr1),y jsr _hex2 .dbg line, "main.c", 69 lda #>(M0001) sta M0004+1 lda #<(M0001) L0010: sta M0004 .dbg line, "main.c", 72 lda #$75 jsr pusha0 lda M0003 ldx M0003+1 jsr pushax lda M0004 ldx M0004+1 jsr _tgi_outtextxy .dbg line, "main.c", 52 inc M0002 jne L0002 inc M0002+1 jmp L0002 .dbg line, "main.c", 75 L0012: lda #$0F jsr _tgi_setcolor .dbg line, "main.c", 76 stz M0002 stz M0002+1 L000A: lda M0002 cmp #$0A lda M0002+1 sbc #$00 bvc L000E eor #$80 L000E: bpl L000B .dbg line, "main.c", 78 lda #<(M0001) ldx #>(M0001) jsr pushax lda M0002 sta ptr1 lda M0002+1 clc adc #>(_g_debug_results) sta ptr1+1 ldy #<(_g_debug_results) lda (ptr1),y jsr _hex2 .dbg line, "main.c", 79 lda M0002 ldx M0002+1 jsr aslax4 jsr pushax lda #$5C jsr pusha0 lda #<(M0001) ldx #>(M0001) jsr _tgi_outtextxy .dbg line, "main.c", 76 inc M0002 bne L000A inc M0002+1 bra L000A .dbg line, "main.c", 81 L000B: rts .dbg line .segment "BSS" M0001: .res 4,$00 M0002: .res 2,$00 M0003: .res 2,$00 M0004: .res 2,$00 .endproc ; --------------------------------------------------------------- ; void __near__ main (void) ; --------------------------------------------------------------- .segment "CODE" .proc _main: near .dbg func, "main", "00", static, "_main" .segment "CODE" .dbg line, "main.c", 31 jsr _run_tests .dbg line, "main.c", 33 lda #<(_tgi_static_stddrv) ldx #>(_tgi_static_stddrv) jsr _tgi_install .dbg line, "main.c", 34 jsr _tgi_init .dbg line, "main.c", 36 cli .dbg line, "main.c", 38 L0002: lda #$04 jsr pusha ldx #$00 txa jsr _tgi_ioctl stx tmp1 ora tmp1 bne L0002 .dbg line, "main.c", 39 jsr _tgi_clear .dbg line, "main.c", 41 jsr _paint_results .dbg line, "main.c", 42 lda #$04 jsr pusha ldx #$00 lda #$01 jsr _tgi_ioctl .dbg line, "main.c", 44 L0007: bra L0007 .dbg line .endproc