This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

About input_scrub_next_buffer() for input_line_pointer


Hello,all

The "input_line_pointer" is pointer to the whole *.s file that want to be

assembled by asembler.

The "input_line_pointer" is set by input_scrub_next_buffer(&input_line_pointer)

in  read_a_source_file() function which is defined in read.c

My question is that:

If my test.s is as following:

.text
 b (loop)

1. Then, the input_line_pointer is pointer like "\n.text\n b (loop)\n"
                                                           ^^^^^^^^   
If my test.s is as following:

.text
 (1,1) b (loop)

2. Then, the input_loine_pointer is pointer like "\n.text\n (1,1) b(loop)"
                                                                  ^^^^^^^

The difference is that when i add "(1,1) in front of the b (loop)", 
 the SPACE between "b" and "(loop)" disappear.

We need the SPACE between b and (loop), in order to separate the instruction 
and operand.

Anyone can tell me what happen?

                                                      Thanks a lot!!

 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]