|
In the command MOV AL,2 the 2 is a hexadecimal number. The hexadecimal number system is used in low level programming because there is a very convenient conversion between binary and hex. Study the Hexadecimal and Binary number systems.
| END |
The last command in all programs should be END. Any text after the END keyword is ignored.
| Your Tasks
Use all the registers AL, BL, CL and DL and experiment with ADD, SUB, MUL and DIV.
Find out what happens if you try to divide by zero.
| Example - 99nasty.asm - Nasty
Contents
|
This example shows how you can create totally unreadable code.
Try not to do this.
This program actually works. Copy it and paste it into the simulator and try it!
Click the List-File tab to see the code laid out better and to see the addresses where the code is stored.
To get back to the editor window click the Source-Code tab.
Share with your friends: |