#82910 - Natso - Thu May 11, 2006 3:19 am
<i moved this from the coding forum, I realized that this forum specializes in ASM>
Ok, I got the multiboot demo from this site... I was able to change the demo up some and keep it working good. I implimented it into my space game (www.gamesforfree.net/natso/sea/)(yes, the full game will end up easily within the limits of multiboot-dom) and have but a single problem now,
I get these errors when running my makefile:
c:\windows\TEMP/ccDVX3fb.s: Assembler messages:
c:\windows\TEMP/ccDVX3fb.s:524: Error: invalid offset, target not word aligned (
0x000078F2)
c:\windows\TEMP/ccDVX3fb.s:524: Error: invalid offset, value too big (0x000075BC
)
c:\windows\TEMP/ccDVX3fb.s:524: Error: cannot represent THUMB_OFFSET relocation
in this object file format
And also, the errors dissapear when I comment out this code. However this code is vital to making multiboot work, so its not something I want to keep commented ;)
asm volatile (
" ldr r0,=mp\n"
" mov r1,#1\n"
" swi 0x25\n"
::: "r0","r1","r2","r8","r9","r10","r11","r12"
);
(this came directly from the demo)
Any clues as to what I should do?
_________________
I'm a bomb technitian. If you see me running, try to keep up ;)
Ok, I got the multiboot demo from this site... I was able to change the demo up some and keep it working good. I implimented it into my space game (www.gamesforfree.net/natso/sea/)(yes, the full game will end up easily within the limits of multiboot-dom) and have but a single problem now,
I get these errors when running my makefile:
c:\windows\TEMP/ccDVX3fb.s: Assembler messages:
c:\windows\TEMP/ccDVX3fb.s:524: Error: invalid offset, target not word aligned (
0x000078F2)
c:\windows\TEMP/ccDVX3fb.s:524: Error: invalid offset, value too big (0x000075BC
)
c:\windows\TEMP/ccDVX3fb.s:524: Error: cannot represent THUMB_OFFSET relocation
in this object file format
And also, the errors dissapear when I comment out this code. However this code is vital to making multiboot work, so its not something I want to keep commented ;)
asm volatile (
" ldr r0,=mp\n"
" mov r1,#1\n"
" swi 0x25\n"
::: "r0","r1","r2","r8","r9","r10","r11","r12"
);
(this came directly from the demo)
Any clues as to what I should do?
_________________
I'm a bomb technitian. If you see me running, try to keep up ;)