1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-09 13:25:06 +00:00

Incorporated another round of feedback for pull request.

Adjusted comment formatting in several assembler files.
Removed dummy kbhit() function, as it's better to get a linker
error than an implementation that does the wrong thing.
This commit is contained in:
Stephan Mühlstrasser
2015-02-18 18:38:42 +01:00
parent e178a33d29
commit 92e75e9df8
7 changed files with 23 additions and 35 deletions

View File

@@ -139,8 +139,7 @@ There are no loadable drivers available.
<sect1>conio implementation<p>
The conio implementation is complete except for a working kbhit() function.
kbhit() currently returns true unconditionally.
The conio implementation is complete except for a kbhit() function.
<sect1>stdio implementation<p>

View File

@@ -12,7 +12,7 @@
BANKS = VIDEORAMSIZE / $100
_clrscr:
lda #$20 ;' '
lda #$20 ; ' '
ldy #BANKS
ldx #$00
staloc:
@@ -22,10 +22,10 @@ staloc:
inc staloc+2
dey
bne staloc
lda #>(SCRNBASE); load high byte
sta staloc+2 ; restore base address
lda #>(SCRNBASE) ; Load high byte
sta staloc+2 ; Restore base address
lda #$00 ; cursor in upper left corner
lda #$00 ; Cursor in upper left corner
sta CURS_X
sta CURS_Y
jmp plot ; Set the cursor position

View File

@@ -48,7 +48,7 @@ _init: ldx #$FF ; Initialize stack pointer to $01FF
jsr _main
; ---------------------------------------------------------------------------
; Back from main (this is also the _exit entry): force a software break
; Back from main (this is also the _exit entry):
_exit: jsr donelib ; Run destructors
jmp RESET ; Display boot menu after program exit

View File

@@ -1,11 +0,0 @@
;
; int kbhit (void);
;
; Currently a dummy function that returns always true
.export _kbhit
_kbhit:
lda #$01 ; load low byte with true value
ldx #$00 ; load high byte
rts