Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Thu Mar 28, 2024 2:08 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ARM9 ASM to GNU ASM?
PostPosted: Thu Jun 21, 2007 5:06 pm 
Offline
Kommunist
Kommunist

Joined: Thu Jun 14, 2007 12:52 am
Posts: 6
Ok, I found out how to convert GNU Assembly to ARDS. But is there any docs on how to convert ARM9 ASM to GNU ASM?


Top
 Profile  
Reply with quote  
 Post subject: Re: ARM9 ASM to GNU ASM?
PostPosted: Fri Jun 22, 2007 12:35 pm 
Offline
Kommunist
Kommunist
User avatar

Joined: Fri Apr 27, 2007 9:41 am
Posts: 166
how do you convert?


Top
 Profile  
Reply with quote  
 Post subject: Re: ARM9 ASM to GNU ASM?
PostPosted: Fri Jun 22, 2007 6:45 pm 
Offline
Kommunist
Kommunist

Joined: Thu Jun 14, 2007 12:52 am
Posts: 6
nicky041192 wrote:
how do you convert?

Using this: http://kodewerx.net/forum/download.php?id=25


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Jun 25, 2007 9:47 am 
Offline
Komrade
Komrade

Joined: Tue Mar 27, 2007 10:18 am
Posts: 1328
I'm not sure what you're asking, but if you need to know the syntax to compile using kenobi's ASM to ARDS, here's an example script that should answer your questions:

ldr r4, Counter
ldrb r3, [r4]
ldr r0, IOFetch
ldrh r1, [r0]
mov r2, #0x100
and r1, r1, r2
cmp r1, #0x0
beq There
mov r0, #0x0
strb r0, [r4, #0x1]
b NoIncrement
There:
ldrb r0, [r4, #0x1]
cmp r0, #0x1
beq NoIncrement
add r3, #0x1
mov r0, #0x1
strb r0, [r4, #0x1]
NoIncrement:
cmp r3, #0x12
moveq r3, #0x0
strb r3, [r4]
ldr r6, IOFetch
ldrh r6, [r6]
mov r0, #0x4
and r6, r6, r0
mov r2, #0x1
ldr r5, Base
ldr r5, [r5]
mov r0, #0x9
lsl r0, r0, #0x8
add r0, #0x74
add r0, r0, r5
ldr r0, [r0]
str r3, [r0, #0x10]
str r3, [r0, #0x14]
cmp r6, #0x0
streq r2, [r0]
mov r0, #0xb
lsl r0, r0, #0x8
add r0, #0x84
add r0, r0, r5
ldr r0, [r0]
str r3, [r0, #0x10]
str r3, [r0, #0x14]
cmp r6, #0x0
streq r2, [r0]
mov r0, #0xd
lsl r0, r0, #0x8
add r0, #0x94
add r0, r0, r5
ldr r0, [r0]
str r3, [r0, #0x10]
str r3, [r0, #0x14]
cmp r6, #0x0
streq r2, [r0]
mov r0, #0xf
lsl r0, r0, #0x8
add r0, #0xa4
add r0, r0, r5
ldr r0, [r0]
str r3, [r0, #0x10]
str r3, [r0, #0x14]
cmp r6, #0x0
streq r2, [r0]
bx lr
IOFetch:
.long 0x4000130
Counter:
.long 0x23fffe8
Base:
.long 0x217bc14

C wat i did thar?

Edit: Don't leave your script terribly unoptimized like the one above ^ >____>

_________________
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 108 guests


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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group