All Programmers who know how to answer.

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Monki

Newbie
Full Member
Dec 7, 2012
8
428
0
Hey forum,

Just going back to my studies and I kind of need your help in answering one the question that is uploaded.

The Subject is Microprocessors; and it has three tasks to answer. However I've answered Task 1 & 2 but I didn't answer Task 3 because the moment I read the question.
I had question marks popping out of my head.

And No you don't need to use the 8085 simulator but showing it to me in ASM.

here is my answer and if there is a mistake I did... Please correct me .

Task 1

Investigate microprocessor-based systems. In your investigation you should cover the following points:
a) Compare types of microprocessor-based system
Super Computers: uses 60 billion-3 trillion of instructions per sec
This will be for recovering data damages for the government, keep account financial safe, having connected across globe.

Mainframe Computers: uses 40-4550 MIPs processor speed
These are used for data storage when playing video games online, or setting account to a website that you are registered.

Midrange Computers: 25-100 MIPs processor speed
Uses same as Mainframe but has least jobs to do.

b) Investigate three typical applications of microprocessor based systems

Workstation: used for creating video games, connecting to severs or streaming videos.
Personal Computer: Uses for personal use such as work, education, video games etc
Network Computers: using to serve the web, sharing data, sending data and streaming live videos.


Task 2

Design and test 8085 assembly language program for the following task:
a) Write an 8085 assembly language programme, which masks the low-4 bit digits of the number in memory location 0800 and the low-4 bit digits of the number in memory location 0801. Add the two numbers together and store the result in memory locations 0810 upwards.
LXI H,0800
MOV B,M
LXI H,0801
MOV A,M
ADD B
LXI H,0810
MOV M,A
HLT LOOK AT 2ND & 3RD INSTRUCTION
MOVE REGISTER M TO B
LOOK AT 2ND & 3RD INSTRUCTION
MOVE REGISTER M TO A
ADD REGISTER B TO A
LOOK AT 2ND & 3RD INSTRUCTION
MOVE REGISTER A TO M
HALT

b) By using structured design technique, design an 8085 assembly language programme, which compares the contents of memory location 0800 with the contents of memory location 0801. If the contents of 0800 is larger than the contents of 0801 then put ‘FF’ in memory location 0810, otherwise put ‘00’.
LXI H,0800
MOV B,M
LXI H,0801
MOV A,M
CMP B
JMP YES
LXI H,0810
MVI A,00
MOV M,A
HLT
YES
LXI H,0810
MVI A,FF
MOV M,A
END
LOOK AT 2ND & 3RD INSTRUCTION
MOVE REGISTER M TO B
LOOK AT 2ND & 3RD INSTRUCTION
MOVE REGISTER M TO A
COMPARE REGISTER B
JUMP YES
LOOK AT 2ND & 3RD INSTRUCTION
MOVE IMMEDIATE A TO 00
MOVE REGISTER A TO M
HALT
YES
LOOK AT 2ND & 3RD INSTRUCTION
MOVE IMMEDIATE FF TO A
MOVE REGISTER M TO A
END


c) Write an 8085 assembly language programme, which checks the number in memory location 0800. If the number is an even number, then put ‘FF’ in memory location 0810, otherwise put ‘00’.
LXI H,0800
MOV A,M
CMP A
JNC YES
LXI H,0810
MVI 00,M
HLT
YES
LXI H,0810
MVI FF,M
HLT


d) Write an 8085 assembly language programme to perform: If (NUM1-NUM2)>NUM3 then put the result in memory location 0850 upwards, otherwise put the result in memory location 0860 upwards. Where each of NUM1 and NUM2 is two-byte number and NUM3 is a one-byte number. The numbers are stored in the following memory locations:

NUM1 0800 & 0801
NUM2 0802 & 0803
NUM3 0804
LXI H,0800
MOV B, M
LXI H,0802
MOV A,M
SUB B
LXI H,0850
MOV M,A
LXI H,0801
MOV B,M
LXIH,0803
MOV A,M
SBB B
LXI H,0860
MOV M,A
LXI H,0804
MOV A,M
LXI H,0850
ANA M
MOV M,A
LXI H,0860
ANA M
MOV M,A
HLT

Regards

Monki
 

Attachments

j3b

Jr.Coder
Full Member
Nobleman
Dec 18, 2012
67
408
1
wish i could help but never worked with that assembly language before! :0
 

Monki

Newbie
Full Member
Dec 7, 2012
8
428
0
No worries, i just upload it today and I'll see later on if anyone else knows this.

However what I answered in task 2, do you understand that part?
 

AguaChaman

Newbie
Dank Tier Donator
Oct 3, 2012
8
212
0
idk much about 8085 but the low four/eight bits are usually represented by two letters in Intel ASM.
32 bits : EAX EBX ECX EDX
16 bits : AX BX CX DX
8 bits : AH AL BH BL CH CL DH DL
are all registers in 8085 represented by single letters?
 

Monki

Newbie
Full Member
Dec 7, 2012
8
428
0
idk much about 8085 but the low four/eight bits are usually represented by two letters in Intel ASM.
32 bits : EAX EBX ECX EDX
16 bits : AX BX CX DX
8 bits : AH AL BH BL CH CL DH DL
are all registers in 8085 represented by single letters?
Um I'm not to sure, because I haven't used it and my lecturer said that it's just a simulator not a live simulator.
So we in the class learned the old fashion way on a white board and write it down(not type) in our books lol

but here is the link to see how it looks like : 8085 Simulator

Monki XD
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods League of Legends Accounts