| View previous topic :: View next topic |
| Author |
Message |
rmt38
Joined: 20 Dec 2005 Posts: 18
|
Posted: Mon Jan 09, 2006 4:25 am Post subject: best option for mira 723 |
|
|
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 |
|
 |
Sektor
Joined: 03 Mar 2005 Posts: 541
|
Posted: Tue Jan 10, 2006 1:55 am Post subject: |
|
|
| To make it work on M3 and G6 it needs powerON(POWER_ALL_2D | POWER_SWAP_LCDS); |
|
| Back to top |
|
 |
rmt38
Joined: 20 Dec 2005 Posts: 18
|
Posted: Tue Jan 10, 2006 5:08 am Post subject: |
|
|
| 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 |
|
 |
wintermute Moderator
Joined: 02 Jan 2003 Posts: 1722 Location: UK
|
Posted: Tue Jan 10, 2006 5:32 am Post subject: |
|
|
| 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 |
|
 |
rmt38
Joined: 20 Dec 2005 Posts: 18
|
Posted: Tue Jan 10, 2006 7:09 am Post subject: |
|
|
| 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 |
|
 |
rmt38
Joined: 20 Dec 2005 Posts: 18
|
Posted: Tue Jan 10, 2006 7:10 am Post subject: |
|
|
| 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 |
|
 |
wintermute Moderator
Joined: 02 Jan 2003 Posts: 1722 Location: UK
|
Posted: Tue Jan 10, 2006 7:22 am Post subject: |
|
|
| 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 |
|
 |
rmt38
Joined: 20 Dec 2005 Posts: 18
|
Posted: Tue Jan 10, 2006 7:43 am Post subject: |
|
|
| 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 |
|
 |
Sektor
Joined: 03 Mar 2005 Posts: 541
|
Posted: Tue Jan 10, 2006 7:57 am Post subject: |
|
|
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 |
|
 |
Darkflame
Joined: 26 Oct 2005 Posts: 1058
|
Posted: Tue Jan 10, 2006 12:19 pm Post subject: Re: Python 2.4.2 for NDS |
|
|
| 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 |
|
 |
rmt38
Joined: 20 Dec 2005 Posts: 18
|
Posted: Tue Jan 10, 2006 8:05 pm Post subject: |
|
|
| 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 |
|
 |
dovoto
Joined: 30 Dec 2002 Posts: 409 Location: Oregon
|
Posted: Tue Jan 10, 2006 10:01 pm Post subject: |
|
|
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 |
|
 |
NoMis
Joined: 20 Apr 2003 Posts: 314
|
Posted: Wed Jan 11, 2006 9:50 am Post subject: |
|
|
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 |
|
 |
|