Microprocessor Simulator 0 Help



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

Arithmetic


The add command comes in two versions. Here are two examples

ADD AL,BL - Add BL to AL and store the result into AL

ADD AL,5 - Add 5 to AL and store the result into AL

Look at the on-line help to find out about SUB, MUL and DIV. Remeber that you can access on-line help by pressing the F1 key.


Registers


Registers are storage locations where 8 bit binary numbers are stored. The central processing unit in this simulator has four general purpose registers called AL, BL, CL and DL. These registers are interchangeable and can, with a few exceptions, be used for any purpose.

Newer central processing unit (CPU) chips have 16, 32 or even 64 bit registers. These work in the same way but more data can be moved in one step so there is a speed advantage.

Wider registers can store larger integer (whole) numbers. This simplifies many programming tasks. The other three registers SP, IP and SR are described later.


Download 1.18 Mb.

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




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

    Main page