04-16-2012, 08:59 AM (This post was last modified: 04-16-2012, 09:00 AM by Crckr Hckr.)
I have written a crappy chip8 emulator, with a few opcodes. I have attached the source. I've added some openGL code, I see a window, but no output, can someone help me. School opens tomorrow, I'll be pretty busy from then on.
04-17-2012, 03:53 PM (This post was last modified: 04-17-2012, 03:54 PM by Crckr Hckr.)
(04-16-2012, 08:49 PM)refraction Wrote: "few" opcodes? you need to emulate them ALL before you get something... even if you ignore the carry situations in the math instructions, you need them all... (if not most).
are you even sure it should be displaying something? have you written a little test for your opengl forcing it to draw a line or something to make sure that code works?
That's why I need help, I used the multigesture.net tutorial and that's where I got, the code. So I am going to code all the rest of the opcodes.
(04-16-2012, 11:10 PM)xstyla Wrote: ohh my... just jumping into GL is a major fault. how about stretchdibbits to a simple window first. it's a 2D monochrome palette bitmap damn. what you need openGL or kinda like for that? *rollseyes*
btw... just noticed the case 0x0004: and case 0x0333: will never be reached if you mask the opcode with 0xF000.
I do not understand what you mean and hey, what about, the 0xF000 stuff?
04-17-2012, 10:30 PM (This post was last modified: 04-17-2012, 10:32 PM by xstyla.)
read a book about programming. first of all there's a plan. and they usually start with some textbased standard console apps. some variables and structs. then functional implementation. then functions with parameters. maybe bitwise operations. then arrays and pointers. and THEN you can start to polish the sh*t and start getting into windows gui and graphics libs. maybe at some place you could try to start with some clean classes.
what you are mosdef doing is glueing copypaste code together. atleast that's what it looks like.
i like the fact that your trying+^_^+ i believe when you graduate high school that a college environment would be great for you+^_^+ all sorts of peers and instructors to ask question to, plus loads of free college software (well maybe tuition pays for it) +^_^+