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

Discussion in '3DS - Homebrew Development and Emulators' started by AlbertoSONIC, Nov 18, 2014.

  1. AlbertoSONIC
    OP

    AlbertoSONIC Pasta Team Member

    Member
    929
    1,221
    Jun 27, 2014
    Italy
    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!

    Link:

    GitHub Repo: Link
    .3DS File: Link coming soon
    .CIA File: Link

    ScreenShots:





    Warning: Spoilers inside!

    Credits:
    Myself (AlbertoSONIC)
    Relys from GBATemp.net (co-developer)
    st4rk from GBATemp.net
    YourNerdyJoe from GBATemp.net
    CalebW from GBATemp.net
    Smealum for CTRULIB
     
    Margen67, Hiccup, Relys and 1 other person like this.
  2. AlbertoSONIC
    OP

    AlbertoSONIC Pasta Team Member

    Member
    929
    1,221
    Jun 27, 2014
    Italy
    Reserved ;)
     
  3. mocalacace

    mocalacace GBAtemp Fan

    Member
    325
    23
    Sep 28, 2008
    United States
    127.0.0.1
    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 :D
     
    AlbertoSONIC likes this.
  4. JoostinOnline

    JoostinOnline Certified Crash Test Dummy

    Member
    10,926
    3,700
    Apr 2, 2011
    United States
    The Twilight Zone
    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.
     
  5. AlbertoSONIC
    OP

    AlbertoSONIC Pasta Team Member

    Member
    929
    1,221
    Jun 27, 2014
    Italy
    You're welcome!
    It just takes, for example, 1010 and it does 1*2^1+1*2^3= 2+8=10
     
  6. JoostinOnline

    JoostinOnline Certified Crash Test Dummy

    Member
    10,926
    3,700
    Apr 2, 2011
    United States
    The Twilight Zone
    That's an unsigned integer.
     
    AlbertoSONIC likes this.
  7. Melon__Bread

    Melon__Bread ~It's A Magik~

    Member
    709
    399
    Dec 9, 2013
    United States
    Nice work :lol:

    It is exciting to see more homebrew surface.
     
    Margen67 and AlbertoSONIC like this.
  8. mocalacace

    mocalacace GBAtemp Fan

    Member
    325
    23
    Sep 28, 2008
    United States
    127.0.0.1
    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
     
  9. AlbertoSONIC
    OP

    AlbertoSONIC Pasta Team Member

    Member
    929
    1,221
    Jun 27, 2014
    Italy

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

    AlbertoSONIC Pasta Team Member

    Member
    929
    1,221
    Jun 27, 2014
    Italy
    Guys i updated 3DS Binary Decimal Converter! Now it uses the latest libctru and it's working in homebrew launcher.

    DOWNLOAD:
    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!
     
  11. drfsupercenter

    drfsupercenter Flash Cart Aficionado

    Member
    1,896
    234
    Mar 26, 2008
    United States
    Thanks :D

    I'll try it out when I get home from school.
     
    Margen67 and AlbertoSONIC like this.
  12. drfsupercenter

    drfsupercenter Flash Cart Aficionado

    Member
    1,896
    234
    Mar 26, 2008
    United States
    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 likes this.
  13. AlbertoSONIC
    OP

    AlbertoSONIC Pasta Team Member

    Member
    929
    1,221
    Jun 27, 2014
    Italy
    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!
     
  14. drfsupercenter

    drfsupercenter Flash Cart Aficionado

    Member
    1,896
    234
    Mar 26, 2008
    United States
    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?
     
  15. AlbertoSONIC
    OP

    AlbertoSONIC Pasta Team Member

    Member
    929
    1,221
    Jun 27, 2014
    Italy
    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!