# Homebrew[HOMEBREW][Rev. 15] 3DS Binary --> Decimal Converter

#### AlbertoSONIC

##### Pasta Team Member
OP
Member
3DS Binary --> Decimal Converter

This simple homebrew allows you to convert any binary number to a decimal one. It's simple to use: you just have to select binary number lenght, then to insert a binary number by using A button for 1 and B button for 0. Use L/R buttons to decrease/increase binary number lenght.

Fell free...

.. to take some code from this program. The main purpose of this homebrew isn't offering you a simple way to convert binary numbers (i'm sure you probabily don't need that). I made this homebrew to help people to begin 3DS homebrew development, soo feel free to inspire from that app!

ChangeLog

• Latest update (Rev 15) has this changelog:
• You can go back to 3DS home from every homebrew's screen
• Screen render now uses "Rendering utils" instead of many lines of code
• Code got cleaned up a lot.
• You can check Homebrew Version by looking at the bottom left corner of the top screen
• Screen refresh fixed
• Should be SSSPwn ready! (Updated makefile for that purpose)
• Brand new icon and banner!

ScreenShots:

Credits:
Myself (AlbertoSONIC)
Relys from GBATemp.net (co-developer)
st4rk from GBATemp.net
YourNerdyJoe from GBATemp.net
CalebW from GBATemp.net
Smealum for CTRULIB

OP
Member
Reserved

#### mocalacace

##### Well-Known Member
Member
Thanks, I haven't written any arm11 homebrew since I can finally run it now. Hopefully this helps me understand the framebuffering and graphics control

AlbertoSONIC

#### JoostinOnline

##### Certified Crash Test Dummy
Member
By decimal do you mean integers (and if so, signed or unsigned?), or is it converting them to a floating point integer?

Edit: Never mind, I see it's an unsigned integer from the picture.

#### AlbertoSONIC

##### Pasta Team Member
OP
Member
Thanks, I haven't written any arm11 homebrew since I can finally run it now. Hopefully this helps me understand the framebuffering and graphics control
You're welcome!
By decimal do you mean integers (and if so, signed or unsigned?), or is it converting them to a floating point integer?
It just takes, for example, 1010 and it does 1*2^1+1*2^3= 2+8=10

##### ~It's A Magik~
Member
Nice work

It is exciting to see more homebrew surface.

#### mocalacace

##### Well-Known Member
Member
When I try to compile it tells me theres no such file or directory #include <3ds.h>. I have devkitPro installed to c:/devkitPro and libctru is in that folder.

Well my ctrulib variable was setup wrong, but now I'm getting c:/devkitPro/devkitarm/bin/../lib/gcc-arm-none-eaci/4.8.2/../../../../arm-none-eabi/bin/ld.exe: cannot find -lctru

#### AlbertoSONIC

##### Pasta Team Member
OP
Member
When I try to compile it tells me theres no such file or directory #include <3ds.h>. I have devkitPro installed to c:/devkitPro and libctru is in that folder.

Well my ctrulib variable was setup wrong, but now I'm getting c:/devkitPro/devkitarm/bin/../lib/gcc-arm-none-eaci/4.8.2/../../../../arm-none-eabi/bin/ld.exe: cannot find -lctru

I suggest you to install GCC again... You can find how to setup the environment in the Homebrew Development thread (check the OP)

Margen67

#### AlbertoSONIC

##### Pasta Team Member
OP
Member
Guys i updated 3DS Binary Decimal Converter! Now it uses the latest libctru and it's working in homebrew launcher.

Here's the compiled files:
https://mega.co.nz/#F!5dImhD6A!-XzdeCOGU3J6HwfTly3vHw

Here's the updated github repo:
https://github.com/AlbertoSONIC/3DS_Binary_Decimal_Converter

BUGS:
-It crashes if you try to exit the app, so for now i removed the option to go back to homebrew launcher. The DOWN to go back to home is still there, but it crashes too. I have to figure out why both this app and 3DS Paint crash while exiting!

I SUGGEST
To use this build only if you want to use it from Homebrew Launcher. Nothing changed for cia and gateway users!

#### drfsupercenter

Member
Thanks

I'll try it out when I get home from school.

#### drfsupercenter

Member
Initial thoughts: you've got a typo in there (should be length, not lenght)

Seems to crash f I bump down on the circle pad as well, not just the D-pad.

There isn't a mode to do decimal -> binary, is there? That's actually what I have a use for, not the other way around :/ (though it's good to have anyway!)

AlbertoSONIC

#### AlbertoSONIC

##### Pasta Team Member
OP
Member
Initial thoughts: you've got a typo in there (should be length, not lenght)

Seems to crash f I bump down on the circle pad as well, not just the D-pad.

There isn't a mode to do decimal -> binary, is there? That's actually what I have a use for, not the other way around :/ (though it's good to have anyway!)
1)I'll fix the text
2)It crashes because when pressing down it tries to exit.
3)Nope, there's isn't any Decimal-->Binary converter because i don't know how to implement so many numbers without a keyboard or a numpad!

#### drfsupercenter

Member
Is there a way to call the 3DS' on-screen keyboard? I know with PSP homebrew there was a way to. I'm not a programmer though so I have no idea

And well, I know the 3DS sees D-pad and circle pad as two totally separate things, for what it's worth.

You could also have it use the circle pad (or D-pad, whatever) to select a digit from 0-9 and then press A when you're done. That would work for decimal -> binary, right?

#### AlbertoSONIC

##### Pasta Team Member
OP
Member
As far as i now we can't call the system keyboard... But the circle pad thing might work! I think that i'd have to rewrite the whole GUI and then to start coding it. Once i'll finish 3DS Paint i'll start working on the converter!

Replies
24
Views
6K
Replies
4
Views
2K
Replies
36
Views
17K
Replies
10
Views
2K
Replies
3
Views
2K

1. 37K views

## Nintendo takes down Yuzu-based emulators including Suyu, Sudachi, Torzu, Uzuy and Nuzu

The never-ending battle between the litigious plumber and the emulation Hydra continues day by day, and these past days, Nintendo took action against more emulators...
2. 21K views

## "Mystical Ninja Starring Goemon" for N64 gets a fanmade PC recompilation project

The Nintendo 64 has been the main console for modern recompilation projects to PC, and with the recent release of the N64Recomp tool just a couple of months ago, more...
3. 20K views

## Who is Emio?

Nintendo has released a cryptic 15-second video titled "Emio" or "笑み男" (Smiling Man) on their social media channels. The video features a lost-footage style scene...
4. 20K views

## Sonic Mania is unofficially being ported to the Sega Dreamcast by fans

The Sonic homebrew and hacking community is for sure one of the most active communities when it comes to game modifications themselves. The fanbase has even made...
5. 16K views

## Zelda II SNES port by infidelity now features full MSU-1 support

Seen by many fans as the black sheep of The Legend of Zelda franchise, Zelda II sticks out as one of the most unique titles in the series, switching the top-view that...
6. 14K views

## Android gaming handheld AYANEO Pocket EVO revealed

AYANEO is back with yet another handheld; this time it's an Android gaming device. The AYANEO Pocket EVO is what the company touts as the world's first 7" OLED 120Hz...
7. 14K views

## This tiny Wii console fits on your keychain

Modders @WeskMods and @YveltalGriffin, have created a fully functional, keychain sized Wii console. The Kawaii project is a replacement Wii shell that measures just...
8. 12K views

## "CTGP Deluxe" mod for Mario Kart 8 Deluxe is available now

The days of Wii modding brought forth a big number of diverse entries, from New Super Mario Bros. mods and its recreations of past titles or entirely new maps and...
9. 11K views

## GTA V story DLC was cancelled due to GTA Online's popularity, says former Rockstar developer

In an interview with the SanInPlay YouTube channel, Joe Robino, former senior camera artist and virtual cinematographer at Rockstar, confirmed that a GTA V story DLC...
10. 10K views

## ROM Hack Mario enters Donkey Kong Country in new ROM hack

A new ROM hack by programmer RainbowSprinklez introduces Mario as a playable character in the 1994 SNES classic Donkey Kong Country. This unique mashup, titled "DKC X...
1. 248 replies

## Nintendo takes down Yuzu-based emulators including Suyu, Sudachi, Torzu, Uzuy and Nuzu

The never-ending battle between the litigious plumber and the emulation Hydra continues day by day, and these past days, Nintendo took action against more emulators...
2. 101 replies

## "CTGP Deluxe" mod for Mario Kart 8 Deluxe is available now

The days of Wii modding brought forth a big number of diverse entries, from New Super Mario Bros. mods and its recreations of past titles or entirely new maps and...
3. 92 replies

## Who is Emio?

Nintendo has released a cryptic 15-second video titled "Emio" or "笑み男" (Smiling Man) on their social media channels. The video features a lost-footage style scene...
4. 86 replies

## This tiny Wii console fits on your keychain

Modders @WeskMods and @YveltalGriffin, have created a fully functional, keychain sized Wii console. The Kawaii project is a replacement Wii shell that measures just...
5. 68 replies

## Sonic Mania is unofficially being ported to the Sega Dreamcast by fans

The Sonic homebrew and hacking community is for sure one of the most active communities when it comes to game modifications themselves. The fanbase has even made...
6. 63 replies

## The Xbox 360 Marketplace is closing down today

The fated day is here. Last August, Microsoft said they would be shutting down the Xbox 360 Marketplace forever, on July 29, 2024. With the closing down of the...
7. 61 replies

## Mortal Kombat: Onslaught delisted less than a year after its release

Yet another mobile game is being erased from history, as Warner Bros. Games and NetherRealm Studios announce that their title, Mortal Kombat: Onslaught, is being...
8. 50 replies

## Android gaming handheld AYANEO Pocket EVO revealed

AYANEO is back with yet another handheld; this time it's an Android gaming device. The AYANEO Pocket EVO is what the company touts as the world's first 7" OLED 120Hz...
9. 50 replies

## "Mystical Ninja Starring Goemon" for N64 gets a fanmade PC recompilation project

The Nintendo 64 has been the main console for modern recompilation projects to PC, and with the recent release of the N64Recomp tool just a couple of months ago, more...
10. 47 replies

## Editorial A Year With A Flip Phone - Z Flip 5

Samsung just revealed its new lineup of folding phones, so I thought what better time to do a write-up on their current generation of the Z Flip, which I have been...

## Hacking Gaming Pokemon X/Y, how can i get good photos of full-sized trainer outfits?

### Recent Content

12. #### Fixing system memory error 160-0103 (failing eMMC) without soldering | using redNAND with ISFShax

Help Users
• @ SylverReZ:
AncientBoi got banned from water parks, he kept making the water yellow.
+1
• @ Xdqwerty:
@SylverReZ, It's one I went to when I was little and the truth is it's more of a pool place than a water park (I mean they were just pools with slides), and it was also in a little more deplorable condition than I remembered but I still liked it.
+1
• @ SylverReZ:
@Xdqwerty, Last time I've been to one, was during vacation. The pool was extremely cold and was very unsettled by how crowded it also was. The prices were too expensive so we went elsewhere after.
• @ SylverReZ:
We went to about 3 different camping sites.
• @ Xdqwerty:
@SylverReZ, In my case the temperature in each pool varied (although perhaps the weather had something to do with it)
+1
• @ SylverReZ:
First, it was 9 at night and we were trying to sleep, but there were a couple or so guys drinking heavily whilst chanting and partying. A lot of people got fed up including us so we drove somewhere else.
• @ Xdqwerty:
@SylverReZ, also I never went camping
+1
• @ SylverReZ:
@Xdqwerty, We never did again. Another thing happened, where a guy was off his tits, whilst being with his own child. The police got called and his friends took him straight home after that.
• @ SylverReZ:
To be fair, campsites have a lot of strange people.
+1
• @ SylverReZ:
@Xdqwerty, Yeah, that was over 7 years ago mind you.
• @ Xdqwerty:
@SylverReZ, tbf if I had an experience like that I would stop going camping too
• @ Xdqwerty:
@AncientBoi, you are sad cuz rez mentioned tits?
• @ SylverReZ:
@Xdqwerty, He's also afraid of women.
+1
• @ Xdqwerty:
@SylverReZ, while in the other hand, thats PrincessLillie 's favorite word (plus boobs)
• @ AncientBoi:
And of course, I'm not biased to women
+2
@ AncientBoi: