Results 1 to 9 of 9
  1. #1
    EmuTalk Member
    Join Date
    Aug 2012
    Posts
    6

    Problems with my CHIP8 emulator

    I've started working on my first emulator, based around the CHIP8 system. I've finished all of the opcodes, and gotten it so that when ran, the first frame of the ROM will show up successfully. However, in my first attempts after completion, the emulator would not do anything else past that. I assumed it was a problem of input not being recognized, so I changed the input system to be based on the one used by an open source CHIP8 emulator I was learning from, and now the emulator simply locks up after the first frame. Can someone give me some insight as to what the problem is? Thanks.

    Source pulled: See update.
    Last edited by Sylan; August 14th, 2012 at 10:17.

  2. #2
    EmuTalk Member
    Join Date
    Aug 2012
    Posts
    6
    UPDATE:
    I found the problem, after messing it with it for a few hours. Turned out to be really simple. That said, my first emulator is now completed. Sorry for bothering here.

  3. #3
    Sony battery Toasty's Avatar
    Join Date
    Dec 2004
    Location
    Oregon, U.S.A.
    Posts
    2,125
    Congrats!

  4. #4
    EmuTalk Member
    Join Date
    Aug 2012
    Posts
    6
    Thanks, but now that the code is finished, some new problems are coming up. Most ROMs I have will draw the first frame to the screen, then stop doing anything (the program does not crash as before, but the games stop running). The only one that works with any response is CONNECT4(included in the David Winters CHIP8 download), and it randomly places markers on key presses, with some tearing graphics. I've checked just about every possible issue I could think of now. I'd appreciate it if there's anyone who thinks they may be able to look over it.

  5. #5
    Sony battery Toasty's Avatar
    Join Date
    Dec 2004
    Location
    Oregon, U.S.A.
    Posts
    2,125
    If you can put up the source maybe one of us will be able to spot what's wrong.

  6. #6
    EmuTalk Member
    Join Date
    Aug 2012
    Posts
    6
    http://www.mediafire.com/?im8v78jvt84ll5w Thanks.

    Sorry for the spacing. New accounts can't post links.
    Last edited by smcd; August 16th, 2012 at 04:24. Reason: fixed link

  7. #7
    EmuTalk Member
    Join Date
    Aug 2012
    Posts
    6
    New note:
    A friend who's been helping me work on this project made a basic disassembler for CHIP8 ROMs. In a few of them, we found opcodes that didn't exist in any documents on the CHIP8, and were not interpreted for that reason. Any reason these might be showing up so frequently?

  8. #8
    EmuTalk Member
    Join Date
    Aug 2012
    Posts
    6
    And another:
    My friend noticed a problem with their disassembler; the opcode check didn't include breaks in the switch under the opcodes that included multiple under one starting letter (such as Fx55 and fx65). After adding the breaks to theses cases in both his disassembler and my interpreter, CONNECT4 graphics stopped tearing, and SPACE INVADERS ran successfully. Still having some issues with other ROMs, but the first fully playable game is a huge success.

    UPDATE: PONG2 also working.
    Last edited by Sylan; August 16th, 2012 at 11:22.

  9. #9
    Moderator Cyberman's Avatar
    Join Date
    Nov 2001
    Posts
    1,880
    1: congratulations it's always great when something works (really it feels great)
    2: perseverance pays off so keep moving forward.
    3: there is a chip 8 thread in here (although i don't mind occasional leakage into the regular programming area because it's been a bit slow).

    Cyb

    Progress (n.):
    The process through which the Internet has evolved from smart people in front of dumb terminals to dumb people in front of smart terminals.
    -------------------------------------------------------------------
    Recursive (adj):
    see Recursive


    • Advertising

      advertising
      EmuTalk.net
      has no influence
      on the ads that
      are displayed
        
       

Posting Permissions

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