We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 */
The recommended way to start with Keil's PK51 is explained at:
https://www.keil.com/product/brochures/uv4.pdf
In example page 35 explains the Debugger.
( access to PK51: https://www.keil.com/c51/pk51kit.asp )