Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page75/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   71   72   73   74   75   76   77   78   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Pop-up Help


Contents

ADD AND CALL CLI CLO CMP DB DEC DIV END HALT IN INC INT

IRET JMP JNO JNS JNZ JO JS JZ MOD MOV MUL NOP NOT OR ORG

OUT POP POPF PUSH PUSHF RET ROL ROR SHL SHR STI SUB XOR

CPU General Purpose Registers


The CPU is where all the arithmetic and logic (decision making) takes place. The CPU has storage locations called registers. The CPU has flags which indicate zero, negative or overflowed calculations. More information is included in the description of the system architecture.

The CPU registers are called AL, BL, CL and DL.


The machine code names are 00, 01, 02 and 03.

Registers are used for storing binary numbers.

Once the numbers are in the registers, it is possible to perform arithmetic or logic. Sending the correct binary patterns to peripherals like the traffic lights, makes it possible to control them.

; semicolon begins a program comment.

Comments are used to document programs. They are helpful to new programmers joining a team and to existing people returning to a project having forgotten what it is about.

Good comments explain WHY things are being done. Poor comments simply repeat the code or state the totally obvious.



Download 1.18 Mb.

Share with your friends:
1   ...   71   72   73   74   75   76   77   78   ...   82




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

    Main page