gbadev.org Forum Index gbadev.org
gbadev forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

best option for mira 723

 
Post new topic   Reply to topic    gbadev.org Forum Index -> DS development
View previous topic :: View next topic  
Author Message
rmt38



Joined: 20 Dec 2005
Posts: 18

PostPosted: Mon Jan 09, 2006 4:25 am    Post subject: best option for mira 723 Reply with quote

By coupling together favorable and unfa- of culture is usually short lived; the cen- intercellular cross-talk in tumor angiogenesis
"Sheep Herders of the West" by Arthur Chapman in "Outlook" in the early 1900s I found a free version of this on Google Books To find the article, use the following search terms: Wyoming "sheep dog"
nized nutrients such as vitamins C and E and the mineral calcium, but hemp, argan, and flax (linseed) oils because it adds no calories to the food being poached
natural chelated multiple mineral supplement as well feel should be attempted. To understand this, I have to do a little bit of math for you. One pound of fat 1. What are stretch marks?


Last edited by rmt38 on Tue Sep 07, 2010 2:14 pm; edited 2 times in total
Back to top
View user's profile Send private message
Sektor



Joined: 03 Mar 2005
Posts: 541

PostPosted: Tue Jan 10, 2006 1:55 am    Post subject: Reply with quote

To make it work on M3 and G6 it needs powerON(POWER_ALL_2D | POWER_SWAP_LCDS);
Back to top
View user's profile Send private message Visit poster's website
rmt38



Joined: 20 Dec 2005
Posts: 18

PostPosted: Tue Jan 10, 2006 5:08 am    Post subject: Reply with quote

Sektor wrote:
To make it work on M3 and G6 it needs powerON(POWER_ALL_2D | POWER_SWAP_LCDS);


Which appears to add 100kb to the size of the resulting binaries, and also still requires me to use lcdSwap(). What is wrong with them? Can't the manufacturers fix it in firmware?
Back to top
View user's profile Send private message
wintermute
Moderator


Joined: 02 Jan 2003
Posts: 1722
Location: UK

PostPosted: Tue Jan 10, 2006 5:32 am    Post subject: Reply with quote

rmt38 wrote:
Sektor wrote:
To make it work on M3 and G6 it needs powerON(POWER_ALL_2D | POWER_SWAP_LCDS);


Which appears to add 100kb to the size of the resulting binaries, and also still requires me to use lcdSwap(). What is wrong with them? Can't the manufacturers fix it in firmware?


Code:

static inline void powerON(int on) { POWER_CR = on;}


I fail to see how that can add 100k to your binary

if that line requires lcdSwap() then remove POWER_SWAP_LCDS ( be aware that the emulators appear to default to the opposite of the DS for screen swapping but specific settings work fine)
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
rmt38



Joined: 20 Dec 2005
Posts: 18

PostPosted: Tue Jan 10, 2006 7:09 am    Post subject: Reply with quote

wintermute wrote:

Code:

static inline void powerON(int on) { POWER_CR = on;}


I fail to see how that can add 100k to your binary


You are right, I had recompiled without -Os the second time.

wintermute wrote:

if that line requires lcdSwap() then remove POWER_SWAP_LCDS ( be aware that the emulators appear to default to the opposite of the DS for screen swapping but specific settings work fine)


This is what I get on my supercard:

1) Looks correct.
powerON(POWER_ALL_2D|POWER_SWAP_LCDS);
lcdSwap();

2) Keyboard on top screen (no swap?).
powerON(POWER_ALL_2D|POWER_SWAP_LCDS);

3) Keyboard on top screen (double swap?).
powerON(POWER_ALL_2D);
lcdSwap();

... So, I went with 1). But if you could clear up what I am not understanding about what this is supposed to mean, I would appreciate it.
Back to top
View user's profile Send private message
rmt38



Joined: 20 Dec 2005
Posts: 18

PostPosted: Tue Jan 10, 2006 7:10 am    Post subject: Reply with quote

Sektor wrote:
To make it work on M3 and G6 it needs powerON(POWER_ALL_2D | POWER_SWAP_LCDS);


Recompiled binaries uploaded, compiled as mentioned in the last post above. Works for me on the Supercard still.
Back to top
View user's profile Send private message
wintermute
Moderator


Joined: 02 Jan 2003
Posts: 1722
Location: UK

PostPosted: Tue Jan 10, 2006 7:22 am    Post subject: Reply with quote

rmt38 wrote:

