Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page39/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   35   36   37   38   39   40   41   42   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Register Moves


Not available in this simulation.

A register move looks like this

MOV AL,BL

To do this using simulator commands, use

PUSH BL
POP AL

Push and Pop are explained later.


Calculated Addresses


Not available in this simulator.

Copy a value from RAM to a register or copy a value from a register to RAM. The RAM address is contained in square brackets and is calculated. This is done to simplify access to record structures. For example a surname might be stored 12 bytes from the start of the record. This technique is shown in the examples below.

MOV [CL + 5],AL ; Copy the value in AL to the RAM location that CL + 5 points to.
MOV BL,[CL + 12] ; Copy the RAM location that CL + 12 points to into the BL register.


Download 1.18 Mb.

Share with your friends:
1   ...   35   36   37   38   39   40   41   42   ...   82




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

    Main page