style(buzbee): fixed hex style to be more conventional
This commit is contained in:
10
src/buzbee.s
10
src/buzbee.s
@@ -42,7 +42,7 @@ BBVAR tagbbvar
|
|||||||
BUZBEE
|
BUZBEE
|
||||||
lbsr NEWLINE ; Setup the new input line and handle display.
|
lbsr NEWLINE ; Setup the new input line and handle display.
|
||||||
bsr INPLOOP ; Fill input buffer.
|
bsr INPLOOP ; Fill input buffer.
|
||||||
cmpy #$0000 ; No data?
|
cmpy #0 ; No data?
|
||||||
beq BUZBEE ; Try again...
|
beq BUZBEE ; Try again...
|
||||||
; TODO: Parse the input buffer into tokens
|
; TODO: Parse the input buffer into tokens
|
||||||
lbsr RUNIF
|
lbsr RUNIF
|
||||||
@@ -58,7 +58,7 @@ BUZBEE
|
|||||||
; offset in the input buffer of the last char read.
|
; offset in the input buffer of the last char read.
|
||||||
INPLOOP
|
INPLOOP
|
||||||
jsr PINCHAR ; Try to read a char
|
jsr PINCHAR ; Try to read a char
|
||||||
cmpd #$0000 ; If no char keep waitin'
|
cmpd #0 ; If no char keep waitin'
|
||||||
beq INPLOOP
|
beq INPLOOP
|
||||||
bitb #UARTF_LSR_DR ; Is there a char in A?
|
bitb #UARTF_LSR_DR ; Is there a char in A?
|
||||||
beq NOCHAR@
|
beq NOCHAR@
|
||||||
@@ -101,7 +101,7 @@ HCR@
|
|||||||
HESC@
|
HESC@
|
||||||
lda #'^ ; Print a char that signifies that ESC was pressed
|
lda #'^ ; Print a char that signifies that ESC was pressed
|
||||||
jsr POUTCHAR
|
jsr POUTCHAR
|
||||||
ldy #$0000 ; On return we cmpy #$0000 and if eq then newline.
|
ldy #0 ; On return we cmpy #0 and if eq then newline
|
||||||
rts
|
rts
|
||||||
HBACKSPC@
|
HBACKSPC@
|
||||||
clrb ; Clear last char
|
clrb ; Clear last char
|
||||||
@@ -118,13 +118,13 @@ NEWLINE
|
|||||||
PZSTR PROMPTLINE ; Print prompt line
|
PZSTR PROMPTLINE ; Print prompt line
|
||||||
CLRIN ; Label to just clear input buffer without newline
|
CLRIN ; Label to just clear input buffer without newline
|
||||||
clra ; Init A and X
|
clra ; Init A and X
|
||||||
ldx #$0000
|
ldx #0
|
||||||
NEXT@
|
NEXT@
|
||||||
sta BBVAR.input,x ; Clear input buffer
|
sta BBVAR.input,x ; Clear input buffer
|
||||||
leax 1,x
|
leax 1,x
|
||||||
cmpx #BBIN_DEPTH
|
cmpx #BBIN_DEPTH
|
||||||
blo NEXT@
|
blo NEXT@
|
||||||
ldy #$0000 ; Reset buffer fill pointer
|
ldy #0 ; Reset buffer fill pointer
|
||||||
rts
|
rts
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
Reference in New Issue
Block a user