Search found 40 matches

by Dwedit
Fri Jul 29, 2011 7:46 am
Forum: Off Topic
Topic: NO$GBA hates the "push sp" instruction, libgcc uses it
Replies: 5
Views: 9492

NO$GBA hates the "push sp" instruction, libgcc uses it

It appears that NO$GBA does not emulate the push (stmfd) instruction correctly when SP is one of the registers which is pushed onto the stack. Unfortunately, libgcc uses this instruction a few times: _aeabi_ldivmod _aeabi_uldivmod _arm_cmpdf2 _arm_cmpsf2 libunwind For example, in _aeabi_ldivmod: 2c:...
by Dwedit
Tue May 26, 2009 2:43 pm
Forum: GBA Development
Topic: Missing parenthesis on register address equates
Replies: 0
Views: 3644

Missing parenthesis on register address equates

I was just noticing that gba_timers.h formats them like this:

Code: Select all

#define REG_TM0CNT		*(vu32*)(REG_BASE + 0x100)
when it should be like this:

Code: Select all

#define REG_TM0CNT		(*(vu32*)(REG_BASE + 0x100))
by Dwedit
Sat May 16, 2009 2:14 am
Forum: devkitARM
Topic: Memset and memcpy suck
Replies: 0
Views: 1454

Memset and memcpy suck

I don't see any ldmia's or stmia's in the implementations of memset or memcpy. Care to provide a better one? For reference, here is memcpy's inner loop when doing a word-aligned copy: 8000b58: 6826 ldr r6, [r4, #0] 8000b5a: 601e str r6, [r3, #0] 8000b5c: 6866 ldr r6, [r4, #4] 8000b5e: 605e str r6, [...
by Dwedit
Tue May 12, 2009 3:40 am
Forum: Bug Reports
Topic: [devkitARM] Objdump's disassembler is broken!
Replies: 0
Views: 2002

[devkitARM] Objdump's disassembler is broken!

I'm trying to use objdump to disassemble an ARM binary file. For some reason, the disassembler does some nasty stuff like this: 30028a0: e1a03c45 asr r3, r5, #24 30028a4: e2588c09 subs r8, r8, #2304 ; 0x900 30028a8: 0001 lsls r1, r0, #0 30028aa: f10054d9 undefined instruction 0xf10054d9 It's marking...
by Dwedit
Mon Mar 16, 2009 7:58 pm
Forum: DS/DSi Development
Topic: Get rid of static gl_hidden_globals* glGlob = &glGlobalData;
Replies: 2
Views: 1743

Re: Get rid of static gl_hidden_globals* glGlob = &glGlobalData;

Okay... I am using the source code for the FCS2 DLDI driver, and I'm building it. It doesn't use any of libnds's functions, but includes nds.h anyway, probably so it can have the data types and memory region names. Inside the ASM code generated are these lines: .section .data.rel,"aw",%progbits .ali...
by Dwedit
Tue Mar 03, 2009 12:34 am
Forum: DS/DSi Development
Topic: Get rid of static gl_hidden_globals* glGlob = &glGlobalData;
Replies: 2
Views: 1743

Get rid of static gl_hidden_globals* glGlob = &glGlobalData;

Please get rid of this declaration from videogl.h:
static gl_hidden_globals* glGlob = &glGlobalData;

This is executable code in a header file, which forces the linker to include videogl.a no matter what.

I recommend you replace it with:
#define glGlob (&glGlobalData)
by Dwedit
Sat Feb 21, 2009 1:16 am
Forum: GBA Development
Topic: disc_io.h missing?
Replies: 0
Views: 3742

disc_io.h missing?

Disc_io.h appears to be missing when I compile a GBA program which uses Libfat.
by Dwedit
Sun Feb 15, 2009 5:57 am
Forum: Gamecube/Wii Development
Topic: Using the GBA/GCN link cable?
Replies: 0
Views: 2063

Using the GBA/GCN link cable?

How do I use the GBA/GCN link cable?
by Dwedit
Sun Jan 06, 2008 4:16 am
Forum: Suggestions and Feedback
Topic: Emulation Tools along with the devkitPro tools
Replies: 1
Views: 3215

Re: Emulation Tools along with the devkitPro tools

Check out the VBA-M project, people are trying to merge and integrate the various forks of VBA into one Frankensteinian monster emulator.
http://forums.ngemu.com/vba-m/
by Dwedit
Sun Jan 06, 2008 4:07 am
Forum: Suggestions and Feedback
Topic: Raise password length limit on this board
Replies: 0
Views: 4024

Raise password length limit on this board

I use generated passwords 32 characters long, and 30 characters won't hold the whole thing.