|April 7th, 2007, 12:19||#1|
Join Date: Apr 2007
chip8 emulator --- help needed ---
Im sure thats the right place to ask my questions().
Here we go!.
First of all , i wanna let you know that im Pascal(delphi) programmer (most) , but i also have basic knowledge of c++(my first "finished" program was a spaceshooter using SDL library...also a noobish opengl application with some falling cubes.. if that counts) and php/sql/js.
I think thats enough for now...now , please answer my questions.
Can i use the console to draw stuff?or its important to use an api?(dx/sdl/gl)
Can you explain me what does the following code ?
Can you give a basic example so i can understand it?
3) How can i use a "u8" variable?
Thats all (for now)...:
Last edited by wannabecoder; April 7th, 2007 at 12:28..
|April 7th, 2007, 13:49||#2|
Plugin coder / Betatester
Join Date: Jun 2003
1. you can use whatever you want. Some people have used the console for it, but imo you should just try using a simple framework build with directdraw or SDL.
2. Shift the opcode 4 bits to the right and perform an AND operation with 0xF
(An introduction to bitwise operators - The Code Project - C++ / MFC)
00110010 - some opcode & 00001111 - & 0xF ---------- 00000010 - result
http://emutalk.net/showthread.php?t=19894 <- a great thread for general information about chip8 emu programming.
Last edited by Falcon4ever; April 7th, 2007 at 13:56..
|April 7th, 2007, 16:40||#3|
Join Date: Jan 2004
Location: Plymouth, UK
just to make what Falcon said more visible, ill do what that line says
00110010 - some opcode 00000011 - some opcode shifted right (>>) 4 bits & 00001111 - & 0xF ---------- 00000011 - result