Code-style fixes as per PR feedback
This commit is contained in:
@@ -88,7 +88,7 @@ SendBuf: .res 256
|
||||
|
||||
; Tables used to translate RS232 params into register values
|
||||
|
||||
BaudTable: ; bit7 = 1 means setting is invalid
|
||||
BaudTable: ; Bit7 = 1 means setting is invalid
|
||||
.byte $FF ; SER_BAUD_45_5
|
||||
.byte $01 ; SER_BAUD_50
|
||||
.byte $02 ; SER_BAUD_75
|
||||
@@ -353,26 +353,26 @@ SER_IOCTL:
|
||||
;
|
||||
|
||||
SER_IRQ:
|
||||
lda ACIA_STATUS ;(4) ;status ;check for byte received
|
||||
and #$08 ;(2)
|
||||
beq @L9 ;(2*)
|
||||
lda ACIA_STATUS ; (4) Check for byte received
|
||||
and #$08 ; (2)
|
||||
beq @L9 ; (2*)
|
||||
|
||||
@L1: lda ACIA_DATA ;(4) data ;get byte and put into receive buffer
|
||||
ldy RecvTail ;(4)
|
||||
ldx RecvFreeCnt ;(4)
|
||||
beq @L3 ;(2*) Jump if no space in receive buffer
|
||||
sta RecvBuf,y ;(5)
|
||||
inc RecvTail ;(6)
|
||||
dec RecvFreeCnt ;(6)
|
||||
cpx #33 ;(2) check for buffer space low
|
||||
bcc @L2 ;(2*)
|
||||
lda ACIA_DATA ; (4) Get byte and put into receive buffer
|
||||
ldy RecvTail ; (4)
|
||||
ldx RecvFreeCnt ; (4)
|
||||
beq @L3 ; (2*) Jump if no space in receive buffer
|
||||
sta RecvBuf,y ; (5)
|
||||
inc RecvTail ; (6)
|
||||
dec RecvFreeCnt ; (6)
|
||||
cpx #33 ; (2) Check for buffer space low
|
||||
bcc @L2 ; (2*)
|
||||
rts ; Return with carry set (interrupt handled)
|
||||
|
||||
; Assert flow control if buffer space too low
|
||||
|
||||
@L2: lda RtsOff ;(3) assert flow control if buffer space too low
|
||||
sta ACIA_CMD ;(4) command
|
||||
sta Stopped ;(3)
|
||||
@L2: lda RtsOff ; (3)
|
||||
sta ACIA_CMD ; (4)
|
||||
sta Stopped ; (3)
|
||||
@L3: sec ; Interrupt handled
|
||||
@L9: rts
|
||||
|
||||
@@ -396,7 +396,7 @@ SER_IRQ:
|
||||
@L2: lda ACIA_STATUS
|
||||
and #$10
|
||||
bne @L4
|
||||
bit tmp1 ;keep trying if must try hard
|
||||
bit tmp1 ; Keep trying if must try hard
|
||||
bmi @L0
|
||||
@L3: rts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user