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

ARM Assembler question.


Postby kornalius » Aug 28, 2005 @ 3:34am

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby refractor » Aug 28, 2005 @ 6:58am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby kornalius » Aug 29, 2005 @ 1:00am

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby refractor » Aug 29, 2005 @ 6:20am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby kornalius » Aug 29, 2005 @ 2:35pm

Your code seems to work well so far. Thanks.

Btw, how do you do a divide in assembly (ARM)? There are ADD, SUB and MUL operator but I didn't see a DIV.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby refractor » Aug 29, 2005 @ 2:48pm

There isn't one (it's a RISC chip, after all ;)). Start <a href="http://www.pocketmatrix.com/forums/viewtopic.php?t=11940&start=0">here</a>, maybe (or just look at what C does to perform a divide).
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby kornalius » Aug 30, 2005 @ 12:31am

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby joshbu [MSFT] » Aug 30, 2005 @ 6:39pm

joshbu AT microsoft dot-you-know-where
Windows CE Software Design Engineer

“This posting is provided “AS IS” with no warranties, and confers no rights.”
joshbu [MSFT]
pm Member
 
Posts: 60
Joined: Apr 10, 2004 @ 12:28am
Location: Redmond, WA


Postby kornalius » Aug 30, 2005 @ 7:09pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Aug 31, 2005 @ 12:21am

The mov instruction I have implemented is quite complex. It supports many varieties of addressing:

mov r0, r1
mov r0, 0x3AF
mov r0, [r1]
mov r0, [r1, 8]
mov [r0], r1
mov [r0, 8], 10
mov r0, [pplvar$]
mov [pplvar$], 10
mov [pplvar$, 8], 10

I made the mov and push quite complete, except the other operators are simpler, like add, sub ... For sure I had to add some opcodes underneath some of the mov'es addressing.

The push works transparently for ARM or Intel. On ARM is uses the r0-r3 before starting to push on the stack.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Previous

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