mikedx / z80emu Goto Github PK
View Code? Open in Web Editor NEWOpen source portable free ZX Spectrum emulator
Open source portable free ZX Spectrum emulator
The core of the emulator should be changed so that specific models of spectrum (and other computers?) can be defined in separate hardware definition files. These could be compiled or read at runtime depending upon how the problem is solved. The immediate use for this includes different Spectrum rom (JGH for instance) or different hardware models (16k, 128k, +2, etc).
The Makefile needs a cleanup as we already have repetition. Should either be converted to use cmake or have some wildcard to reduce repetition.
I've setup a travis account to automate the testing. Will need configuring for all targets and some unit tests will need to be made.
Current IO handling is limited to basic keyboard input. No other IO is included, which causes some issues.
This needs to be address properly so that we can have proper "BEEP" support
Currently our screen buffer only handles the middle screen without border. This needs to be expanded so that the correct border colour is drawn at each interval.
Expanding on this, we should be able to do cycle correct timings for the screen to achieve the correct visual effects.
Currently the emulator utilises SDL exclusively, but with some minor changes, this can be much more open.
I currently have code to support SDL1.2/2 in a test branch locally, which renders the screen to a buffer and accepts keycodes as an array (like the existing keymap matrix). This should allow any future port to use whatever rendering they like, such as framebuffer, GDI, openGL, outputting to RGB leds... etc.
Keyboard input currently does not work.
To get this to work, we need to create a new input() function (currently in zxem.c) to handle IN calls.
The keyboard matrix feeds data from 5 different IN addresses:
Port | Bit | ||||
---|---|---|---|---|---|
4 | 3 | 2 | 1 | 0 | |
&FEFE | Shift | Z | X | C | V |
&FDFE | A | S | D | F | G |
&FBFE | Q | W | E | R | T |
&F7FE | 1 | 2 | 3 | 4 | 5 |
&EFFE | 6 | 7 | 8 | 9 | 0 |
&DFFE | P | O | I | U | Y |
&BFFE | Enter | L | K | J | H |
&7FFE | Space | Sym | M | N | B |
These are polled on interrupt (1) every frame. The interrupts are already being called, but no data is being suppled, so the emulator is currently stuck at
(c) 1982 Sinclair Research Ltd.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.