Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #138

Merged
merged 24 commits into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
orix-sdk/**/*
md2hlp/**/*
orix-software/**/*
oricutron/**/*
key: ${{ secrets.CACHE_ID }}-orix-sdk_

- name: Checkout cc65
Expand Down Expand Up @@ -68,10 +69,18 @@ jobs:
echo "src/include" >> .git/info/sparse-checkout
git checkout

- name: Compile orix-sdk
- name: Prepare environment for oricutron
if: steps.cache-sdk.outputs.cache-hit != 'true'
working-directory: orix-sdk
run: mkdir -p build/{lib,bin} && CC65_HOME=${GITHUB_WORKSPACE}/cc65 make lib
run: |
sudo apt-get install -y xvfb libgtk-3-0 libgtk-3-dev libsdl1.2debian libsdl1.2-dev
git clone https://github.com/pete-gordon/oricutron.git
cd oricutron && make && pwd && cd .. && ls -l && echo ${GITHUB_WORKSPACE}
echo Timeout oricutron : $secret.TMOUT_ORICUTRON

# - name: Compile orix-sdk
# if: steps.cache-sdk.outputs.cache-hit != 'true'
# working-directory: orix-sdk
# run: mkdir -p build/{lib,bin} && CC65_HOME=${GITHUB_WORKSPACE}/cc65 make lib

- name: Display tools
run: |
Expand Down Expand Up @@ -109,6 +118,7 @@ jobs:
orix-sdk/**/*
md2hlp/**/*
orix-software/**/*
oricutron/**/*
key: ${{ secrets.CACHE_ID }}-orix-sdk_

- name: Prepare environment for project
Expand All @@ -117,6 +127,21 @@ jobs:
- name: Compile project
run: CC65_HOME=${GITHUB_WORKSPACE}/../cc65 make

- name: Unit-test with oricutron
run: |
git clone https://github.com/orix-software/docker-unit-test.git
cd docker-unit-test && bash install.sh ${GITHUB_WORKSPACE} && cd ..
cp build/usr/share/shell/shellsd.rom ${GITHUB_WORKSPACE}/oricutron/roms/shell.rom
cat tests/unit-tests/commands.sub > ${GITHUB_WORKSPACE}/oricutron/sdcard/ETC/AUTOBOOT
#cat tests/unit_test/xrm.sub >> ${GITHUB_WORKSPACE}/oricutron/sdcard/ETC/AUTOBOOT
cd ${GITHUB_WORKSPACE}/oricutron
timeout --preserve-status 5 ./xvfb.sh || exit 0

