Example 2: Assembling a JAS program

Getting Started
...     Example 2: Assembling a JAS program

This example shows you how to edit, and assemble a JAS source program, and load the resulting IJVM object program.

  1. Find the file examples/JAS-IJVM Examples/ijvmtest.jas
  2. Open this file in your favorite editor (emacs, notepad, etc.)
  3. Go to line 451.
  4. Replace the lines:
    OK:	BIPUSH 79
    	OUT
    	BIPUSH 75
    	OUT
    	HALT
    
    with
    OK:	BIPUSH 65
    	OUT
    	BIPUSH 79
    	OUT
    	BIPUSH 75
    	OUT
    	HALT
    
    and save the changes.
  5. On the simulator select from the Menu Bar File | Assemble/Load IJVM program ..... Navigate as before to examples/JAS-IJVM, and select ijvmtest.jas.
  6. The Assembling ijvmtest.jas ... window should appear, with "assembly complete" appearing soon in the text area. Click the Load button.
  7. Select Prog Speed and click the button, as before. You should now see in the Output Console:
    AOK