This is what I get on my supercard:

1) Looks correct.
powerON(POWER_ALL_2D|POWER_SWAP_LCDS);
lcdSwap();


This is a double swap.

powerON(POWER_ALL_2D);

should do the same thing.

Quote:

2) Keyboard on top screen (no swap?).
powerON(POWER_ALL_2D|POWER_SWAP_LCDS);


This one swaps once

Quote:

3) Keyboard on top screen (double swap?).
powerON(POWER_ALL_2D);
lcdSwap();


as does this and should be the same as 2)
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
rmt38



Joined: 20 Dec 2005
Posts: 18

PostPosted: Tue Jan 10, 2006 7:43 am    Post subject: Reply with quote

wintermute wrote:

rmt38 wrote:

This is what I get on my supercard:

1) Looks correct.
powerON(POWER_ALL_2D|POWER_SWAP_LCDS);
lcdSwap();


This is a double swap.

powerON(POWER_ALL_2D);


Well, I think the reason I am confused is that I get a different result with POWER_SWAP_LCDS not set in any way, than I do with just powerON(POWER_ALL_2D). Does Supercard give me a initial setting of "already swapped"? And powerON just initialises it back to not swapped?

Well, in any case, the double swap should be fine for M3 and G6, so I will leave it as is until I get interested in working on this again.
Back to top
View user's profile Send private message
Sektor



Joined: 03 Mar 2005
Posts: 541

PostPosted: Tue Jan 10, 2006 7:57 am    Post subject: Reply with quote

The M3 is weird, keyboard is on bottom screen, as it should be but there is no text output on top screen and the shark fin pattern is not displayed correctly.

ndspythonM3.jpg

It still makes the button click sounds and is probably still functioning but the top screen is just not displaying what it should be. txtWriter 0.3 has a similiar problem, I have no idea how to fix it.
Back to top
View user's profile Send private message Visit poster's website
Darkflame



Joined: 26 Oct 2005
Posts: 1058

PostPosted: Tue Jan 10, 2006 12:19 pm    Post subject: Re: Python 2.4.2 for NDS Reply with quote

rmt38 wrote:
Hi,

A usable version of Python 2.4.2 for the Nintendo DS can be obtained from here. Along with the source code. It hooks in chishm's FAT code so that the CF card can be accessed from the Python programming language.

http://www.disinterest.org/NDS/Python24.html

e.g.

print ndsos.listdir("/")
print ndsos.stat("cf0:/python")
f = open("cf0:/python/lib/helloworld.py", "w")
f.write("def f(): return 'hello world'\n")
f.close()
import helloworld
print helloworld.f()


Fantastic!
Finally I can dabble with a bit of code myself. (yes, foolishly I can use just about any language *except* C :p)
Back to top
View user's profile Send private message
rmt38



Joined: 20 Dec 2005
Posts: 18

PostPosted: Tue Jan 10, 2006 8:05 pm    Post subject: Reply with quote

Sektor wrote:
The M3 is weird, keyboard is on bottom screen, as it should be but there is no text output on top screen and the shark fin pattern is not displayed correctly.

ndspythonM3.jpg

It still makes the button click sounds and is probably still functioning but the top screen is just not displaying what it should be. txtWriter 0.3 has a similiar problem, I have no idea how to fix it.


Have you tried downloading and compiling the source yourself? Maybe finding a demo with source that does work on your M3 and trying bits and pieces of its initialisation code in the NDSPython initialisation code might work out what I have to add.
Back to top
View user's profile Send private message
dovoto



Joined: 30 Dec 2002
Posts: 409
Location: Oregon

PostPosted: Tue Jan 10, 2006 10:01 pm    Post subject: Reply with quote

I recomend:

powerON(POWER_ALL_2D);
lcdMainOnTop();


or lcdMainOnBottom();

a bit less Ambiguous

Maybe I will remove the POWER_SWAP_LCDS define and replace with POWER_LCD_MAIN_ON_TOP and POWER_LCD_MAIN_ON_BOTTOM

...thats a lot of typing though :)
_________________
www.drunkencoders.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NoMis



Joined: 20 Apr 2003
Posts: 314

PostPosted: Wed Jan 11, 2006 9:50 am    Post subject: Reply with quote

Modern IDE's all have code completion so I guess it's not a big deal.
I think it's better to choose a descriptive name even when it's kinda long.

NoMis
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    gbadev.org Forum Index -> DS development All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group