- name: Check unit-test
run: |
ls -l ${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
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CFLAGS=-ttelestrat
LDFILES=
ROM=shell

all : init build after_success
all : init build after_success docs
.PHONY : all

SOURCE=src/$(ROM).asm
Expand Down Expand Up @@ -40,6 +40,9 @@ build: $(SOURCE)
$(AS) $(CFLAGS) $(SOURCE) -DWITH_SDCARD_FOR_ROOT=1 -o $(ROM)sd.ld65 --debug-info
$(LD) -vm -m map7banks.txt -DWITH_SDCARD_FOR_ROOT=1 -DWITH_TWILIGHTE_BOARD=1 -Ln memorymap.txt -tnone $(ROM)sd.ld65 -o $(ROM)tsd.rom libs/lib8/twil.lib libs/lib8/ch376.lib

docs:
sh tools/builddocs.sh

after_success:
ls -l
ls -l ../
Expand All @@ -50,7 +53,7 @@ after_success:
cp data/USR/SHARE/FONTS/* build/usr/share/fonts/ -adpR
cp shellsd.rom build/usr/share/shell/
cp shellus.rom build/usr/share/shell/
sh tools/builddocs.sh

cp Makefile build/usr/src/shell/
cp README.md build/usr/src/shell/
cp src/* build/usr/src/shell/src/ -adpR
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.3
2024.1
23 changes: 21 additions & 2 deletions docs/basic11.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# basic11

## Usage

basic11 [-g] [-l] [-p defaultpath]

## Introduction

basic11 starts Atmos rom. You can type basic11 or press FUNCT+B to start.
Expand Down Expand Up @@ -135,7 +139,7 @@ Fire flash, Scuba Dive, 3D fongus (i,f letters)

## Some informations to start .tap file

+ Le trésor du pirate : check information on www.oric.org (on "Trésor du pirate" software page), it explains on to proceed when the games is CLOAD'ed
Le tresor du pirate : check information on www.oric.org (on "Tresor du pirate" software page), it explains on to proceed when the games is CLOAD'ed

## Joysticks issues

Expand All @@ -151,6 +155,7 @@ could in the future.
+ basic11
+ basic11 -g
+ basic11 -l
+ basic11 -p path
+ basic11 "MYTAPE

## DESCRIPTION
Expand All @@ -162,11 +167,25 @@ Cload works with .tap file. Multitap files works too.
Get a tape file, and place it in the root folder of the sdcard.

Starts basic11 :

```bash
/#basic11
```

or

```bash
/#basic11 "DEFENDER"
```

A path can be specified :

```bash
/#basic11 -p /home/jede
```

CLOAD"ZORGONS => it will load zorgons.tap
In basic rom :
CLOAD "ZORGONS => it will load zorgons.tap

## SOURCE

Expand Down
Binary file added docs/imgs/loader_demo_menu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/loader_img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/loader_infos.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/imgs/loader_rommenu.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/loader.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Loader

Launch Oric-1/Atmos .tap files, Roms

## Features

### Tapes files

Launch basic11 or basic10 binary.

If .tap atmos version is avaiable, loader will launch atmos version (*basic11*).
If the .tap works with Oric-1 only, it will starts *basic10*
2 changes: 1 addition & 1 deletion docs/ls.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Display catalog

List all the file in the current folder. Token are supported (*,?) ex : « ls ?e.tap » will list all files with a ‘e ’ in the
List all the file in the current folder. Token are supported (*,?) ex : 'ls ?e.tap' will list all files with a 'e' in the
second letter

## SYNOPSYS
Expand Down
4 changes: 3 additions & 1 deletion docs/lscpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Displays cpu info. It detects : 6502, 65c02 and 65816

## SYNOPSYS

+ lscpu
```bash
lscpu
```

## DESCRIPTION

Expand Down
4 changes: 3 additions & 1 deletion docs/lsmem.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Displays malloc table

## SYNOPSYS

+ lsmem
```bash
lsmem
```

## DESCRIPTION

Expand Down
4 changes: 2 additions & 2 deletions docs/man.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# man

![man](imgs/man.png)

## Introduction

display manual pages
Expand All @@ -27,3 +25,5 @@ Displays manual. All .hlp files are located in /usr/share/man/. It manages multi
## SOURCE

https://github.com/orix-software/shell/blob/master/src/commands/man.asm

![man](imgs/man.png)
3 changes: 2 additions & 1 deletion docs/md2hlp.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ cite = _|,


link = ^T,^P
image = None

ink_black = ^@
ink_red = ^A
Expand Down Expand Up @@ -64,7 +65,7 @@ paper_white = ^W
;
; Default for Heading 1
;
Head = __^J ^Q_Shell 2023.3 ^P___
Head = __^J ^Q_Shell 2023.4 ^P___

[Heading3]
;
Expand Down
2 changes: 1 addition & 1 deletion docs/meminfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Displays memory info

## SOURCE

https://github.com/orix-software/shell/blob/master/src/commands/meminfo.asm
https://github.com/orix-software/shell/blob/master/src/commands/meminfo.asm
4 changes: 3 additions & 1 deletion docs/mkdir.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Create a folder

## SYNOPSYS

+ mkdir PATH
```bash
/#mkdir PATH
```

## DESCRIPTION

Expand Down
4 changes: 2 additions & 2 deletions docs/mount.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# mount

![mount](imgs/mount.png)

## Introduction

Displays mounts
Expand All @@ -17,3 +15,5 @@ Displays mount (usb key or sdcard)
## SOURCE

https://github.com/orix-software/shell/blob/master/src/commands/mount.asm

![mount](imgs/mount.png)
4 changes: 2 additions & 2 deletions docs/otimer.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# otimer

![otimer](imgs/otimer.png)

## Introduction

Display timer since the Oric is power on
Expand All @@ -17,3 +15,5 @@ Each time Oric reboots, this timer is reset.
## SOURCE

https://github.com/orix-software/shell/blob/master/src/commands/otimer.asm

![otimer](imgs/otimer.png)
4 changes: 2 additions & 2 deletions docs/ps.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# ps

![ps](imgs/ps.png)

## Introduction

Displays process list
Expand All @@ -21,3 +19,5 @@ Displays process list
## SOURCE

https://github.com/orix-software/shell/blob/master/src/commands/ps.asm

![ps](imgs/ps.png)
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
35 changes: 0 additions & 35 deletions run.bat

This file was deleted.

Loading
Loading