Computer architecture and organization - programming the basic computer pls help me solve this question, I will attach a table below pls use it to solve q1 q1) Write an assembly code that do the followings. Initialize A, B, S as you wish.             IF A > B then S = A – B             If A < B then S = B – A             If A = B then S = 0 use this table

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Computer architecture and organization - programming the basic computer

pls help me solve this question, I will attach a table below pls use it to solve q1

q1) Write an assembly code that do the followings. Initialize A, B, S as you wish.

            IF A > B then S = A – B

            If A < B then S = B – A

            If A = B then S = 0

use this table 

Неха соde
O or 8
Description
AND M to AC
Add M to AC, carry to E
Load AC from M
Store AC in M
Branch unconditionally to m
Save return address in m and branch to m+1
Increment M and skip if zero
Clear AC
Clear E
Complement AC
Complement E
Circulate right E and AC
Circulate left E and AC
Increment AC, carry to E
Skip if AC is positive
Skip if AC is negative
Skip if AC is zero
Skip if E is zero
Halt computer
Input information and clear flag
Output information and clear flag
Skip if input flag is on
Skip if output flag is on
Turn interrupt on
Turn interrupt off
Symbol
AND
1 or 9
2 or A
m: effective
address
М: mетory word
(operand) at m
ADD
LDA
STA
3 or B
BUN
BSA
4 or C
5 or D
6 or E
ISZ
CLA
CLE
7800
7400
7200
7100
7080
7040
7020
7010
7008
7004
7002
7001
F800
F400
F200
F100
F080
IOF F040
CMA
CME
CIR
CIL
INC
SPA
SNA
SZA
SZE
HLT
INP
OUT
SKI
SKO
ION
Transcribed Image Text:Неха соde O or 8 Description AND M to AC Add M to AC, carry to E Load AC from M Store AC in M Branch unconditionally to m Save return address in m and branch to m+1 Increment M and skip if zero Clear AC Clear E Complement AC Complement E Circulate right E and AC Circulate left E and AC Increment AC, carry to E Skip if AC is positive Skip if AC is negative Skip if AC is zero Skip if E is zero Halt computer Input information and clear flag Output information and clear flag Skip if input flag is on Skip if output flag is on Turn interrupt on Turn interrupt off Symbol AND 1 or 9 2 or A m: effective address М: mетory word (operand) at m ADD LDA STA 3 or B BUN BSA 4 or C 5 or D 6 or E ISZ CLA CLE 7800 7400 7200 7100 7080 7040 7020 7010 7008 7004 7002 7001 F800 F400 F200 F100 F080 IOF F040 CMA CME CIR CIL INC SPA SNA SZA SZE HLT INP OUT SKI SKO ION
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY