This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I debug the following program with Keil?

Hello, I've just started with Arm Assembly and downloaded Keil but I'm not sure how do I debug the below "Hello World" program, When I create a new project what device should I select? I know it might be a dumb question but I'm stuck at the moment. Thank you 

.data

/* Data segment: define our message string and calculate its length. */
msg:
    .ascii      "Hello, ARM!\n"
len = . - msg

.text

/* Our application's entry point. */
.globl _start
_start:
    /* syscall write(int fd, const void *buf, size_t count) */
    mov     %r0, $1     /* fd := STDOUT_FILENO */
    ldr     %r1, =msg   /* buf := msg */
    ldr     %r2, =len   /* count := len */
    mov     %r7, $4     /* write is syscall #4 */
    swi     $0          /* invoke syscall */

    /* syscall exit(int status) */
    mov     %r0, $0     /* status := 0 */
    mov     %r7, $1     /* exit is syscall #1 */
    swi     $0          /* invoke syscall */