How to add GUI in Assembly Language?

Programming, for all ages and all languages.
Post Reply
User avatar
IdiotOS
Posts: 9
Joined: Tue Jun 25, 2013 7:14 pm
Location: India

How to add GUI in Assembly Language?

Post 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?
Casm
Member
Member
Posts: 221
Joined: Sun Oct 17, 2010 2:21 pm
Location: United Kingdom

Re: How to add GUI in Assembly Language?

Post 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.
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: How to add GUI in Assembly Language?

Post 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.
Developer of tyndur - community OS of Lowlevel (German)
Post Reply