hello everyone, i need to compile some little assembly code for an ARM PXA-270 processor running with instruction set V5TE. i have written arm assembly in the past but using the armulator on a windows machine.
since i have developed most of the application software for this arm processor using scratchbox and its toolchains, i would like to know if there is an assembler for scrachbox, like armasm or whatever else.. i have found the executable 'arm-linux-as' and tried to do a compile of a simple hello world program as 'arm-linux-as hello.s, but it failed miserably: the program was *; Exercise 1: A simple program to print**; Hello World! in the console window**;* AREA helloW, CODE, READONLY *; declare code area* SWI_WriteC EQU &0 *; output character in r0* SWI_Exit EQU &11 *; finish program* ENTRY *; code entry point* START ADR r1, TEXT *; r1 -> "Hello World!"* LOOP LDRB r0, [r1], #1 *; get the next byte* CMP r0, #0 *; check for 'null' character* SWINE SWI_WriteC *; if not end, print ..* BNE LOOP *; .. and loop back* SWI SWI_Exit *; end of execution* TEXT = "Hello World!", &0a, &0d, 0 *; string + CR + LF + null* END and the compilation errors i got were: [sbox-DEHTARGET: ~] > arm-linux-as hello.s hello.s: Assembler messages: hello.s:0: Warning: end of file not at end of a line; newline inserted hello.s:1: Error: bad instruction `exercise 1:A simple program to print' hello.s:2: Error: bad instruction `hello World!in the console window' hello.s:4: Error: bad instruction `area helloW,CODE,READONLY' hello.s:4: Error: bad instruction `declare code area' hello.s:5: Error: bad instruction `swi_writec EQU&0' hello.s:5: Error: bad instruction `output character in r0' hello.s:6: Error: bad instruction `swi_exit EQU&11' hello.s:6: Error: bad instruction `finish program' hello.s:7: Error: bad instruction `entry' hello.s:7: Error: bad instruction `code entry point' hello.s:8: Error: bad instruction `start ADR r1,TEXT' hello.s:8: Error: bad instruction `r1 ->"Hello World!"' hello.s:9: Error: bad instruction `loop LDRB r0,[r1],#1' hello.s:9: Error: bad instruction `get the next byte' hello.s:10: Error: bad instruction `check for 110ull32character' hello.s:11: Error: bad instruction `if not end,print ..' hello.s:12: Error: unknown pseudo-op: `..' hello.s:13: Error: bad instruction `end of execution' hello.s:15: Error: bad expression hello.s:15: Warning: rest of line ignored; first ignored character is `H' hello.s:15: Error: bad instruction `string +CR+LF+null' hello.s:16: Error: bad instruction `end' i am using: the core and libs is 0.9.8 with toolchain 'arm-gcc-3.3.4-glibc-2.3.2 cross'... thank you in advance for your help nass
_______________________________________________ Scratchbox-users mailing list Scratchbox-users@lists.scratchbox.org http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users