Robots w/Lasers

June 9, 2008

Partial MIDP support on the DS

ole has taken my KVM port to Nintendo DS and added some updates. I haven’t played with it much, but he lists the changes as follows.

R3: New features added by Ole:

  • fixed the CLDC implementation (timer, memory size, system properties)
  • added support for reading of the PNG images (code taken from the PhoneMe project)
  • implemented native functions for rendering the basic graphics primitives on the screen
    (lines, rectangles, triangles, images)
  • added support for accepting the JAD files in the application browser
  • added the core part of the Pstros MIDP library
  • added VideoTest example to show how to draw on the screen
  • added ‘_rebuild.bat’ to show how to build and preverify the class files.
    Note WTK installation is required.

This is quite interesting if it is able to run some MIDP-compliant games, but we’ll need to do some testing to see how the speed compares to your average mobile phone.

UPDATE: He’s made a few more updates since I originally made this post. Be sure to check out ole’s site for the latest info and download links.

Filed under: Java,Nintendo DS,Software — davr @ 9:41 am

August 8, 2007

Java for NDS?

I know what you’re thinking…”That’s a horrible idea and you’re a horrible person for suggesting it!”

The main problems with Java on DS:
1. Interpreted languages are slower, the overhead is bad on a slower embedded platform
2. No direct memory access. Almost all of the DS hardware is interfaced by reading and writing directly to specific memory locations
3. No primitive unsigned 8-bit types. What were they thinking?

But…I went ahead and did it anyway, just for fun. I didn’t start from scratch, I took Torlus’s KVM port to GBA and used that as a base for getting it to work on DS. Right now, when it starts, you pick a .class file, and it will run it! In addition, using KNI, I’ve written a basic wrapper around parts of libnds, enough to read input from the touchscreen/buttons, and to move sprites around.

Download here: — includes the compiled KVM.nds, some examples along with source code, and instructions on making your own .java files.

To use this demo, place kvm.nds, all the *.class files, and all the *.bin files on the root of your flashcart.
Run kvm.nds, then select a .class file to run. There are a few examples testing various stuff.
Don’t forget to DLDI-patch the kvm.nds

Filed under: Java,Nintendo DS,Software — davr @ 8:36 am

Powered by WordPress

Bad Behavior has blocked 10803 access attempts in the last 7 days.