Page 1 of 1

How to add GUI in Assembly Language?

Posted: Sun Jul 21, 2013 3:09 am
by IdiotOS
Is there is any possibilities to have GUI in Assembly Language ?

Is it possible to integrate Assembly language and c program?


Is it possible to integrate Assembly language and Java programming language?

Re: How to add GUI in Assembly Language?

Posted: Sun Jul 21, 2013 3:26 am
by Casm
IdiotOS wrote:Is there is any possibilities to have GUI in Assembly Language ?

Is it possible to integrate Assembly language and c program?


Is it possible to integrate Assembly language and Java programming language?
Yes to the first two, probably not to the third.

For a hobbyist, writing a GUI in either assembly language or C, most likely means making use of the VBE protected mode BIOS. The original motive for the VBE was that every graphics card manufacturer was doing its own thing, with propriety extensions to VGA, and programmers couldn't possibly cater for all of them, so they catered for none of them, and carried on programming SVGA adaptors as it they were VGA adapters.

That persuaded the graphics card manufacturers that they had better get their act together, but they did that by introducing a BIOS extension, rather than by standardising the hardware.

Re: How to add GUI in Assembly Language?

Posted: Sun Jul 21, 2013 3:57 am
by Kevin
Casm wrote:Yes to the first two, probably not to the third.
Yes to all three, in fact.

With gcj you can compile Java to native x86 code, and then all you need is some runtime library that you can write in assembly. Granted, adding some C(++) will make it more fun, but there's nothing stopping you from doing it all in assembly.

Or, if the question wasn't aimed at using Java in a kernel, I suppose with JNI you can use an assembly library in Java programs.