Jump to content



Photo
- - - - -

View Code Of .g1A? Or Change The Menu Icon? Fx-9860


  • Please log in to reply
2 replies to this topic

#1 JMEHRPR

JMEHRPR

    Newbie

  • Members
  • Pip
  • 12 posts

Posted 05 March 2016 - 04:37 PM

Is there anyway of viewing the source code of a .g1a? Or anyway of changing the icon of an already existing .g1a file? I have the SDK but it doesn't look like I can open someone else's .g1a. If a build an empty project and replace the .g1a in the build folder I can see the icon in the emulator but doesn't look like there is anyway for me to change it.

 

Thanks!



#2 Viliami

Viliami

    Casio Addict

  • Moderator
  • PipPipPip
  • 99 posts
  • Gender:Male
  • Location:New Zealand
  • Interests:C++ - OpenGL,SDL
    Python - Pygame
    Java - SFML
    C - Casio SDK

  • Calculators:
    FX-9750 GII upgraded to FX-9860 GII

Posted 05 March 2016 - 08:23 PM

Not really, the .G1A file is the compiled filed.

 

Every program has at least 2 files:

-The source code

- The compiled file (also known as the executable)

 

The source code is just the normal code that the programmer writes, e.g files ending in .c or .cpp

Source code is meant to be read by other humans.

 

The compiled file is the file that is created after the source code is compiled. Compiling means to translate the high level code (e.g c/c++/java/python code) to lower level code (e.g binary/asm/bytecode)

The compiled file is meant to be used by the computer to run the program.

 

The compiled file is usually in bytecode, or binary. When you open it up in a normal text editor you'll just get weird symbols, because it's a binary file.

It is possible to view the source using a decompiler, but all the variable and function names are lost and the code may not look the same due to compiler optimizations. The code is pretty unreadable, but if you're just looking to change the icon file, than it should still be easy to change via a decompiler, but it is hard to find one that supports SH3  or SH4A architecture (the fx-9860GII's cpu architecture).

If you know how to read hexdumps, than you can use a disassembler and then reverse engineer the program, but that's a bit advanced.

 

What program are you trying to change the icon of? Try looking on the website to see if you can also download the source file as well.


Edited by Viliami, 10 July 2016 - 10:22 AM.


#3 JMEHRPR

JMEHRPR

    Newbie

  • Members
  • Pip
  • 12 posts

Posted 05 March 2016 - 10:50 PM

Not really, the .G1A file is the compiled filed.

 

Every program has at least 2 files:

-The source code

- The compiled file (also known as the executable)

 

The source code is just the normal code that the programmer writes, e.g files ending in .c or .cpp

Source code is meant to be read by other humans.

 

The compiled file is the file that is created after the source code is compiled. Compiling means to translate the high level code (e.g c/c++/java/python code) to lower level code (e.g binary/asm/bytecode)

The compiled file is meant to be used by the computer to run the program.

 

The compiled file is usually in bytecode, or binary. When you open it up in a normal text editor you will get weird symbol, because it's a binary file.

It is possible to view the source using a decompiler, but all the variable and function names are lost and the code may not look the same due to compiler optimizations. The code is pretty unreadable, but if you're just looking to change the icon file, than it should still be easy to change via a decompiler, but it is hard to find one that supports SH3/  or SH4A architecture (the fx-9860GII's cpu architecture).

If you know how to read hexdumps, than you can use a disassembler and then reverse engineer the program, but that's a bit advanced.

 

What program are you trying to change the icon of? Try looking on the website to see if you can also download the source file as well.

 

Wow, thanks for the quick response on what seems like a pretty damn inactive forums! Yeah there isn't public source code for it so I'll just leave it. :)

 

I have now found a program with source code, and all files etc. - but when I try to build it i get this error in the build console thing: (any ideas?)

 

 
 
Executing Hitachi SH C/C++ Compiler/Assembler phase
 
set SHC_INC=C:\Program Files (x86)\CASIO\fx-9860G SDK\OS\SH\include
set PATH=C:\Program Files (x86)\CASIO\fx-9860G SDK\OS\SH\bin
set SHC_LIB=C:\Program Files (x86)\CASIO\fx-9860G SDK\OS\SH\bin
set SHC_TMP=C:\Users\Jamie\Documents\CASIO\fx-9860G SDK\EDIT\Debug
 
Executing Hitachi OptLinker04 phase
 
"C:\Program Files (x86)\CASIO\fx-9860G SDK\OS\SH\bin\Optlnk.exe" -subcommand=C:\Users\Jamie\AppData\Local\Temp\hmkA80A.tmp
 
** L2011 (E) Invalid parameter specified in option "input" : ""C:\Program Files (x86)\CASIO\fx-9860G SDK\OS\FX\lib\setup.obj""
 
Optimizing Linkage Editor Abort
 
HMAKE MAKE UTILITY Ver. 1.1
Copyright © Hitachi Micro Systems Europe Ltd. 1998
Copyright © Hitachi Ltd. 1998 
 
 
ERROR: Process failed with return code: 1
Build was not successful.
 
FIXED IT!

Edited by JMEHRPR, 06 March 2016 - 12:35 AM.

  • Viliami likes this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users