Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Includes updated build system.
- Loading branch information
Showing
11 changed files
with
155 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ReadMe.txt -crlf | ||
make.bat -crlf | ||
make.bat-dist -crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.* | ||
!.gitignore | ||
dist/ | ||
pacemu.dsk | ||
pacemu.sym | ||
pacemu-master.dsk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
DISK=pacemu.dsk | ||
ROMS=pacman.6e pacman.6f pacman.6h pacman.6j | ||
|
||
.PHONY: dist clean | ||
|
||
#tiles.bin: tiles.png | ||
# ./png2bin.pl $< 6 | ||
|
||
#sprites.bin: sprites.png | ||
# ./png2bin.pl $< 12 | ||
|
||
$(DISK): pacemu.asm tiles.bin sprites.bin $(ROMS) | ||
pyz80.py --exportfile=pacemu.sym pacemu.asm | ||
|
||
dist: | ||
rm -rf dist | ||
mkdir dist | ||
cp ReadMe.txt dist/ | ||
cp Makefile-dist dist/Makefile | ||
cp make.bat-dist dist/make.bat | ||
./remove_rom.pl | ||
mv disk.base dist/ | ||
|
||
clean: | ||
rm -f $(DISK) pacemu.sym | ||
# rm -f tiles.bin sprites.bin | ||
rm -f disk.base | ||
rm -rf dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DISK=pacemu.dsk | ||
ROMS=pacman.6e pacman.6f pacman.6h pacman.6j | ||
|
||
$(DISK): disk.base $(ROMS) | ||
cat disk.base $(ROMS) > $(DISK) | ||
|
||
clean: | ||
rm -f $(DISK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Pac-Man Emulator for SAM Coupe (v1.2) | ||
------------------------------------- | ||
|
||
The Pac-Man ROMs cannot be supplied with this program, so you must provide | ||
your own copies of the following files (from the Midway ROM set): | ||
|
||
pacman.6e pacman.6f pacman.6h pacman.6j | ||
|
||
Copy them to the same directory as this file, then run make.bat (Windows). | ||
Under Mac/Linux/Un*x, use make to build the final pacemu.dsk disk image, | ||
or combine manually using: | ||
|
||
cat disk.base pacman.6[efhj] > pacemu.dsk | ||
|
||
Enjoy! | ||
|
||
--- | ||
|
||
Version 1.2 (2012/01/17) | ||
- Improved sprite draw/restore/clip code for extra speed | ||
- Faster tile updates when no sprites are visible | ||
- Added boot-time selection of Hard difficulty | ||
- Added SAM joystick 1 and QAOP input methods | ||
- Improved control handling, favouring latest direction change | ||
- Skip RAM-check for faster startup | ||
- Easier method to add ROMs to form final disk image | ||
|
||
|
||
Version 1.1a (2004/10/09) | ||
- Added build-time control of tile strip count, for Mayhem accelerator | ||
|
||
Version 1.1 (2004/10/01) | ||
- Changed code from Assembly Studio 8x to pyz80 (Comet) format | ||
- Simplified build setup, moving a few things around | ||
|
||
Version 1.0 (2004/01/17) | ||
- Initial release | ||
|
||
--- | ||
|
||
Simon Owen | ||
http://simonowen.com/sam/pacemu/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@echo off | ||
|
||
if "%1"=="clean" goto clean | ||
if "%1"=="dist" goto dist | ||
|
||
rem png2bin.pl tiles.png 6 | ||
rem png2bin.pl sprites.png 12 | ||
|
||
pyz80.py --exportfile=pacemu.sym pacemu.asm | ||
goto end | ||
|
||
:dist | ||
if not exist dist mkdir dist | ||
copy ReadMe.txt dist\ | ||
copy Makefile-dist dist\Makefile | ||
copy make.bat-dist dist\make.bat | ||
remove_rom.pl | ||
move disk.base dist\ | ||
goto end | ||
|
||
:clean | ||
if exist pacemu.dsk del pacemu.dsk pacemu.sym | ||
rem if exist tiles.bin del tiles.bin sprites.bin | ||
if exist dist\ del dist\Makefile dist\make.bat dist\disk.base | ||
if exist dist\pacemu.dsk del dist\pacemu.dsk | ||
if exist dist\ rmdir dist | ||
|
||
:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@echo off | ||
|
||
if not exist pacman.6e goto missing | ||
if not exist pacman.6f goto missing | ||
if not exist pacman.6h goto missing | ||
if not exist pacman.6j goto missing | ||
goto got_roms | ||
|
||
:missing | ||
echo. | ||
echo **************************************************************** | ||
echo. | ||
echo The Pac-Man ROMs can't be distributed with this program, so you | ||
echo must provide your own copies of: | ||
echo. | ||
echo pacman.6e pacman.6f pacman.6h pacman.6j | ||
echo. | ||
echo Copy them to this directory and re-run to generate: pacemu.dsk | ||
echo. | ||
echo **************************************************************** | ||
echo. | ||
pause | ||
goto end | ||
|
||
:got_roms | ||
copy /b disk.base+pacman.6e+pacman.6f+pacman.6h+pacman.6j pacemu.dsk | ||
|
||
start pacemu.dsk | ||
|
||
:end |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/perl -w | ||
|
||
$file = 'pacemu-master.dsk'; | ||
open FILE, "<$file" and binmode FILE or die "$file: $!\n"; | ||
read FILE, $data='', -s $file; | ||
close FILE; | ||
|
||
$file = 'disk.base'; | ||
open FILE, ">$file" and binmode FILE or die "$file: $!\n"; | ||
print FILE substr $data, 0, 819200-16384; | ||
close FILE; |