Share My Creation Sinclair ZX Spectrum Emulator

Discussion in 'B4J Share Your Creations' started by Magnus, Mar 8, 2015.

  1. Magnus

    Magnus Member Licensed User

    Here is an emulator for the 48 K Sinclair ZX Spectrum, which was my first computer back in the early eighties. There are already several much better emulators available (like Fuse and ZXSP to name a few), so I made this just for fun. And it really has been fun, though quite a lot of work to find all bugs in the Z80 processor emulation (there are still a few bugs lurking I'm afraid). Anyway, here it is. Any hints to make it better is much appreciated. Read the attached text file for notes on known issues, dependencies etc.

    There are a few games included, and if you want to try them, you should select "Kempston joystick" when possible (in-game), which allows control via the arrow keys and space bar. Otherwise you have to figure out which keys to use. You can find lots of more games on the Internet, but the emulator only loads .sna snapshot files currently.



    Attached Files:

      File size:
      154.1 KB
    yo3ggx, JakeBullet70, Beja and 11 others like this.
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    You just have to be kidding me.
    This is great, takes me back to the 80's :)

  3. sorex

    sorex Expert Licensed User

    I bought myself a VideoPac 4700+ (Odessey 3?) 2 weeks ago to program on for fun (it's an Intel 8048 thus minimal opcode set & ram (64 bytes)).

    What I found interesting is that the first game I flashed to my flashcart amuzed me for more than half an hour
    even while it was just a 1 level homebrew it was hard enough for me for some playtime.

    With most of today's games I'm already bored from just looking at the screenshots or videos, nice gfx but sucky gameplay especially the first person type of games.
  4. TheJinJ

    TheJinJ Active Member Licensed User

    Some of the best games with most longevity are stuffed into 16kb :) Lots of old skool games have stood the test of time for sure.
  5. Troberg

    Troberg Well-Known Member Licensed User

    Actually, much less than 16kB, as screen memory and system memory ate almost half of that.

    Is it even possible to compile a running application that small today?
    TheJinJ likes this.
  6. sorex

    sorex Expert Licensed User

    yes, a com file written in assembler is the shortest you could do on a pc since it's missing stack & seperate data block but it's limited to 1 64Kb segment if I recall right.

    with FreeBASIC you can create a file packer in 15Kb as console/dos app but that's because it contains a lot of (unused) functions in it. (only needs <1K in ASM tho)
    VB6 produces quite small exe's too (starting from around 16Kb)
    TheJinJ and Troberg like this.
  7. Troberg

    Troberg Well-Known Member Licensed User

    Yep, all in all I have great admiration for what they did on computers like the Spectrum and the C64, especially the later games like Fairlight, Elite, Glider Rider, the Lords of Midnight series and so on. Face it, those devices had much less computer power than my optical mouse...
    JakeBullet70 and RandomCoder like this.
  8. TheJinJ

    TheJinJ Active Member Licensed User

    Gameplay was more important than fancy graphics. Going to dig out my old Plus/4 :)
  9. sorex

    sorex Expert Licensed User

    yes, it's always a challenge to code on older systems that's why I bought that old console :)
  10. specci48

    specci48 Well-Known Member Licensed User

    For more information, games and all the other stuff according to the Sinclair ZX Spectrum, this is doubtless the best adress available.

    specci48 ;-)
    swissmade likes this.
  11. swissmade

    swissmade Active Member Licensed User

    Like this,

    I have repair ZX Spectrum's for years and still have some Parts of it.

    Nice I like this
    JakeBullet70 and specci48 like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice