—————————————————————————————–
Example :
Address | Instruction | Hex Code | Comments |
---|---|---|---|
E000 | MVI A, 49H | 3E | Store 49H in A |
E001 | 49 | ||
E002 | MOV B, A | 47 | Copy the contents of A to B |
E003 | STA, E050H | 32 | Store the contents of A in location E050H |
E004 | 50 | location E050H | |
E005 | E0 | ||
E006 | MVI A, 56H | 3E | Store 56H in A |
E007 | 56 | ||
E008 | STA, E051H | 32 | Copy the contents of A |
E009 | 51 | in location E051H | |
E010 | E0 | ||
E011 | ADD B | 80 | Perform A + B and store the result in A |
E012 | RST 1 | CF | Ends the Program. |
0 + 0 = 0
0 + 1 = 1
1 + 1 = 10
0.0 = 0
1.0 = 0
0.1 = 0
1.1 = 1
(A + B)’ = A’.B’
(A.B)’ = A’ + B’
| A | B | A OR B | |—|—|——–| | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 1 |
| A | B | A AND B | |—|—|———| | 0 | 0 | 0 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 1 |
| A | NOT A | |—|——-| | 0 | 1 | | 1 | 0 |
| A | B | A ⊕ B | |—|—|——-| | 0 | 0 | 0 | | 0 | 1 | 1 | | 1 | 0 | 1 | | 1 | 1 | 0 |
| A | B | A ⊙ B | |—|—|——-| | 0 | 0 | 1 | | 0 | 1 | 0 | | 1 | 0 | 0 | | 1 | 1 | 1 |
| S | R | Q (Next State) | Q’ (Next State) | |—|—|—————-|—————–| | 0 | 0 | Q | Q’ | | 0 | 1 | 0 | 1 | | 1 | 0 | 1 | 0 | | 1 | 1 | Undefined | Undefined |
| J | K | Q (Next State) | Q’ (Next State) | |—|—|—————-|—————–| | 0 | 0 | Q | Q’ | | 0 | 1 | 0 | 1 | | 1 | 0 | 1 | 0 | | 1 | 1 | Toggle | Toggle |
| D | Q (Next State) | |—|—————-| | 0 | 0 | | 1 | 1 |
| T | Q (Next State) | |—|—————-| | 0 | Q | | 1 | Toggle |
Reference :
© 2024 KeblaOS Project. All rights reserved.