Skip to content

Commit

Permalink
fix/bug_basic10
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed May 12, 2024
1 parent f071502 commit 5317073
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
15 changes: 13 additions & 2 deletions src/commands/basic11.asm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
.define BASIC11_OFFSET_ROOT_PATH $FE70
.define BASIC11_OFFSET_LENGTH_ROOT_PATH BASIC11_OFFSET_ROOT_PATH-1

.define BASIC10_OFFSET_ROOT_PATH $FCEC
.define BASIC10_OFFSET_ROOT_PATH $FCED
.define BASIC10_OFFSET_LENGTH_ROOT_PATH BASIC10_OFFSET_ROOT_PATH-1
.define BASIC11_OFFSET_FOR_ID_OF_ROM_TO_LOAD $F2
.define BASIC11_MAX_LENGTH_DEFAULT_PATH 16 ; MAX : 32

Expand Down Expand Up @@ -867,9 +868,11 @@ basic11_driver:
lda basic11_mode
cmp #BASIC11_ROM
beq @forge_path_for_atmos

lda basic11_tmp
sta BASIC10_OFFSET_ROOT_PATH,y
sta BASIC10_OFFSET_ROOT_PATH,y ; Put char of the path in BASIC10 path
bne @skip_basic11_forge_path
beq @end_start_with_default_path

@forge_path_for_atmos:
lda basic11_tmp
Expand All @@ -881,6 +884,14 @@ basic11_driver:

@end_start_with_default_path:
; Store the length of the string
lda basic11_mode
cmp #BASIC11_ROM
beq @set_length_to_atmosrom_path

sty BASIC10_OFFSET_LENGTH_ROOT_PATH
bne @manage_others_cases

@set_length_to_atmosrom_path:
sty BASIC11_OFFSET_LENGTH_ROOT_PATH
beq @let_s_start_atmos

Expand Down
6 changes: 2 additions & 4 deletions src/shell.asm
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ RETURN_BANK_READ_BYTE_FROM_OVERLAY_RAM := $78
; lda bash_struct_command_line_ptr
; ldy bash_struct_command_line_ptr+1
; BRK_KERNEL XEXEC
ldx #$00
exec (bash_struct_command_line_ptr)
system (bash_struct_command_line_ptr)
jsr external_cmd
jmp loop
.endproc
Expand Down Expand Up @@ -276,8 +275,7 @@ RETURN_BANK_READ_BYTE_FROM_OVERLAY_RAM := $78
; lda bash_struct_ptr
; ldy bash_struct_ptr+1
; BRK_KERNEL XEXEC
ldx #$00
exec (bash_struct_ptr)
system (bash_struct_ptr)

jsr external_cmd

Expand Down

0 comments on commit 5317073

Please sign in to comment.