Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page42/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   38   39   40   41   42   43   44   45   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Overflow


When BL reaches 7F hex or 127 in decimal numbers the next number ought to be 128 but because of the way numbers are stored in binary, the next number is minus 128. This effect is called an OVERFLOW.

Status Register (SR)


The status register labelled SR contains four flag bits that give information about the state of the CPU. There are three flags that indicate whether a calculation overflowed, gave a negative result or gave a zero result. Calculations set these flags

  • S The sign flag indicates a negative result.

  • O The overflow flag indicates overflows.

  • Z The zero flag indicates a zero result.

  • I Interrupts enabled. STI turns this on. CLI turns this off.

These flags are described in more detail later.

JMP Rep


This command causes the central processing unit (CPU) to jump back and repeat earlier commands or jump forward and skip some commands.

Download 1.18 Mb.

Share with your friends:
1   ...   38   39   40   41   42   43   44   45   ...   82




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

    Main page