Giter Site home page Giter Site logo

z80emu's People

Contributors

adrianpbrown avatar cospplredman avatar cpressey avatar mikedx avatar spec-chum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

z80emu's Issues

TODO: Introduce hardware definitions for different models of spectrum

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).

TODO: Tidy up Makefile

The Makefile needs a cleanup as we already have repetition. Should either be converted to use cmake or have some wildcard to reduce repetition.

TODO: Correct IO handling

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

TODO: Border emulation

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.

TODO: Provide IO layer to support SDL agnostic (or any rendering / input framework) version

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.

Feature: Keyboard Input

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.