Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
oidos
Commits
c7bc996d
Commit
c7bc996d
authored
May 10, 2019
by
PoroCYon
Browse files
add easy_elf script, update makedist.sh to reflect previous updates
parent
50214728
Changes
3
Hide whitespace changes
Inline
Side-by-side
easy_elf/build.sh
0 → 100755
View file @
c7bc996d
#!/bin/sh
../convert/oidosconvert.py music.xrns music.asm
&&
\
nasm
-felf32
-I
../player/ ../player/oidos.asm
-o
oidos.o
&&
\
nasm
-felf32
-I
../player/ ../player/random.asm
-o
random.o
&&
\
cc
-m32
../player/play.c
-o
play.o
&&
\
cc
-m32
-o
dump_wav oidos.o random.o play.o
&&
\
rm
-fv
oidos.o random.o play.o music.asm
easy_elf/readme.txt
0 → 100644
View file @
c7bc996d
This setup is for easily building an executable version of a piece of music
created using Oidos.
Proceed as follows:
1. Place your music here, named music.xrns.
2. Edit the music.txt file to contain the text you would like the executable
to print at startup.
3. Edit the wav_filename.txt file to contain the filename (without trailing
newline!) to which the wav writer executable shall write the music.
5. Run build.sh to get the executable which writes the music in WAV format to
the file specified in wav_filename.txt.
If no executables appear, the script encountered an error along the way.
Consult the output window text for details.
Enjoy!
makedist.sh
View file @
c7bc996d
...
@@ -41,6 +41,7 @@ cp player/oidos.asm $DIST/player/
...
@@ -41,6 +41,7 @@ cp player/oidos.asm $DIST/player/
cp
player/oidos.h
$DIST
/player/
cp
player/oidos.h
$DIST
/player/
cp
player/oidos.inc
$DIST
/player/
cp
player/oidos.inc
$DIST
/player/
cp
player/play.asm
$DIST
/player/
cp
player/play.asm
$DIST
/player/
cp
player/play.c
$DIST
/player/
cp
player/random.asm
$DIST
/player/
cp
player/random.asm
$DIST
/player/
# Copy examples
# Copy examples
...
@@ -54,6 +55,14 @@ cp examples/Songs/Punqtured-4k-Fntstc.xrns $DIST/easy_exe/music.xrns
...
@@ -54,6 +55,14 @@ cp examples/Songs/Punqtured-4k-Fntstc.xrns $DIST/easy_exe/music.xrns
mkdir
-p
$DIST
/easy_exe/temp
mkdir
-p
$DIST
/easy_exe/temp
cp
-R
easy_exe/tools
$DIST
/easy_exe/
cp
-R
easy_exe/tools
$DIST
/easy_exe/
# Copy easy_elf
mkdir
-p
$DIST
/easy_elf
cp
easy_elf/build.bat
$DIST
/easy_elf/
cp
easy_elf/
*
.txt
$DIST
/easy_elf/
cp
examples/Songs/Punqtured-4k-Fntstc.xrns
$DIST
/easy_elf/music.xrns
mkdir
-p
$DIST
/easy_elf/temp
cp
-R
easy_elf/tools
$DIST
/easy_elf/
# Copy readme, history and license
# Copy readme, history and license
cp
README.md
$DIST
/
cp
README.md
$DIST
/
cp
HISTORY.md
$DIST
/
cp
HISTORY.md
$DIST
/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment