Qbasicnews.com

Full Version: compiled numbers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
are all compiled numbers in an executable
translated to the hexadecimal format?
how would be translated? COLOR 0,7
No. A program that has been compiled into an .EXE file has generally been converted to x86 machine code, and all numerical data is stored in little endian binary. Many debuggers and hex editor will display this data in hexadicimal notation (that's what hex editors do!). If you'd like to an assembly language representation of the machine code your program is translated into, compile your source from the command line with BC.EXE and the "-a" option. When your are prompted for a list file, enter anything other than NUL.LST. The file name you supply will contain the assembly code for your program and data.