LoginLogin

[OLD] SmileBOY - Game Boy emulator for SmileBASIC

Root / Talk About Programs / [.]

🔒
RaichuBenderCreated:
A Game Boy emu would run about 1 frame a minute on smilebasic. People here have no idea how slow interpreter code is vs compiled machine code. Seriously, run ninjhax or something if you want ever want GB emulation on your 3DS.

A Game Boy emu would run about 1 frame a minute on smilebasic. People here have no idea how slow interpreter code is vs compiled machine code. Seriously, run ninjhax or something if you want ever want GB emulation on your 3DS.
The reason I'm making this is for fun and education. I know this emulator won't run at full speed, but that doesn't spoil the fun for me. I want to create a GB emulator that people can run without homebrew. Poeple can always go to the eShop and buy their favorite games. EDIT: I don't recommend anybody to download illigal ROMs. There are some good homebrew games that I can pack with the emulator. And it's a pain to send over ROM files using PetitModem. It can take up to an hour for bigger files.

A Game Boy emu would run about 1 frame a minute on smilebasic. People here have no idea how slow interpreter code is vs compiled machine code. Seriously, run ninjhax or something if you want ever want GB emulation on your 3DS.
The reason I'm making this is for fun and education. I know this emulator won't run at full speed, but that doesn't spoil the fun for me. I want to create a GB emulator that people can run without homebrew. Poeple can always go to the eShop and buy their favorite games. EDIT: I don't recommend anybody to download illigal ROMs. There are some good homebrew games that I can pack with the emulator. And it's a pain to send over ROM files using PetitModem. It can take up to an hour for bigger files.
... homebrew... Can you at least give us the ROM converter when you release it?

A Game Boy emu would run about 1 frame a minute on smilebasic. People here have no idea how slow interpreter code is vs compiled machine code. Seriously, run ninjhax or something if you want ever want GB emulation on your 3DS.
Umm... it runs smoothly on the o3DS, if you have an n3DS, it will probably run smooth on SB if it's pretty much overkill on homebrew

The reason I'm making this is for fun and education. I know this emulator won't run at full speed, but that doesn't spoil the fun for me. I want to create a GB emulator that people can run without homebrew. Poeple can always go to the eShop and buy their favorite games.
Don't let yourself become discouraged like me. Who cares if it's practical? I might end up going back to making my NES one.

Well, this thread is more poplular than FNAF SB, so I fully support this project. it seems pretty cool too

Well, this thread is more poplular than FNAF SB, so I fully support this project. it seems pretty cool too
i was just looking at the fnaf sb thread for the first time in a while, myself

Umm... it runs smoothly on the o3DS, if you have an n3DS, it will probably run smooth on SB if it's pretty much overkill on homebrew
What runs smoothly? Do you mean the Gameboy eShop titles? That's a much different situation. DrZog is right, running homebrew is probably the only feasible way to get this at a usable frame rate. The difference is that the eShop GB games and homebrew are at least running programs that were compiled with the 3DS as a target. Writing an emulator in SB is like writing an emulator that emulates another emulator. It's not a question about writing good, efficient code. The way it gets interpreted, If the goal is parity with the GameBoy system, SB is going to produce a very slow program. Not trying to sound like a buzzkill, I just want people to temper their expectations. I would love to be proven wrong, and I'm actually rooting for RaichuBender, as I think doing this kind of stuff for educational purposes alone is worth it. So carry on, and never mind me.

EDIT: I don't recommend anybody to download illigal ROMs. There are some good homebrew games that I can pack with the emulator. And it's a pain to send over ROM files using PetitModem. It can take up to an hour for bigger files.
I don't know, how big is a gb/gbc file? On average it's only a couple hundred kilobytes, it wouldn't take too long. A lot of sb programs are much bigger than that. I think SB is more powerful than people are giving credit for right now though, you at least have partial dynamic recompilation where you can translate gb machine code into SB code, which will then be interpreted, so it's not like you're having two solid layers of interpreters running at once. I saw a video where someone programmed a full nes emulator with something like 1000 lines of c++ code, I actually think it'd be less convoluted than writing a program that interprets a coding language, maybe I'm just not as skilled but I think my sb interpreter is well over 1000 lines of code and it's only around half finished with the more complicated commands left behind.

...I saw a video where someone programmed a full nes emulator with something like 1000 lines of c++ code...
I think I saw that same video.

...I saw a video where someone programmed a full nes emulator with something like 1000 lines of c++ code...
I think I saw that same video.
A quick search lead me to this: Part 1: http://youtu.be/y71lli8MS8s Part 2: http://youtu.be/XZWw745wPXY

...I saw a video where someone programmed a full nes emulator with something like 1000 lines of c++ code...
I think I saw that same video.
A quick search lead me to this: Part 1: http://youtu.be/y71lli8MS8s Part 2: http://youtu.be/XZWw745wPXY
I love Bisqwit. He is one of my inspiration sources. He is a skilled programmer and a great YouTuber.

Yep, that one.

Umm... it runs smoothly on the o3DS, if you have an n3DS, it will probably run smooth on SB if it's pretty much overkill on homebrew
What runs smoothly? Do you mean the Gameboy eShop titles? That's a much different situation. DrZog is right, running homebrew is probably the only feasible way to get this at a usable frame rate. The difference is that the eShop GB games and homebrew are at least running programs that were compiled with the 3DS as a target. Writing an emulator in SB is like writing an emulator that emulates another emulator. It's not a question about writing good, efficient code. The way it gets interpreted, If the goal is parity with the GameBoy system, SB is going to produce a very slow program. Not trying to sound like a buzzkill, I just want people to temper their expectations. I would love to be proven wrong, and I'm actually rooting for RaichuBender, as I think doing this kind of stuff for educational purposes alone is worth it. So carry on, and never mind me.
Homebrew I mean... :P

I hope development is moving well?

I hope development is moving well?
Yeah, this page has been kind of dead for something I'm on hype for If you want development, go ! SMILEBOY HYPE !

The Game Boy, a hardware autopsy part 1 part 2 Here are two really good videos about the Game Boy's hardware. Although they do simplify a lot, it does give an interesting look into the Game Boy and may help with development. Hope these help or at least are entertaining. Also, SMILEBOY HYPE!

This is sexist

You don't know how proud I am of myself after refreshing and seeing I made three people reply to the thread again.

hahah these threads never stop coming