0 Members and 1 Guest are viewing this topic.
if (chip->drawflag) { for(int row = 0; row < 32; row++) { for(int col = 0; col < 64; col++) { /*ignore the comments if you must for(int rowoffs = 0; rowoffs < 8; rowoffs++){ for(int coloffs = 0; coloffs < 8; coloffs++){ setPixel(col + coloffs, row + rowoffs, (0x0F * (chip->LCD[32*row + col])) ^ 0x0F); } }*/ setPixel(col, row, (0x0F * (chip->LCD[32*row + col])) ^ 0x0F); } } }
Interesting, I remember there was such emulator on the 83+, but I wondered if one would make it for the TI-Nspire. But yeah Hoffa ported SDL to the Nspire which lets him run a CHIP8 emulator on it. It would be nice to see someone make a totally standalone version, though. By the way did the CHIP8 support colors? Also do you have plans for SCHIP emulation like the 83+ version? http://www.ticalc.org/archives/files/fileinfo/385/38530.htmlAnyway hopefully someone can help soon, although it might be best to re-ask the question in the help section in case it gets missed in the projects section.
Oh ok it's SCHIP8? Thanks for the correction. Also I think that one had a larger screen, right?Btw I wish the new posts list showed topic descriptions.
I am using the setPixel routine from the ndless example source code. chip->LCD is a 2,048 (64x32) byte array with each element presumably holding a 1 if the pixel is set and a 0 if it is reset.Code: [Select]if (chip->drawflag) { for(int row = 0; row < 32; row++) { for(int col = 0; col < 64; col++) { /*ignore the comments if you must for(int rowoffs = 0; rowoffs < 8; rowoffs++){ for(int coloffs = 0; coloffs < 8; coloffs++){ setPixel(col + coloffs, row + rowoffs, (0x0F * (chip->LCD[32*row + col])) ^ 0x0F); } }*/ setPixel(col, row, (0x0F * (chip->LCD[32*row + col])) ^ 0x0F); } } }Now, I think this is all fine and dandy, but I get something that looks like garbled junk when trying to run SPACEINVADERS (see attached pic).