This site is no longer active and is available for archival purposes only. Registration and login is disabled.

help on this assembler


help on this assembler

Postby dasluna » Jul 1, 2006 @ 2:32pm

dasluna
pm Member
 
Posts: 2
Joined: Jul 1, 2006 @ 2:30pm


Postby refractor » Jul 1, 2006 @ 7:20pm

mov r0,r12 is not r12=r0, but r0=r12

stmdb is stacking onto an empty, descending stack, which is a shame because it should be a full descending

ldr r0, [r12]+ --> ldr r0,[r12],#4 (no +)

ldmia {r12}, sp! makes no sense whatsoever

jmp isn't an ARM instruction at all


You really need to go read up on ARM code, you just can't make stuff up... If you post what you want to do in pseudocode/C/whatever then I'll translate it into ARM for you so you get the idea...
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby dasluna » Jul 1, 2006 @ 7:47pm

Thanks for your help,

I finally managed to implement what I was looking for in pure C :)
dasluna
pm Member
 
Posts: 2
Joined: Jul 1, 2006 @ 2:30pm


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron