What it's the "If" for Thumb?
B{<cond>} <Target Addr> ?
Or cmp?
---
Hey guys, sorry for too many questions (Without answer, but anyway)
I'm having troubles with this routine:
This its what Thumb Says:
Microsoft Windows [Versión 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.
C:\Users\Lucas\Desktop\thumb>thumb TESTRU.asm TESTRU.bin
C:\Users\Lucas\Desktop\thumb>thumb TESTRU.asm TESTRU.bin
TESTRU.asm: Assembler messages:
TESTRU.asm: 0: Warning: end of file not at end of a line; newline inserted
TESTRU.asm: 8: Error: bad expression -- `ldr r0,#0x04000000'
TESTRU.asm: 9: Error: bad expression -- `ldrh r1,#0x6404'
TESTRU.asm: 11: Error: bad expression -- `ldr r0,#0x0'
TESTRU.asm: 12: Error: bad expression -- `ldr r1,#0x0'
TESTRU.asm: 13: Error: bad expression -- `ldr r0,#0x0600961F'
TESTRU.asm: 16: Error: unknown pseudo-op: `.loop'
TESTRU.asm: 21: Error: bad expression -- `b {r3=#0x95FF}'
The Objective of this its to load an 256*160px Bitmap in mode 4 of video... Any help will be apreciated
B{<cond>} <Target Addr> ?
Or cmp?
---
Hey guys, sorry for too many questions (Without answer, but anyway)
I'm having troubles with this routine:
Code:
.text
.align 2
.thumb
.thumb_func
.global Show_Image
push {r0-r3, lr}
ldr r0,#0x04000000
ldrh r1,#0x6404
strh r0,[r1]
ldr r0,#0x0
ldr r1,#0x0
ldr r0,#0x0600961F
ldr r1,.Offset_Imagen
bl .Loop
.Loop sub r0,#0x20
add r1,#0x20
ldr r2,[r1]
ldr r0,[r2]
add r3,#0x1
B {r3 EQ #0x95FF}
pop {r0-r3, PC}
.align 2
.Offset_Imagen:
.word 0x0895FFE0
This its what Thumb Says:
Microsoft Windows [Versión 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos.
C:\Users\Lucas\Desktop\thumb>thumb TESTRU.asm TESTRU.bin
C:\Users\Lucas\Desktop\thumb>thumb TESTRU.asm TESTRU.bin
TESTRU.asm: Assembler messages:
TESTRU.asm: 0: Warning: end of file not at end of a line; newline inserted
TESTRU.asm: 8: Error: bad expression -- `ldr r0,#0x04000000'
TESTRU.asm: 9: Error: bad expression -- `ldrh r1,#0x6404'
TESTRU.asm: 11: Error: bad expression -- `ldr r0,#0x0'
TESTRU.asm: 12: Error: bad expression -- `ldr r1,#0x0'
TESTRU.asm: 13: Error: bad expression -- `ldr r0,#0x0600961F'
TESTRU.asm: 16: Error: unknown pseudo-op: `.loop'
TESTRU.asm: 21: Error: bad expression -- `b {r3=#0x95FF}'
The Objective of this its to load an 256*160px Bitmap in mode 4 of video... Any help will be apreciated
Last edited: