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.
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.
Share with your friends: |