reinette-II-plus/README.md

104 lines
4.2 KiB
Markdown
Raw Normal View History

2020-08-08 19:31:50 +00:00
# reinette II plus
### reinette goes graphical !
![screenshots](screenshots.png)
2020-08-08 21:55:26 +00:00
After [reinette](https://github.com/ArthurFerreira2/reinette) (Apple 1 emulator) and [reinette II](https://github.com/ArthurFerreira2/reinette-II) (the text only Apple II emulator), I am proud to release **reinette II plus**, a french\* Apple II plus emulator using SDL2.
2020-08-08 19:31:50 +00:00
\* reinette has two meanings in french : it's a little frog but also a delicious kind of apple
2020-08-09 00:26:12 +00:00
[download link for windows binaries](https://github.com/ArthurFerreira2/reinette-II-plus/releases/tag/0.1b)
2020-08-08 19:31:50 +00:00
### Featuring :
* all video modes in color
* mono sound with mute/unmute
* 48KB (no language card support)
2020-08-09 08:19:48 +00:00
* paddles/joystick with trim ajustment
2020-08-08 19:31:50 +00:00
* paste text from clipboard
* disk ][ adapter with two drives (.nib files only)
* drag and drop nib files to inset a floppy
* save floppy changes back to host
* zoom the window by integer increments
2020-08-08 20:30:17 +00:00
It uses the same MOS 6502 CPU emulator as her sisters (now christened [puce6502](https://github.com/ArthurFerreira2/puce6502)).\
2020-08-08 19:31:50 +00:00
You only need SDL2 to compile it. (I'm not using SDL_Mixer, but only the native SDL2 audio functions)
This emulator is not accurate in many ways and does not compete with
2020-08-08 21:55:26 +00:00
[AppleWin](https://github.com/AppleWin/AppleWin), [Epple](https://github.com/cmosher01/Epple-II) or [LinApple](https://github.com/linappleii/linapple). Better use one of them if you want a good Apple ][ emulation experience.
2020-08-08 19:31:50 +00:00
2020-08-08 21:55:26 +00:00
I wrote it with the goal to better understand the Apple ][ internals, and I'm publishing the sources in the hope they will be of any help.
2020-08-08 19:31:50 +00:00
2020-08-08 21:55:26 +00:00
It's compact, less than 1000 SLOC, with two source files only, one for the CPU emulation, the other for the computer itself.
2020-08-08 19:31:50 +00:00
2020-08-08 21:55:26 +00:00
I did my best to comment the code, and if you have an idea of how an Apple ][ works, it should be easy for you to understand the code, modify and enhance it for your needs (see TODO section).
2020-08-08 19:31:50 +00:00
### Startup
You can specify a .nib file on the command line to start the emulator with a floppy engaged in drive 1. Otherwhise, the emulator will start with no floppy (and thus wait one until you press the reset key or drag and drop a nib file)
### Usage
Drag and drop a disk image file (.nib format only) to inset it into drive 1\
Drop the file while pressing the ALT key to insert it into drive 2
Use the functions keys to control the emulator itself
2020-08-08 20:30:17 +00:00
```
2020-08-08 19:31:50 +00:00
* F1 : writes the changes of the floppy in current drive back to host
2020-08-08 21:55:26 +00:00
* F4 : paste text from clipboard
2020-08-08 19:31:50 +00:00
* F5 : zoom out down to 1:1
* F6 : zoom in, no magnification limit
* F7/F8 : adjust joystic trim
* F9 : mute/unmute soud
* F10 : reset
* F11 : break
* F12 : quit (you can also just close the window)
Paddles / Joystic :
* numpad 1 : left
* numpad 3 : right
* numpad 2 : down
2020-08-08 20:30:17 +00:00
* numpad 3 : up
2020-08-08 19:31:50 +00:00
* CTRL : button 0
* ALT : button 1
2020-08-08 20:30:17 +00:00
```
2020-08-08 19:31:50 +00:00
2020-08-08 21:55:26 +00:00
### Limitations
2020-08-08 19:31:50 +00:00
2020-08-08 20:30:17 +00:00
* high pitch noise at high volume (might be related with my environment)
* sound cracks when playing for long period (intro music for example)
2020-08-08 19:31:50 +00:00
* CPU is not 100% cycle accurate - see source file for more details
2020-08-08 20:30:17 +00:00
* colors are approximate (taken from a scan of an old Beagle bros. poster)
2020-08-08 21:55:26 +00:00
* HGR video is inaccurate, and does not implement color clashing
2020-08-08 19:31:50 +00:00
* disk ][ access is artificially accelerated
2020-08-08 20:30:17 +00:00
* only support .nib floppy images. (you can use [CiderPress](https://github.com/fadden/ciderpress) to convert your images to this format)
2020-08-08 19:31:50 +00:00
* only has 48KB of RAM (can't run some software requiring the language card)
* and many others ...
### To do :
2020-08-08 21:55:26 +00:00
* give a warning if the application exits with unsaved floppy changes
* give the user the option to start with the original Apple II rom
2020-08-08 19:31:50 +00:00
* colors where taken from an old Beagle Bros poster, find more accurate RGB values.
* implement color clashing in HGR
* optimize sound generation
2020-08-08 21:55:26 +00:00
* optimize disk access (speed is actually a bit artificial)
2020-08-08 19:31:50 +00:00
* re-implement Paddles and Joystic support for a better analog simulation
2020-08-08 21:55:26 +00:00
* implement the language card and extend the RAM of **reinette II plus** to 64K to support more sofware.
* for 6502 coders :
* add the ability to insert a binary file at a specified address
* dump regs, soft swithes and specified memory pages to console
Follow me to keep updated !
\
\
\
2020-08-08 19:31:50 +00:00
*simplicity is the ultimate sophistication*