- Aug 12, 2014
- 522
- 3
- 81
Hello,
How would you program a GUI application in assembly / machine?
Let's say something really simple:
I want to make a window pop up that has an X box in the corner that when clicked makes the window disappear and terminates the program.
In Java, I would just make a new JFrame or something. But the code in high level Java would map to atomic operation codes for the processor.
I know that they are processor dependent, but in general, what are those op codes?
Also, in general, how do you code event handling in assembly / machine?
Do you tell the processor to wait for a mouse interrupt signal? Then, query the location of the click and if the click occurred where the X box is currently located on the screen and then tell the screen to redraw itself without the window?
Would that work?
Thanks.
How would you program a GUI application in assembly / machine?
Let's say something really simple:
I want to make a window pop up that has an X box in the corner that when clicked makes the window disappear and terminates the program.
In Java, I would just make a new JFrame or something. But the code in high level Java would map to atomic operation codes for the processor.
I know that they are processor dependent, but in general, what are those op codes?
Also, in general, how do you code event handling in assembly / machine?
Do you tell the processor to wait for a mouse interrupt signal? Then, query the location of the click and if the click occurred where the X box is currently located on the screen and then tell the screen to redraw itself without the window?
Would that work?
Thanks.
Last edited: