dimitry,
These three .equ statements are part of an assembly language file that contains nothing but about 300 .equ statements. These three statements are the only .equ statements that contain data within quotations ("000,000,192,240", etc). The rest of the .equ statements are in the form:
.equ ml_sline_24,131
.equ ml_sline_25,123
.equ ml_sline_26,115
A coworker had earlier mentioned mentioned using gcc to pre-process the literal string assignments in the manner that you'd written about. What is an example of an assembly source file that contains both the #define statements and also contains assembly language statements? What are the steps needed to process that assembly source file so that it is processed by both gcc and as?
Main Topics
Browse All Topics





by: dimitryPosted on 2006-11-15 at 07:13:37ID: 17947531
I think this is because of "string"...
I would suggest to use next trick:
1) Rename your file from myfile.s to myfile.S
2) Change lines to
#define ml_variable_scrn "000,000,192,240"
#define ml_adv_msg_scrn "000,240,192,016"
#define ml_fixed_scrn "000,256,192,064"
3) Compile myfile.S with gcc, so gcc will take care of #define stuff...
If it will not work then you'll need to show us how these defines are used in code so we will help you to convert it to gnu assembler.