|
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Registered User
Join Date: Apr 2007
Location: -_-ffs
Posts: 2
|
chip8 emulator --- help needed ---
Allrightz. 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. 1) Can i use the console to draw stuff?or its important to use an api?(dx/sdl/gl) 2) Can you explain me what does the following code ? Quote:
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.. |
|
|
|
|
| Advertisement | [Remove Advertisement] |
|
|
|
|
|
#2 |
|
Plugin coder / Betatester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2003
Posts: 323
|
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) Code:
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.. |
|
|
|
|
|
#3 |
|
PCSX2 Coder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Plymouth, UK
Posts: 10,037
|
just to make what Falcon said more visible, ill do what that line says Code:
00110010 - some opcode 00000011 - some opcode shifted right (>>) 4 bits & 00001111 - & 0xF ---------- 00000011 - result
__________________
http://www.pcsx2.net Intel i7 920 @ 3.4Ghz, POV GTX 570 1.3Gb, 1.8Tb HD space, 6Gb OCZ Reaper PC3-14400 Triple Channel Dont PM me for help, use the forums, thats what its for! My Chip16 Emulator RefChip16 http://code.google.com/p/refchip16/
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Apr 2007
Location: -_-ffs
Posts: 2
|
Thanks alot! Im so happy that i found people that can actually help me in such advanced stuff!. Very cool! |
|
|
|
|
|
#5 |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Dec 2001
Location: Montreal, Canada
Posts: 8,090
|
Alot of people here made a Chip8 emu (including me ) so if you have any questions, dont be shy ![]() Welcome to Emuforums btw
__________________
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|