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]

Line comments for PPC assembly


Hi,

I am trying to assemble some code for PPC750. The assembly contains comments
that start with ';'. I thought that for PPC, ';' is a valid start-of-comment
character, but assembler fails:

-> as -mppc -o test.o test.s -v
GNU assembler version 2.14 (powerpc-ibm-aix5.1.0.0) using BFD version 2.14
20030612
test.s: Assembler messages:
test.s:1: Error: Unrecognized opcode: `this'
test.s:2: Warning: rest of line ignored; first ignored character is `-'
test.s:3: Error: Unrecognized opcode: `first'
test.s:4: Error: Unrecognized opcode: `second'
test.s:5: Error: Unrecognized opcode: `third'

This is the sample code I tried to assemble:

;; This is a test file
;;--------------------------
  lis r9, 0xFFF0                ;   First line
  addi r9, r9, 0x0010         ;   Second line
  stwbrx r6, 0, r9              ;   Third line

If I change comments to C-style comments, with '/*' '*/', it works.

Are the ';' comments not supported anymore?

Thank you,

Igor Ageyev


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