This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Juergen. I think the directives you wrote below, are not for GNU assembler. I couldn't find such directives in manual. Can somebody comment on that?? Juergen Suessmaier wrote: > > > Does anybody know what is the directives syntax in GAS to : > I'm not too sure if these directives are CPU dependent, but for > the m68k they are: > > > * define storage (reserve a block of memory) > > (most of assembler use DS) > LABEL .RES.B <numbytes> > LABEL .RES.W <numwords> > LABEL .RES.L <numlongwords> > > > * define constant block (allocate a block of data) > > (most of assembler use DCB) > LABEL .DATA.B <byte-value>,<byte-value>,... > LABEL .DATA.W <word-value>,... > LABEL .DATA.L <longword-value>,... > LABEL .ASCII "Some ASCII string\0" > > > * define constant value (allocate a data) > > (most of assembler use DC) > LABEL .ASSIGN <value> > > Numeric values can be entered in decimal (default), hex or bin. For hex > numbers you need the prefix h' (example: MYLABEL .ASSIGN h'4afc), for > binary numbers you need the prefix b' (example: MYLABEL .ASSIGN b'1001). > Maybe there's one for octal numbers also, but I've never used that... > > Hope this helps. > > Regards, > Juergen > ------------------------------------------------------------------------- > Juergen Suessmaier > Texas Instruments Deutschland EMail: > Automation Software Group juergen@ti.com > Haggertystr 1 juergen@jss01.ntakpe.com > D-85356 Freising, Germany Juergen.Suessmaier@FernUni-Hagen.de > ------------------------------------------------------------------------- -- Dony Email : dony@willowglen.com.sg