ARM Assembler on device

Hi,

does the device emulator supports ARM assembler written i a little asm file, compiled and linked to a normal app.exe written in C/C++?

I don't know i gettin' every time an access violation ( illegal instaruction ). It is fairly simple code:

in header just declaration:

extern"C"void Test();

in asm file for ARM just:

AREA text, CODE

EXPORT Test

Test

mov r4, #28 ; mov immediate 28 to r4 register

END


Without and with code in the "Test"- function block i getting an exception "illegal instruction".

Thx in advance.

[851 byte] By [maddin1234] at [2008-2-3]
# 1
Yes, the emulator supports all of the ARM v4i instruction set. The fact that the code is compiled or assembled not going to be an issue. I will have to do some more investigation, but my bet is that the structure of the code is incorrect when called from C.
MarkColburn at 2007-9-8 > top of Msdn Tech,Smart Device Development,Device Emulator General...
# 2
Yes you're right. If assemble without any meaningful code inside the asm-file i also get the error like:

AREA text, CODE

EXPORT Test

Test

; do nothing

END


The Problem is that the MSDN isn't really helpful there. The names of the registers are also not right in concerning the names of them like for the FPU-registers.
I had to read use the docs from www.arm.com .

I think it's the extern "C" declaration.

Bye and in thx advance
Martin

maddin1234 at 2007-9-8 > top of Msdn Tech,Smart Device Development,Device Emulator General...