Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;
- ; File generated by cc65 v 2.13.3
- ;
- .fopt compiler,"cc65 v 2.13.3"
- .setcpu "65816"
- .smart on
- .autoimport on
- .case on
- .debuginfo on
- .importzp sp, sreg, regsave, regbank, tmp1, ptr1, ptr2
- .macpack longbranch
- .dbg file, "cputc.c", 915, 1340431026
- .dbg file, "../../CC65-2.13/include/peekpoke.h", 3108, 1340336462
- .export _cputc
- ; ---------------------------------------------------------------
- ; void __near__ cputc (unsigned char)
- ; ---------------------------------------------------------------
- .segment "CODE"
- .proc _cputc: near
- .segment "DATA"
- L0003:
- .byte $00
- L0005:
- .byte $02
- .segment "CODE"
- ;
- ; POKE( 0x300, cursorRow );
- ;
- .dbg line, "cputc.c", 12
- lda L0005
- sta $0300
- ;
- ; POKE( 0x310+cursorColumn, c );
- ;
- .dbg line, "cputc.c", 15
- lda L0003
- clc
- adc #$10
- sta ptr1
- lda #$00
- adc #$03
- sta ptr1+1
- lda (sp)
- sta (ptr1)
- ;
- ; ++cursorColumn;
- ;
- .dbg line, "cputc.c", 19
- inc L0003
- ;
- ; if( cursorColumn > 79 )
- ;
- .dbg line, "cputc.c", 20
- lda L0003
- cmp #$50
- bcc L0017
- ;
- ; cursorColumn = 0;
- ;
- .dbg line, "cputc.c", 22
- stz L0003
- ;
- ; ++cursorRow;
- ;
- .dbg line, "cputc.c", 23
- inc L0005
- ;
- ; if( cursorRow > 49 )
- ;
- .dbg line, "cputc.c", 24
- lda L0005
- cmp #$32
- bcc L0017
- ;
- ; cursorRow = 49; // Write back over the bottom row for now...
- ;
- .dbg line, "cputc.c", 27
- lda #$31
- sta L0005
- ;
- ; POKE( 0x301, cursorColumn );
- ;
- .dbg line, "cputc.c", 32
- L0017: lda L0003
- sta $0301
- ;
- ; POKE( 0x302, cursorRow );
- ;
- .dbg line, "cputc.c", 33
- lda L0005
- sta $0302
- ;
- ; }
- ;
- .dbg line, "cputc.c", 34
- jmp incsp1
- .dbg line
- .endproc
Add Comment
Please, Sign In to add comment