use expression parser for fetching filename
This commit is contained in:
1 parent
08f6fe9ed7
commit
c150dbacc7
3 files changed
+16
-44
No files matched your search
@@ -6,7 +6,8 @@
|
||||
basic_main_loop:
|
||||
|
||||
// Tell user we are ready
|
||||
jsr ready_message
|
||||
ldx #30
|
||||
jsr print_packed_message
|
||||
|
||||
// Enable Kernal messages
|
||||
lda #$80
|
||||
@@ -16,7 +17,6 @@ basic_read_next_line:
|
||||
// Read a line of input
|
||||
ldx #$00
|
||||
read_line_loop:
|
||||
|
||||
jsr JCHRIN
|
||||
bcs read_line_loop
|
||||
|
||||
@@ -24,11 +24,8 @@ read_line_loop:
|
||||
beq got_line_of_input
|
||||
// Not carriage return, so try to append to line so far
|
||||
cpx #80
|
||||
bcc !+
|
||||
// Report STRING TOO LONG error (Computes Mapping the 64 p93)
|
||||
ldx #22
|
||||
jmp do_basic_error
|
||||
!:
|
||||
bcs_16 do_STRING_TOO_LONG_error // see Computes Mapping the 64 p93
|
||||
|
||||
sta BUF,x
|
||||
inx
|
||||
jmp read_line_loop
|
||||
|
||||
Reference in new issue
Block a user