Skip to content

Commit

Permalink
fix reloc
Browse files Browse the repository at this point in the history
  • Loading branch information
jedeoric committed Jan 6, 2024
1 parent bd13418 commit 367bfbc
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
data/
build/
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ endif
$(PROGRAM): $(SOURCE)
mkdir build/bin -p
mkdir build/usr/share/man -p
$(CC) -o 1000 $(CFLAGS) $(LDFILES) $(SOURCE) --start-addr \$800
$(CC) -o 1256 $(CFLAGS) $(LDFILES) $(SOURCE) --start-addr \$900


$(CC) -o 1000 $(CFLAGS) $(LDFILES) $(SOURCE) --start-addr 2048
$(CC) -o 1256 $(CFLAGS) $(LDFILES) $(SOURCE) --start-addr 2304
# Reloc
chmod +x deps/orix-sdk/bin/relocbin.py3
deps/orix-sdk/bin/relocbin.py3 -o build/bin/file -2 1000 1256
cd docs && ../../md2hlp/src/md2hlp.py3 --file file.md --output ../build/usr/share/man/file.hlp && cd ..

package:
cp build/* package/ -adpR
cd package/file && dpkg-deb --build file
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
# file binary source code

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

File tool for Orix : http://orix.oric.org

manage raw file, orix binary file.

Changelog :
## Changelog

### 07/01/2024 : 2024.1

-* fix reloc

### 20/11/2017 : 1.0.4

20/11/2017 : 1.0.4
* -v management and -h

18/11/2017 : 1.0.3
### 18/11/2017 : 1.0.3

* gzip format detection

22/09/2017
### 22/09/2017

* wav file management

31/08/2017
* VHI files management
### 31/08/2017

* VHI files management
display number of frames
the size of the frame

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022.4
2024.1
2 changes: 1 addition & 1 deletion docs/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ Detects file : orix, wav, gz, lz77, tape, vhi

## SOURCE

Src code : https://github.com/orix-software/file.git (Assembly and C)
Src code : https://github.com/orix-software/file (Assembly and C)
9 changes: 9 additions & 0 deletions package/file/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: file
Version: 2024.1
Section: base
Priority: optional
Architecture: 6502
#Depends:
Maintainer: jede <[email protected]>
Description: file binary for checking file type
Homepage: https://orix.oric.org
16 changes: 7 additions & 9 deletions src/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ void version() {
}

void script_file() {
printf("Script file\n");
printf("Script file\n");
return;
}

void tap_file() {
printf("TAP file\n");
printf("TAP file\n");
printf("Starting adress : $%02hhX%02hhX\n",chars[10],chars[11]);
printf("End of loading adress : $%02hhX%02hhX\n",chars[8],chars[9]);
return;
Expand Down Expand Up @@ -53,8 +53,8 @@ void wav_file() {
break;
default :
printf(" Unknown %d\n",temp);
}
}

temp=chars[20]+chars[21]*256;
printf(" Nbrchannel :");
switch(temp) {
Expand All @@ -66,7 +66,7 @@ void wav_file() {
break;
case 3 :
printf(" left, right et center \n");
break;
break;
case 4 :
printf(" left front, right front, back left, back right \n");
break;
Expand All @@ -75,7 +75,7 @@ void wav_file() {
break;
case 6 :
printf(" left center, left, centee, right center, right, surround (ambiant) \n");
break;
break;
default :
printf(" Unknown \n");
}
Expand All @@ -84,7 +84,7 @@ void wav_file() {
printf(" BytePerBloc : %d\n",chars[30]+chars[31]*256);
printf(" BitsPerSample : %d\n",chars[32]+chars[33]*256);
return;

/*
[Bloc de déclaration d'un fichier au format WAVE]
FileTypeBlocID (4 octets) : Constante «RIFF» (0x52,0x49,0x46,0x46)
Expand Down Expand Up @@ -120,8 +120,6 @@ NOTES IMPORTANTES : Les octets des mots sont stockés sous la forme (c.-à-d.,
*/
}



void vhi_file() {
printf("VHI file\n");
printf("Format : ");
Expand Down

0 comments on commit 367bfbc

Please sign in to comment.