Coder Social home page Coder Social logo

PONG rom about chip8 HOT 5 CLOSED

wernsey avatar wernsey commented on June 15, 2024
PONG rom

from chip8.

Comments (5)

wernsey avatar wernsey commented on June 15, 2024

Hi, which ROM are you referring to? Can you attach a file so that I can take a look?
Thanks

from chip8.

jakears93 avatar jakears93 commented on June 15, 2024

Attached is the ROM I was referring to. I had the same problem in my emulator and I found the problem was within my implementation of the opcode 0xFx65 where I was only loading contents from memory Location I+x to V[0]-V[x-1] opposed to V[x]. I'm not sure if the issue is the same for you though.
PONG.zip

from chip8.

wernsey avatar wernsey commented on June 15, 2024

I've disassembled the ROM and then annotated it so that I can see how the program works.

The annotated disassembly is attached here:
PONG.asm.zip

I then ran the ROM on my emulator with the built-in debugger. It seems the problem is in my implementation of the Fx33 instruction that does not properly break the score down into its BCD digits

from chip8.

wernsey avatar wernsey commented on June 15, 2024

@jakears93 It turns out it was my implementation of the Fx65 that did the same thing, copying one too few bytes. I will upload a fix shortly

from chip8.

wernsey avatar wernsey commented on June 15, 2024

I pushed my fix

from chip8.

Related Issues (2)

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.