Re-introduce necessary comments, wit a clearer wording

This commit is contained in:
Colin Leroy-Mira
2023-10-03 17:48:54 +02:00
committed by Oliver Schmidt
parent 3c17c13357
commit 9667a5f991
2 changed files with 7 additions and 7 deletions

View File

@@ -300,17 +300,17 @@ SER_OPEN:
; Device (hardware) not found
NoDev: lda #SER_ERR_NO_DEVICE
ldx #$00
ldx #$00 ; Promote char return value
rts
; Invalid parameter
InvParm:lda #SER_ERR_INIT_FAILED
ldx #$00
ldx #$00 ; Promote char return value
rts
; Baud rate not available
InvBaud:lda #SER_ERR_BAUD_UNAVAIL
ldx #$00
ldx #$00 ; Promote char return value
rts
;----------------------------------------------------------------------------
@@ -325,7 +325,7 @@ SER_GET:
cmp #$FF
bne :+
lda #SER_ERR_NO_DATA
ldx #$00
ldx #$00 ; Promote char return value
rts
: ldy Stopped ; Check for flow stopped
@@ -373,7 +373,7 @@ SER_PUT:
ldy SendFreeCnt ; Reload SendFreeCnt after TryToSend
bne :+
lda #SER_ERR_OVERFLOW
ldx #$00
ldx #$00 ; Promote char return value
rts
: ldy SendTail ; Put byte into send buffer
@@ -421,7 +421,7 @@ SER_IOCTL:
rts
: lda #SER_ERR_INV_IOCTL
ldx #$00
ldx #$00 ; Promote char return value
rts
;----------------------------------------------------------------------------