GP32 what does x in memory addresses mean?


andy23

Still Fresh
Joined
Apr 14, 2003
Messages
2
hello eveyone,

as a future owner and maybe coder of a gp32 i have this little question that's being haunting me since the days i looked into GBA coding (which i haven't done).

Back in my old days when i coded ASM on the C64 memory addresses were written with a $ in front of them like $0400-$07ff for screen memory $a000-$bffff for the basic ROM etc. Reading documents on the GP32 memory map i get stuff like 0x14000000 - 0x15a0003f for hardware registers which is confusing to me and i haven't found a place to explain this to me. maybe someone here can help?

thanks,

AndY
 
it means that the number is hexidecimal (or base-16) as opposed to decimal (base-10) that we use in day to day life.
 
They both mean the same thing; the $ syntax is generally used by assemblers, the 0x syntax by C compilers.

In a C/C++ program you can use hex values by prefixing them with 0x (so 255 is 0xff). Because C tends to be used more by the average programmer than assembler these days, the 0x prefix seems to be used more than $.

Adam.
www.adamdawes.com
 
Back
Top