gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > best option for mira 723

#66227 - rmt38 - Mon Jan 09, 2006 4:25 am

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

#66353 - Sektor - Tue Jan 10, 2006 1:55 am

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

#66369 - rmt38 - Tue Jan 10, 2006 5:08 am

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?

#66373 - wintermute - Tue Jan 10, 2006 5:32 am

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)

#66382 - rmt38 - Tue Jan 10, 2006 7:09 am

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.

#66383 - rmt38 - Tue Jan 10, 2006 7:10 am

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.

#66385 - wintermute - Tue Jan 10, 2006 7:22 am

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)

#66387 - rmt38 - Tue Jan 10, 2006 7:43 am

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.

#66389 - Sektor - Tue Jan 10, 2006 7:57 am

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.

#66400 - Darkflame - Tue Jan 10, 2006 12:19 pm

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)

#66433 - rmt38 - Tue Jan 10, 2006 8:05 pm

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.

#66447 - dovoto - Tue Jan 10, 2006 10:01 pm

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

#66497 - NoMis - Wed Jan 11, 2006 9:50 am

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