Page 106 of 106 FirstFirst ... 65696104105106
Results 1,051 to 1,057 of 1057

Thread: Chip 8

  1. #1051
    EmuTalk Member
    Join Date
    Aug 2016
    Posts
    25
    Mentioned
    0 Post(s)
    Just for documenting Sake:
    We already solved the issue

    The problem was that he was updating the program counter after the switch, this effectively ruined the program counter for Jump instructions as it was moving the program counter more than once per JUMP

    Summary:



    Dont do this
    switch (opcode) {
    case : 0x0
    break;
    .
    .
    .case n
    break;

    pc += 2; // this will mess your jump instructions and possibly others

    }
    //instead update the counter in their own body

  2. #1052
    EmuTalk Member
    Join Date
    Sep 2017
    Posts
    1
    Mentioned
    0 Post(s)
    Hoi

    I started an Chip8 emulator in VB and it's looking not that bad (no keyboard/sound, but the rest is implemented)
    But tetris has an odd behavior: Instead of moving DOWN my blocks are alternating left to right and the scoring display is f*cked up?!
    See at https://imgur.com/a/JMCkx

    Other games like Pong, Maze etc look ok.

    I read my opcodes atleast twice and they all look ok to me. Any suggestions what might be wrong?

  3. #1053
    EmuTalk Member
    Join Date
    Nov 2017
    Posts
    2
    Mentioned
    0 Post(s)
    Hey guys,

    I just found this thread while googling for "Chip8 frequency" really nice to see such big community experimenting with their emu101.
    I'm currently trying to fix bugs in my code. I've write it in Java + libgdx, it's complete function wise but still many games do glitch on me. Some simple games are playable already like pong or additions problem. But I'm still struggling with a Animal race and Airplanes. Will try to fix it with time and also read on this huge topic.

    If someone would be interested in checking the code it's here https://github.com/kinder112/chip8 should be also quite easy to build and run.

    Also Tetris fails for me similar to person above, probably some common gotcha? Will try to read previous pages maybe I'll find something to help me there

    With regards,
    Pawel
    Last edited by kinder112; November 5th, 2017 at 16:46.

  4. #1054
    Administrator & Programmer Danny's Avatar
    Join Date
    Nov 2005
    Posts
    892
    Mentioned
    17 Post(s)

    Thumbs up My final & best Chip8 Emulator

    I just wrote another Chip8 Emulator to prepare me for the GameBoy

    I started my GameBoy Emulator, but was very rusty, so I did this to shake off the cobwebs.
    Ironically enough, this is my best Chip8 Emulator to date! (I've made a few).

    It offers 100% compatibility with all the games I tested (69). Now on to the challenge of the GameBoy (been waiting for this day for 15 years now...).

    I hope my Emulator is of help to some of you.

    Compatible Games:

    • 15 Puzzle [Roger Ivie],
    • Addition Problems [Paul C. Moews],
    • Airplane,
    • Animal Race [Brian Astle],
    • Astro Dodge [Revival Studios, 2008],
    • Biorhythm [Jef Winsor],
    • Blinky [Hans Christian Egeberg, 1991],
    • Blitz [David Winter],
    • Bowling [Gooitzen van der Wal],
    • Breakout (Brix hack) [David Winter, 1997],
    • Breakout [Carmelo Cortez, 1979],
    • Brick (Brix hack, 1990),
    • Brix [Andreas Gustafsson, 1990],
    • Cave,
    • Coin Flipping [Carmelo Cortez, 1978],
    • Connect 4 [David Winter],
    • Craps [Camerlo Cortez, 1978],
    • Deflection [John Fort],
    • Figures,
    • Filter,
    • Guess [David Winter],
    • Hidden [David Winter, 1996],
    • Hi-Lo [Jef Winsor, 1978],
    • Kaleidoscope [Joseph Weisbecker, 1978],
    • Landing,
    • Lunar Lander (Udo Pernisz, 1979),
    • Mastermind FourRow (Robert Lindley, 1978),
    • Merlin [David Winter],
    • Missile [David Winter],
    • Most Dangerous Game [Peter Maruhnic],
    • Nim [Carmelo Cortez, 1978],
    • Paddles,
    • Pong (1 player),
    • Pong 2 (Pong hack) [David Winter, 1997],
    • Pong [Paul Vervalin, 1990],
    • Programmable Spacefighters [Jef Winsor],
    • Puzzle,
    • Reversi [Philip Baltzer],
    • Rocket [Joseph Weisbecker, 1978],
    • Rocket Launcher,
    • Rocket Launch [Jonas Lindstedt],
    • Rush Hour [Hap, 2006],
    • Russian Roulette [Carmelo Cortez, 1978],
    • Sequence Shoot [Joyce Weisbecker],
    • Shooting Stars [Philip Baltzer, 1978],
    • Slide [Joyce Weisbecker],
    • Soccer,
    • Space Flight,
    • Space Intercept [Joseph Weisbecker, 1978],
    • Space Invaders [David Winter],
    • Spooky Spot [Joseph Weisbecker, 1978],
    • Squash [David Winter],
    • Submarine [Carmelo Cortez, 1978],
    • Sum Fun [Joyce Weisbecker],
    • Syzygy [Roy Trevino, 1990],
    • Tank,
    • Tapeworm [JDR, 1999],
    • Tetris [Fran Dachille, 1991],
    • Tic-Tac-Toe [David Winter],
    • Timebomb,
    • Tron,
    • UFO [Lutz V, 1992],
    • Vers [JMN, 1991],
    • Vertical Brix [Paul Robson, 1996],
    • Wall [David Winter],
    • Wipe Off [Joseph Weisbecker],
    • Worm V4 [RB-Revival Studios, 2007],
    • X-Mirror,
    • ZeroPong [zeroZshadow, 2007],


    Screenshots:













    Source Code:

    The Emulator is written in C++ and uses SDL2 for Input & Windowing and OpenGL for rendering.

    Get it on GitHub
    Proud Administrator Of Emutalk.net

    * I develop software for: iOS, Android, Mac, Linux & Windows.
    * Proficient in C#, C, C++, Objective-C, Java, Swift, Lua. Also know some: PHP.

    Want to help EmuTalk? Want us to relive the glory days of old? Ping me, I would love to hear your ideas


  5. #1055
    EmuTalk Member
    Join Date
    Nov 2017
    Posts
    2
    Mentioned
    0 Post(s)
    Nice work Danny,

    I was also able to fix bug in my code reading through this topic. The problem I had was that I didn't clear Carry (VF) on the beginning of DXYN opcode. Now seems like games work correctly but haven't done that much of testing. Next thing for me will be probably dynamic compiler or disassembler not sure yet Probably will pick GamBoy as next level as I see here it's most common next project for aspiring emu devs.

    PS. Just checked animal race, I still have some bugs there as the animals get messed up during the race. What's the best way to debug this? Do I dump machine state and compare with other emulator? Any reference emulators for use?

    Some screenshots:




    Check out the code here: https://github.com/kinder112/chip8
    Last edited by kinder112; November 11th, 2017 at 13:57.

  6. #1056
    Administrator & Programmer Danny's Avatar
    Join Date
    Nov 2005
    Posts
    892
    Mentioned
    17 Post(s)
    Quote Originally Posted by kinder112 View Post
    Nice work Danny,

    I was also able to fix bug in my code reading through this topic. The problem I had was that I didn't clear Carry (VF) on the beginning of DXYN opcode. Now seems like games work correctly but haven't done that much of testing. Next thing for me will be probably dynamic compiler or disassembler not sure yet Probably will pick GamBoy as next level as I see here it's most common next project for aspiring emu devs.

    PS. Just checked animal race, I still have some bugs there as the animals get messed up during the race. What's the best way to debug this? Do I dump machine state and compare with other emulator? Any reference emulators for use?

    Some screenshots:




    Check out the code here: https://github.com/kinder112/chip8
    Nice!

    I have a few bugs in animal race too (they get jumbled together). Theres a few small bugs in my emulator still that I plan on fixing when I get bored.

    When they're fixed, i'll let you know if it resolves the animal race issue.
    Proud Administrator Of Emutalk.net

    * I develop software for: iOS, Android, Mac, Linux & Windows.
    * Proficient in C#, C, C++, Objective-C, Java, Swift, Lua. Also know some: PHP.

    Want to help EmuTalk? Want us to relive the glory days of old? Ping me, I would love to hear your ideas


  7. #1057
    Moderator azoreseuropa's Avatar
    Join Date
    Aug 2002
    Posts
    2,282
    Mentioned
    4 Post(s)
    Quote Originally Posted by Danny View Post
    Nice!

    I have a few bugs in animal race too (they get jumbled together). Theres a few small bugs in my emulator still that I plan on fixing when I get bored.

    When they're fixed, i'll let you know if it resolves the animal race issue.
    Good to hear from you, Danny.
    Model: MacBook Pro with a Retina, Mid 2014 (Purchased in March 28, 2015) -- macOS Sierra 10.13.1
    CPU: 2.6 GHz Intel Core i5
    Memory: 8 GB 1600 MHz DDR3
    Graphic Card: Intel Iris 1536 MB

    iPhone 6+ - iOS 11.1.2

Page 106 of 106 FirstFirst ... 65696104105106

Similar Threads

  1. Nintendo DS specifications leaked
    By Gorxon in forum Gaming
    Replies: 37
    Last Post: June 25th, 2004, 22:16
  2. C&T 69000 video chip
    By Knuckles in forum TechTalk
    Replies: 4
    Last Post: June 16th, 2003, 00:43
  3. Rice's Daedalus 5.0.0 source code
    By Rice in forum 1964
    Replies: 19
    Last Post: June 15th, 2003, 09:39
  4. Replies: 18
    Last Post: December 7th, 2002, 10:59

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •