Microprocessor Simulator 0 Help


CPU flags are NOT set. JO uses the (O) flag



Download 1.18 Mb.
Page79/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   74   75   76   77   78   79   80   81   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

CPU flags are NOT set. JO uses the (O) flag.


The (O) flag is set if a calculation gives a result too big to fit in an 8 but register.

Assembler

Machine Code

Explanation

JO Forward

C5 12

Jump if the (O) flag is set.
If the (O) flag is set, jump forward 12 places.
If the (O) flag is set, add 12 to (IP).
If the (O) flag is NOT set, add 2 to (IP).
The assembler calculates the jump distance.
The biggest possible forward jump is +127.

JO Back

C5 FE

Jump if the (O) flag is set.
If the (O) flag is set, jump back 2 places.
If the (O) flag is set, add -2 to (IP).
If the (O) flag is NOT set, add 2 to (IP).
The assembler calculates the jump distance.
The biggest possible backward jump is -128.
FE is -2. This is explained here.

Pop-up Help

JS


Download 1.18 Mb.

Share with your friends:
1   ...   74   75   76   77   78   79   80   81   82




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

    Main page