? Improved Chip-8 Emulator ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Creep into the Halloween / Horror Programming Contest (Deadline Extended)

Improved Chip-8 Emulator

Submitted
Updated
Author
12Me21
Public Key
13V3C24E
Min. Compat.
All
Version
minus 8
Size
8.8 KB
Rating
7 votes
Description It's a Chip-8 Emulator. This program started as a modification of RaichuBender's version, but by now I've replaced all of the original code (except a few lines of DATA). It can run *almost all* chip-8 games. Instructions 1: Use the "change controls" option to set the controls (because every game uses different buttons for some reason) 2: Select a game. Note: Some games require you to reduce the speed, which you can do by changing the value of DELAY on line 14 (I only included Tetris in this project (because it's the best game). The others are included in RaichuBender's emulator) Tetris Controls: 5,6: move left/right 4: rotate 7: drop
Categories
Keywords
22 Comment(s) HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength April Fool's 2017 Contest Participant I participated in the SmileBASIC Source April Fool's 2017 Contest! Programming Contest Forum Contributor Hidden Achievements If you don't want to have to put something in your clipboard everytime you want to use this program, then enter this at the beginning of the program: IF CLIPBOARD()=="" THEN CLIPBOARD " " By the way, this will also preserve your settings. The code just checks if your clipboard is empty, then puts a space in it if it is. Otherwise, it'll remain the same. HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength April Fool's 2017 Contest Participant I participated in the SmileBASIC Source April Fool's 2017 Contest! Programming Contest Forum Contributor Hidden Achievements I found a way to fix the "subscript out of range" error. At the beginning of the program, add CLIPBOARD " ". This makes it so that something is in the clipboard when the program starts, preventing the error and the need to copy something manually just to get it to work. 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS The point is that the settings persist after you end the program really I should've just saved it in a file or checked the clipboard length. oh well HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength April Fool's 2017 Contest Participant I participated in the SmileBASIC Source April Fool's 2017 Contest! Programming Contest Forum Contributor Hidden Achievements Just wondering, is it possible to convert roms for use with this emulator? I have a custom Breakout rom and would like to use it with this emulator, but I don't know how. RaichuBender RaichuBender Avatar Taboo I didn't change my avatar for 180 days Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Block I didn't change my avatar for 30 days. Website Send it over using PetitModem or Trin's homebrew app. Make sure you send it over as a 1 dimensional array, preferably as INT. It should be able to load it without problems. If you have any questions, feel free to ask! HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength April Fool's 2017 Contest Participant I participated in the SmileBASIC Source April Fool's 2017 Contest! Programming Contest Forum Contributor Hidden Achievements Alright, thanks for telling me! Also, does it automatically save it as a DAT file when you send the .rom file or do you need to do something first? RaichuBender RaichuBender Avatar Taboo I didn't change my avatar for 180 days Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Block I didn't change my avatar for 30 days. Website It's been a while since I last did it, but first of all, rename the ROM to all caps, like this: "TETRIS.ROM". PetitModem should send it over as a DAT file. If you use the file manager, add a captial B in front of the file, like this: "BTETRIS.ROM" and import it as a 1D DAT file. That way SmileBASIC knows it needs to treat it as a DAT file. I believe the B stands for Binary. HTV04 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength April Fool's 2017 Contest Participant I participated in the SmileBASIC Source April Fool's 2017 Contest! Programming Contest Forum Contributor Hidden Achievements Thanks! I'll let you know if everything goes smoothly (or not). Hopefully this method works! Again, thank you, and your program (even though the improved version is not yours) is awesome! RaichuBender RaichuBender Avatar Taboo I didn't change my avatar for 180 days Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Block I didn't change my avatar for 30 days. Website Thanks! Well, you can download my version for the included games obviously :P But be prepared for a sizable download... 12Me21 did a great job at optimizing my program and fixing bugs. (Well, it's not really optimizing, it's more like completely remade...) JustGreat JustGreat First Month Joined in the very first month of SmileBASIC Source Website Avatar Taboo I didn't change my avatar for 180 days Website Night Person I like the quiet night and sleep late. Express Yourself Every time I run this, I get Subscript out of range in 0:54 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS oops. you can fix it if you copy something in the editor so the clipboard isn't empty AnswerXOX AnswerXOX Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Great Page Hidden Achievements Pokemon Is Awesome! I love Pokemon! Express Yourself Can you make a built in compiler so that my CHIP-8 code can be read? RaichuBender RaichuBender Avatar Taboo I didn't change my avatar for 180 days Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Block I didn't change my avatar for 30 days. Website I was expermintenting with the CHIP-8 and the Corruptinator. Unfortunately it's not as cool as ROM corruption, but it gives some funny results. :P RaichuBender RaichuBender Avatar Taboo I didn't change my avatar for 180 days Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Block I didn't change my avatar for 30 days. Website Awesome! Great to see someone who's interested and actually looked at it and improved it. I have a similar program that I want to show off very soon! chicken chicken OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! Avatar Embargo I didn't change my avatar for 90 days Website Good Page Hidden Achievements You're alive! RaichuBender RaichuBender Avatar Taboo I didn't change my avatar for 180 days Website Avatar Embargo I didn't change my avatar for 90 days Website Avatar Block I didn't change my avatar for 30 days. Website Yep. Although not as active as I used to be, but I visit this site every now and then... mia mia Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Video Games I like to play video games! Hobbies "Version minus 8" HORRIBLY good JOKE SP_Sour SP_Sour Video Games I like to play video games! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Night Person I like the quiet night and sleep late. Express Yourself What are the improvements? Is it implied that we're supposed to download it and see for ourselves what's better? 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Many of the games that didn't work on RaichuBender's version work with this one. I also added a menu to change the controls, so you don't need to edit the program. And the graphics should be less flickery. GoodGameGod GoodGameGod Good Page Hidden Achievements Spring 2017 Contest Runner Up I placed 2nd in the SmileBASIC Source Spring 2017 Contest! Programming Contest Avatar Embargo I didn't change my avatar for 90 days Website Lol, terrible timing to release a tetris clone...mezim just made one. =P Lumage Lumage Head Admin Day Person I like the warm sunshine and wake up early! Express Yourself Gardening I like to garden! Hobbies Touhou Project Is Awesome! I love Touhou Project! Express Yourself Lol, terrible timing to look at a picture and not read the page title... chicken chicken OSP Contest 1 Contest Participant I participated in the first SmileBASIC Source OSP Contest! Avatar Embargo I didn't change my avatar for 90 days Website Good Page Hidden Achievements That tetris clone was probably made before you were born. CHIP-8 is from the 70's, so programs like tetris were definitely made before 2010.