Skip to content

Commit

Permalink
fix for pre release
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Jan 15, 2024
1 parent f0999f9 commit 73b3170
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ jobs:
- name: Check unit-test
run: |
ls -l ${GITHUB_WORKSPACE}/oricutron/sdcard/
bash tests/unit_test/verify.sh ${GITHUB_WORKSPACE}/oricutron/sdcard/
bash tests/unit-tests/verify.sh ${GITHUB_WORKSPACE}/oricutron/sdcard/
- name: List build directory content
run: ls -lR build
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Shell rom source code

Github action : [![build](https://github.com/orix-software/shell/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/orix-software/shell/actions/workflows/main.yml)

# Build code
## Build

./configure
make
Expand All @@ -10,7 +12,7 @@ Maintainers :
* Jede
* Assinie

# Shell for Orix (ROM)
## Shell for Orix (ROM)

How to compile ?

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.4
2024.1
6 changes: 4 additions & 2 deletions docs/sh.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ When kernel has finished to initialize at boot time, sh command is started in in

## Available commands

The command line is limited in characters (37). If you reach this limit, you wont be able to type the complete command line Known bugs
The command line is limited in characters (37). If you reach this limit, you won't be able to type the complete command line

* « ./ » can be used to launch a binary since Kernel v2023.2
## Known bugs

* "./" can be used to launch a binary since Kernel v2023.2
8 changes: 5 additions & 3 deletions src/commands/debug.asm
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
crlf

; FIXME macro
lda #$09
ldy #$02

BRK_KERNEL XMALLOC
malloc #$209

; A & Y are the ptr here
BRK_KERNEL XFREE

rts

mount_sdcard:
lda #CH376_SET_USB_MODE ; $15
sta CH376_COMMAND
Expand All @@ -62,6 +62,7 @@ mount_sdcard:
beq ok
print str_error_sdcard
rts

ok:
print str_ok_sdcard
rts
Expand All @@ -79,6 +80,7 @@ mount_key:
beq ok2
print str_error_key
rts

ok2:
print str_ok_key
rts
Expand Down
3 changes: 3 additions & 0 deletions src/commands/help.asm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
inc help_argv1_ptr
bne @skip31
inc help_argv1_ptr+1

@skip31:
lda (help_argv1_ptr),y
cmp #' '
Expand Down Expand Up @@ -158,6 +159,7 @@ list_command_in_bank:
ora #%00100000
sta $342
pla

@do_not_switch_to_ram_bank:
jsr _twil_get_registers_from_id_bank
; A bank
Expand Down Expand Up @@ -229,6 +231,7 @@ list_command_in_bank:
sty help_ptr2
dec help_number_command
bne @loopme

@out:
lda help_ID_BANK_TO_READ_FOR_READ_BYTE_save
sta ID_BANK_TO_READ_FOR_READ_BYTE
Expand Down
6 changes: 4 additions & 2 deletions src/shell.asm
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +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)
jsr external_cmd
jmp loop
Expand All @@ -231,7 +232,7 @@ RETURN_BANK_READ_BYTE_FROM_OVERLAY_RAM := $78
lda (bash_struct_ptr),y
beq @shell_extension_not_loaded
; Disable for bug : Quannd on lance bootcfg et que cela lance cp, on se retrouve à essayer d'enregister la commande tapée alors que la rom history n'est pas chargée

; jsr register_command_line

lda TWILIGHTE_REGISTER
Expand Down Expand Up @@ -275,6 +276,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)

jsr external_cmd
Expand Down Expand Up @@ -1326,7 +1328,7 @@ str_max_malloc_reached:
.asciiz "Max number of malloc reached"

signature:
.asciiz "Shell v2023.4"
.asciiz "Shell v2024.1"

shellext_found:
.byte "Shell extentions found",$0A,$0D,$00
Expand Down

0 comments on commit 73b3170

Please sign in to comment.