asm command supported ?

1 view
Skip to first unread message

kentar...@gmail.com

unread,
Nov 24, 2007, 5:10:24 PM11/24/07
to java4psp
Hello, I'm Cristian an italian developer, sorry for my english but is
not my first language.

Long time ago I wrote a compiler
( http://freeforumzone.leonardo.it/discussione.aspx?idd=2925995 )

I founded very useful to allow one specific command on my compiler :
asm

what this command do?
it simply output the assembly code in the assembly file I generate,
in this way I can extend the language simply creating some basic
functions that call assembly language,
then once i have that function i could use it on my language.

How this command (or a command that can call external c functions) can
be useful into your project?

In this way you can write some basic routine to , for example, draw on
the screen , catch the input etc..
since someone already wrote these routine in assembly or in c, it
would be only a cut and paste

in this way you can have full psp speed graphics and the power of a
object oriented language!

I don't know how your vm interpreter work, but if you can precompile
I think you should think at it for a second.

if you're worried for the real java compiler thinking that it cant
understand the syntax, than you can easily work around this using a
dummy class that define asm.

example :

void foo(){
new Asm("Asm code");
}

kentar...@gmail.com

unread,
Nov 26, 2007, 5:26:44 AM11/26/07
to java4psp
BTW this project: http://blog.davr.org/2007/08/08/java-for-nds/
is similar to yours because is a porting of KWM,
ythanks to this project i found that KWM support KNI, which davr uses
for drawing sprites on the screen and read the input,
http://72.5.124.55/javame/reference/docs/kni/KNIspec.pdf
this allows directly write WM extensions in C.
the only drawback is that KWM need to be rebuild.

On Nov 24, 11:10 pm, "kentaromi...@gmail.com" <kentaromi...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages