Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page34/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   30   31   32   33   34   35   36   37   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Hexadecimal Numbers


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.


Download 1.18 Mb.

Share with your friends:
1   ...   30   31   32   33   34   35   36   37   ...   82




The database is protected by copyright ©ininet.org 2024
send message

    Main page