Qbasicnews.com
April 08, 2020, 01:25:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: compiled numbers  (Read 1275 times)
Fumador
Member
*
Posts: 38


« on: June 14, 2006, 06:10:23 PM »

are all compiled numbers in an executable
translated to the hexadecimal format?
how would be translated? COLOR 0,7
Logged
RyanKelly
Forum Regular
**
Posts: 109



WWW
« Reply #1 on: June 14, 2006, 09:25:44 PM »

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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!