Addition of multi-byte numbers in Z-80

Chandu yadav
Updated on 30-Jul-2019 22:30:24

358 Views

Now, in this section we will see how we can use the Zilog Z-80 Microprocessor to add Multi-byte numbers.In this example, we are using 4-byte numbers (56 2F 7A 89)16 and (21 FB A9 AF)16In the memory, at first, we are storing the byte counts, and then the numbers (from least significant bytes to Most significant bytes) in different segments. So after storing the data, the memory structure will be look like thisAddressValue5000H04H...5050H89H5051H7AH5052H2FH5053H56H...5070HAFH5071HA9H5072HFBH5073H21H...Now, we are writing a program at location 8000H to add these two 4-byte number and store the result at location 5090H onwards.ProgramAddressHex CodesLabelsMnemonicsComments800037SCFSet the carry flag80013FCCFComplement the ... Read More

Exchange of blocks in Z-80

George John
Updated on 30-Jul-2019 22:30:24

271 Views

In this section we will see how we can use the Zilog Z-80 Microprocessor to Exchange the contents of each element from two different blocks.The number of items in each block are given at location 5000H, and the blocks are at position 5050H and 5070H.So before swapping the items in the memory is looking like thisAddressValue5000H04H...5050H89H5051H7AH5052H2FH5053H56H...5070HAFH5071HA9H5072HFBH5073H21H...Now, we are writing a program at location 8000H to exchange the block contents.ProgramAddressHex CodesLabelsMnemonicsComments800021 00 50LD HL, 5000HLoad the HL pair with 5000H8003DD 21 50 50LD IX, 5050HSet the index register with 5050H8007DD 7E 00LD A, (IX+00H)Load Acc with IX + 00H800ADD 46 20LD ... Read More

What points should one keep in mind while dealing with theme writing?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24

337 Views

Theme writing is very important under the banner of Academic writing. One must keep it crisp and clear in order to avoid any confusion in it.Things to keep in mind for Theme WritingUnity: All your sentences should work around a central idea. This will happen only when at the beginning itself we know about the keywords and the key sentence in the paragraph. The key sentence in the paragraph defines our field of work or the subject matter of our creative flow of thoughts. We must strategically confine ourselves to eliminate ourselves from any sort of digression from our themeCoherence: ... Read More

As an HR of a company, what kind of attitude should I carry at work?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24

449 Views

Human Resource manager or HR of a company holds quite a significant role in the overall functionality of the proceedings carried out in an organization. However, an HR sometimes may appear quite different in the other employees' depiction. So, why does it happen? Plainly because the responsibilities the HR person has to carry. But can it be done without being characterized? Here's the answer:Attitude You Must CarryNot To Be Too Close to Anyone In the Office: Human Resource Manager should be someone who alienates himself/herself in the office. This is because, HR is involved in dealing with leave applications, appraisal ... Read More

How to pass HPE0-S37 Certification exam with flying colors?

Leela
Updated on 30-Jul-2019 22:30:24

134 Views

To test and certify on one's knowledge about HPE server products and solutions, the HPE0-S37 exam is conducted. By completing the exam and attaining certification, one can increase his/her chances of getting server-related jobs.The question is how to pass the exam with flying colors. Due to the complexity of the course, it is a tough task to pass HPE0-S37. If you know the structure of the exam, you can prepare accordingly and chances of passing will increase. Here is the pattern of questions given during the exam.Foundational server architecture and technology 37%Functions, features, and benefits of HPE server products and ... Read More

Convert output of MySQL query to UTF8?

Arjun Thakur
Updated on 30-Jul-2019 22:30:24

3K+ Views

You need to use CAST() or CONVERT() function to convert output of MySQL query to UTF8. Here, I am using MySQL version 8.0.12. Let us first check the version:mysql> select version(); +-----------+ | version() | +-----------+ | 8.0.12 | +-----------+ 1 row in set (0.00 sec)In this if you use utf8 then you will get warning of aliases because it has utf8mb4. Therefore, you can avoid the warning by placing utf8mb4.Note: Never use UTF8. For current versions, use UTF8MB4Here is the syntax to convert output of MySQL query to UTF8:SELECT yourColumnName1, convert(yourColumnName2 USING utf8) as anyVariableName FROM ... Read More

How to echo print statements while executing an SQL script?

Vrundesha Joshi
Updated on 30-Jul-2019 22:30:24

3K+ Views

To perform echo print statements while executing SQL scripts, use the following syntax.The syntax is as follows −SELECT ‘anyStringValue as’ ‘;The query is as follows −mysql> select 'This is a SQL Script' AS' ';The following is the output −+----------------------+ | | +----------------------+ | This is a SQL Script | +----------------------+ 1 row in set, 1 warning (0.00 sec)You can add dynamic data to your status like insert, update and delete with the help of concat() function. The query is ... Read More

Why do companies focus on customer satisfaction scores?

Leela
Updated on 30-Jul-2019 22:30:24

195 Views

Every business will have stiff competition from already established businesses and brands. Nowadays whether it is simple chips packet or a luxury car, people have become smart enough to go through the reviews and customer ratings before they buy. People will judge by hearing the name of the brand and make decisions based on other customer's reviews. These trends are seen more in online eCommerce sites.It's clear that customer satisfaction metrics are essential for any business. They impact the decisions of current and potential customers. This is the reason, you should never ignore the importance of customer satisfaction. Online surveys ... Read More

What is called "Angle of Banking"?

Vandana Rao
Updated on 30-Jul-2019 22:30:24

301 Views

The occurrence of lifting the outer border of the curved road over the inner border is to give necessary combining force to the vehicles to take a guarded turn and the curved road is termed as Banking of Roads. When a vehicle prevails around a curved road, it needs some combining force.While moving around the curve, the wheels of the vehicle have a propensity to leave the curved path and recover the straight line path. Force of friction between wheels and the roads goes against this propensity of the wheels. This force of friction accordingly acts towards the middle of ... Read More

What is the way to practice verbal ability for SSC Bank PO examination?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24

170 Views

Bank PO, SSC examinations are some of the popular competitive examinations taken by aspirants who wish to step into a good government job. The syllabus includes questions on Quantitative Aptitude, Logical Reasoning, Verbal Ability, and General Knowledge.How to Prepare for Verbal Ability?Go through the complete syllabus of the particular exam you are planning to take.Purchase verbal ability books available in the market. You may also get it from someone, or get second-hand books from the market if you do not wish to buy new copies.Practice each and every concept from these books, and practice those concepts which you find difficult ... Read More

Advertisements