|
|
|||||||
| Home | Register | Downloads | FAQ | Members List | Calendar | Arcade | Mark Forums Read |
» Less advertising throughout
» Post and participate in discussions
» Network with other forum members
» Free private messaging
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Well after a bit of encouragement, I managed to start coding a chip 8 emu. Can someone help me debug this code. I don't see anything on the console window. Normally there is Illegal opcode:XXXX Help me. Also can someone help me with how I can do graphics?
|
|
|
|
| Advertisement | [Remove Advertisement] | ||
|
|
|
#2 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Fixed a lot of code.
See attachment
|
|
|
|
|
|
#3 |
|
Level 9998
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2006
Location: Java
Posts: 9,377
|
Well, what are you expecting to see in the console window? I don't see you output anything but errors and a "BEEP!" notification. If there is nothing wrong with the code, then it shouldn't throw any of those errors around. As for graphics, what platform are you working on specifically? The current codes are very generic. |
|
|
|
|
|
#4 |
|
クロッスエクス
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: Argentina
Posts: 3,645
|
Some background thread on this: http://forums.pcsx2.net/Thread-Need-...-output-openGL And some thread for the OP to check: http://forums.ngemu.com/showthread.php?t=114578 |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Graphics
Well, I am on windows and using codeblocks. Can someone tell me how I can create a text based graphics output to the console. So it would then output a * for 1. How do I output my graphics array and output it?
|
|
|
|
|
|
#6 |
|
Level 9998
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Nov 2006
Location: Java
Posts: 9,377
|
Well, if you output text as graphics for Chip-8, trust me, it'll be very messy... and annoying to deal with. For one, you'll need exactly 64 x 32 rows on the screen. But if you are fixated on that, some printf functions will do. Or alternatively, you can also use C++ with cout, which has nicer readability. |
|
|
|
|
|
#7 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
See my code, Is my code right? Give me some better code for cout or printf().
|
|
|
|
|
|
#8 |
|
クロッスエクス
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2006
Location: Argentina
Posts: 3,645
|
|
|
|
|
|
|
#9 | |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Well, hell yeah. I now have a working CPU core. Some screenshots attached and source code as well. |
|
|
|
|
|
#11 |
|
Moderator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2006
Location: Croatia
Posts: 4,547
|
Cool , nice going Btw, any reason for switching between Win 7 and XP?
__________________
Shendo's software blog Core i5 2400 3.1 Ghz | ASRock H67M | GTX460 768Mb | 8GB DDR3 1333 | 1500 Gb HDD Grundig VLC 7121 C (1080p) 32" | Razer DeathAdder | Logitech G110 | Windows 7 x64 Don't PM or ask me about VMP-MCR conversions. I will ignore you if you do. |
|
|
|
|
|
#12 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Thanks and Well yeah, taking into consideration I am still a 14 year old... I have a laptop with 7 and a desktop with xp, my laptop screen gives me headaches. |
|
|
|
|
|
#13 |
|
Linux's worst nightmare..
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2004
Location: USA
Posts: 1,505
|
glad you managed to figure things out!
__________________
OS: WinXP Professional Service Pack 3 CPU: Intel pentium 4 3.0GHz Video: Nvidia Geforce 8400GS Sound: ASUS Xonar DS 7.1 Channels 24-bit 192KHz PCI Interface Audio Card Memory: 512 MB HD: [C:] 140.36/449.09 GB Connection: Marvell Yukon 88E8053 PCI-E Gigabit Ethernet Controller |
|
|
|
|
|
#14 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Any good and easy SDL tutorials?
|
|
|
|
|
|
#15 |
|
Squire
![]() ![]() Join Date: Sep 2009
Location: Ivalice
Posts: 105
|
|
|
|
|
|
|
#16 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Well, I did the graphics and input, Thanks anyway.
|
|
|
|
|
|
#17 |
|
Registered User
Join Date: Nov 2010
Location: Kenya
Posts: 13
|
Well, here if you can test it. See attachment, also see: http://emucodeblog.blogspot.com/ and www.youtube.com/user/CrckrHckr Thanks, Crckr. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|