Thread: CHIP8 thread
View Single Post
Old January 8th, 2009   #47 (permalink)
dreampeppers99
Registered User
 
dreampeppers99's Avatar
 
Join Date: Jul 2006
Location: you know...
Posts: 506
Quote:
Originally Posted by serge2k View Post
well I'm trying to run the PONG program. It runs, displays the paddles and the score but the "ball" jumps around. Scores aren't registering quite right either.

just tried breakout and it isn't working quite right either.

I did just realize what was causing it to be so slow. Redrawing the screen on every single opcode instead of just when it changes. it's faster now.

I think the problem is with my drawing code.l
As runawayprisoner have said... I've just plus one thing.
I believe that PONG uses the FONT scheme instead of BCD so checks your insctructions to font...

FX29 I points to the 4 x 5 font sprite of hex char in VX
Fx29 - LD F, Vx
Set I = location of sprite for digit Vx.

The value of I is set to the location for the hexadecimal sprite corresponding to the value of Vx. See section 2.4, Display, for more information on the Chip-8 hexadecimal font.

Source



See if you are correct with this too.
__________________
The Empyrean
dreampeppers99 is offline   Reply With Quote