Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
salvacam committed Feb 21, 2021
0 parents commit cce4053
Show file tree
Hide file tree
Showing 104 changed files with 18,999 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*.o
*.a
11 changes: 11 additions & 0 deletions AUTHORS.txt
@@ -0,0 +1,11 @@
XRoar - a Dragon/Tandy Coco emulator

Ciaran Anscomb xroar(at)6809.org.uk

Homepage: http://www.6809.org.uk/dragon/xroar.shtml

PSPDragon / GP2XDragon : Porting to PSP and GP2X

Ludovic Jacomme alias Zx-81 zx81.zx81(at)gmail.com

Homepage: http://zx81.zx81.free.fr
341 changes: 341 additions & 0 deletions COPYING.txt

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions ChangeLog.txt
@@ -0,0 +1,16 @@
1.0.2

- Fix sound issue using the patch sent by original X-roar's author,
aka Ciaran himself (big thanks to him !!)
- Bug fix with volume settings (it didn't work properly)
- A thumbnail image is now displayed in the file requester
while selecting any file with the same name of a previously
saved game (rom, keyboard, settings).
It might be very helpful to recognize that game later if you
have thousand different games on your disk and rom folders !
- The virtual keyboard is now usable in the file requester menu to
choose the first letter of the game you search !

1.0.1

- Intial release
181 changes: 181 additions & 0 deletions README.txt
@@ -0,0 +1,181 @@

Welcome to GP2X-Dragon

Original Author of XRoar

Ciaran Anscomb xroar(at)6809.org.uk

Homepage: http://www.6809.org.uk/dragon/xroar.shtml

Author of the PSP and GP2X port version

Ludovic Jacomme alias Zx-81 zx81.zx81(at)gmail.com

Homepage: http://zx81.zx81.free.fr


1. INTRODUCTION
------------

Xroar is the best emulator of Dragon32/64 and Tandy Coco home computer
running on many systems such as Linux, Unix, Mac OS X, GP32 and Windows32.
See http://www.6809.org.uk/dragon/xroar.shtml for further informations.

GP2X-Dragon is a port on GP2X of the PSP version.

Special thanks to Danzel and Jeff Chen for their virtual keyboard,
Ciaran Anscomb for this great emulator, Raven's for eboot icons
and to all GP2X-SDK developpers.

This package is under GPL Copyright, read COPYING file for
more information about it.


2. INSTALLATION
------------

Unzip the zip file, and copy the content of the directory game to your
SD memory.

For any comments or questions on this version, please visit
http://zx81.zx81.free.fr or http://www.gp32x.com/


3. CONTROL
------------

In the Dragon emulator window, there are three different mapping (standard,
left trigger, and right Trigger mappings).
You can toggle between while playing inside the emulator using the two GP2X
trigger keys.

-------------------------------------
GP2X Dragon (standard)

A 2
B ENTER
Y 1
X Joystick Fire
Up Up
Down Down
Left Left
Right Right

Joystick Joystick

-------------------------------------
GP2X Dragon (left trigger)

A Fps
B Render
Y Load state
X Save state
Up Up
Down Down
Left Left
Right Right

-------------------------------------
GP2X Dragon (right trigger)

A Space
B ENTER
Y 4
X Auto fire on/off
Up Up
Down Down
Left Dec Fire
Right Inc Fire

Analog Joystick

Joystick Up, Down, Left, Rigth

Press Select to enter in emulator main menu.
Press Start open/close the On-Screen keyboard

In the main menu

RTrigger Reset the emulator

Y Go Up directory
X Valid
B Valid
A Go Back to the emulator window

The On-Screen Keyboard of "Danzel" and "Jeff Chen"

Use the stick to choose one of the 9 squares, and
use A, B, X, Y to choose one of the 4 letters
of the highlighted square.

Use LTrigger and RTrigger to see other 9 squares
figures.


4. LOADING DISK FILES (DSK)
------------

If you want to load disk image in the virtual disk
drive of your emulator, you have to put your disk
file (with .dsk file extension) on your memory
card in the 'disk' directory.

Then, while inside emulator, just press SELECT to
enter in the emulator main menu, choose "Load Disc"
and then using the file selector choose one disc
file to load in your emulator.

To list the content of the disk, you have to use
the virtual keyboard (press START key) and type the
command DIR followed by ENTER.

To run the game MYGAME.BIN on your disk, you have
to use the virtual keyboard and type the command
LOADM"MYGAME" followed by ENTER. Once the game is
loaded, enter the command EXEC followed by ENTER.

To run a basic game (with .BAS extention) use RUN
command instead of LOADM.

If you want to specify the command to run for given
games then you can do it in the run.txt, using the
following syntax :

tapename=CLOAD"":EXEC
diskname=LOADM"RunName":EXEC
diskname=RUN"RunName"


5. LOADING KEY MAPPING FILES
------------

For given games, the default keyboard mapping between GP2X Keys and DRAGON
keys, is not suitable, and the game can't be played on DRAGON.

To overcome the issue, you can write your own mapping file. Using notepad for
example you can edit a file with the .kbd extension and put it in the kbd
directory.

For the exact syntax of those mapping files, have a look on sample files
already presents in the kbd directory (default.kbd etc ...).

After writting such keyboard mapping file, you can load them using the main
menu inside the emulator.

If the keyboard filename is the same as the cartridge or disk file then when
you load this file, the corresponding keyboard file is automatically loaded !

You can now use the Keyboard menu and edit, load and save your keyboard
mapping files inside the emulator.

The Save option save the .kbd file in the kbd directory using the "Game Name"
as filename. The game name is displayed on the right corner in the emulator
menu.

6. COMPILATION
------------

It has been developped under Linux using gcc with GP2XSDK.
To rebuild the homebrew run the Makefile in the src archive.

99 changes: 99 additions & 0 deletions src/Makefile
@@ -0,0 +1,99 @@
#
# Copyright (C) 2007 Ludovic Jacomme (ludovic.jacomme@gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
TARGET = gp2xdragon.gpe
SDL_CONFIG = $(GP2XDEV)/bin/sdl-config
OBJS = gp2x_psp.o \
psp_main.o \
psp_danzeff.o \
psp_fmgr.o \
psp_dragon.o \
psp_font.o \
psp_kbd.o \
psp_menu.o \
psp_menu_help.o \
psp_menu_kbd.o \
psp_menu_set.o \
psp_run.o \
psp_sdl.o \
global.o \
core/cart.o \
core/crc16.o \
core/deltados.o \
core/dragondos.o \
core/events.o \
core/filereq_cli.o \
core/fs_unix.o \
core/hexs19.o \
core/joystick.o \
core/keyboard.o \
core/m6809.o \
core/machine.o \
core/main_unix.o \
core/module.o \
core/pia.o \
core/rsdos.o \
core/sam.o \
core/snapshot.o \
core/sound_null.o \
core/sound_sdl.o \
core/tape.o \
core/ui_sdl.o \
core/vdg_bitmaps.o \
core/vdg.o \
core/vdisk.o \
core/vdrive.o \
core/video_sdl.o \
core/wd279x.o \
core/xroar.o \
core/keyboard_psp.o \
\
cpulcd.o

#PROFILE=-fprofile-generate
PROFILE=-fprofile-use

DEFAULT_CFLAGS = $(shell $(SDL_CONFIG) --cflags)

MORE_CFLAGS = -DGP2X_MODE -static -I$(GP2XDEV)/include -I$(GP2XDEV)/include/SDL -DHAVE_CONFIG_H -I. -Iinclude \
-DGP2X_MMU_HACK -DPSP \
-DNO_STDIO_REDIRECT $(PROFILE)

CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -O2 \
-funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsigned-char
CXXFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -O2 -fno-exceptions -fno-rtti \
-funroll-loops -ffast-math -fomit-frame-pointer -fno-strength-reduce -finline-functions -fsigned-char

LIBS += -L$(GP2XDEV)/lib -lSDL_image -lSDL_fast -lpng -ljpeg -lz -lm -lpthread -lstdc++

.c.o:
open2x-gcc $(CFLAGS) -c $< -o $@

.cpp.o:
open2x-g++ $(CXXFLAGS) -c $< -o $@

$(TARGET): $(OBJS)
open2x-gcc $(CFLAGS) $(OBJS) $(LIBS) -o $(TARGET) $(PROFILE)

install: $(TARGET)
cp $< /media/usbdisk/game/dragon/

clean:
rm -f $(OBJS) $(TARGET)

ctags:
ctags *[ch]

0 comments on commit cce4053

Please sign in to comment.