Monday, January 27, 2020

Assembler Directives of 8086 Microprocessor

Assembler Directives of 8086 Microprocessor INTRODUCTION: Assembly languages are low-level languages for programming computers, microprocessors, microcontrollers, and other IC. They implement a symbolic representation of the numeric machine Codes and other constants needed to program a particular CPU architecture. This representation is usually defined by the hardware manufacturer, and is based on abbreviations that help the programmer to remember individual instructions, registers. An assembler directive is a statement to give direction to the assembler to perform task of the assembly process. It control the organization if the program and provide necessary information to the assembler to understand the assembly language programs to generate necessary machine codes. They indicate how an operand or a section of the program is to be processed by the assembler. An assembler supports directives to define data, to organise segments to control procedure, to define macros. It consists of two types of statements: instructions and directives. The instructions are translated to the machine code by the assembler whereas directives are not translated to the machine codes. Assembler Directives of the 8086 Microprocessor (a) The DB directive (b) The DW directive (c) The DD directive (d) The STRUCT (or STRUC) and ENDS directives (counted as one) (e)The EQU Directive (f)The COMMENT directive (g)ASSUME (h) EXTERN (i) GLOBAL (j) SEGMENT (k)OFFSET (l) PROC (m)GROUP (n) INCLUDE Data declaration directives: 1. DB The DB directive is used to declare a BYTE -2-BYTE variable A BYTE is made up of 8 bits. Declaration examples: Byte1 DB 10h Byte2 DB 255 ; 0FFh, the max. possible for a BYTE CRLF DB 0Dh, 0Ah, 24h ;Carriage Return, terminator BYTE 2. DW The DW directive is used to declare a WORD type variable A WORD occupies 16 bits or (2 BYTE). Declaration examples: Word DW 1234h Word2 DW 65535; 0FFFFh, (the max. possible for a WORD) 3. DD The DD directive is used to declare a DWORD A DWORD double word is made up of 32 bits =2 Words or 4 BYTE. Declaration examples: Dword1 DW 12345678h Dword2 DW 4294967295 ;0FFFFFFFFh. 4. STRUCT and ENDS directives to define a structure template for grouping data items. (1) The STRUCT directive tells the assembler that a user defined uninitialized data structure follows. The uninitialized data structure consists of a combination of the three supported data types. DB, DW, and DD. The labels serve as zero-based offsets into the structure. The first elements offset for any structure is 0. A structure element is referenced with the base + operator before the elements name. A Structure ends by using the ENDS directive meaning END of Structure. Syntax: STRUCT Structure_element_name element_data_type? . . . . . . . . . ENDS (OR) STRUC Structure_element_name element_data_type? . . . . . . . . . ENDS DECLARATION: STRUCT Byte1 DB? Byte2 DB? Word1 DW? Word2 DW? Dword1DW? Dword2 DW? ENDS Use OF STRUCT: The STRUCT directive enables us to change the order of items in the structure when, we reform a file header and shuffle the data. Shuffle the data items in the file header and reformat the sequence of data declaration in the STRUCT and off you go. No change in the code we write that processes the file header is necessary unless you inserted an extra data element. (5) The EQU Directive The EQU directive is used to give name to some value or symbol. Each time the assembler finds the given names in the program, it will replace the name with the value or a symbol. The value can be in the range 0 through 65535 and it can be another Equate declared anywhere above or below. The following operators can also be used to declare an Equate: THIS BYTE THIS WORD THIS DWORD A variable declared with a DB, DW, or DD directive has an address and has space reserved at that address for it in the .COM file. But an Equate does not have an address or space reserved for it in the .COM file. Example: A Byte EQU THIS BYTE DB 10 A_ word EQU THIS WORD DW 1000 A_ dword EQU THIS DWORD DD 4294967295 Buffer Size EQU 1024 Buffer DB 1024 DUP (0) Buffed_ ptr EQU $ ; actually points to the next byte after the; 1024th byte in buffer. (6) Extern: It is used to tell the assembler that the name or label following the directive are I some other assembly module. For example: if you call a procedure which is in program module assembled at a different time from that which contains the CALL instructions ,you must tell the assembler that the procedure is external the assembler will put information in the object code file so that the linker can connect the two module together. Example: PROCEDURE -HERE SEGMENT EXTERN SMART-DIVIDE: FAR ; found in the segment; PROCEDURES-HERE PROCEDURES-HERE ENDS (7) GLOBAL: The GLOBAL directive can be used in place of PUBLIC directive .for a name defined in the current assembly module; the GLOBAL directive is used to make the symbol available to the other modules. Example: GLOBAL DIVISOR: WORD tells the assembler that DIVISOR is a variable of type of word which is in another assembly module or EXTERN. (8) SEGMENT: It is used to indicate the start of a logical segment. It is the name given to the the segment. Example: the code segment is used to indicate to the assembler the start of logical segment. (9) PROC: (PROCEDURE) It is used to identify the start of a procedure. It follows a name we give the procedure. After the procedure the term NEAR and FAR is used to specify the procedure Example: SMART-DIVIDE PROC FAR identifies the start of procedure named SMART-DIVIDE and tells the assembler that the procedure is far. (10) NAME: It is used to give a specific name to each assembly module when program consists of several modules. Example: PC-BOARD used to name an assembly module which contains the instructions for controlling a printed circuit board. (11) INCLUDE: It is used to tell the assembler to insert a block of source code from the named file into the current source module. This shortens the source module. An alternative is use of editor block command to cop the file into the current source module. (12) OFFSET: It is an operator which tells the assembler to determine the offset or displacement of a named data item from the start of the segment which contains it. It is used to load the offset of a variable into a register so that variable can be accessed with one of the addressed modes. Example: when the assembler read MOV BX.OFFSET PRICES, it will determine the offset of the prices. (13) GROUP: It can be used to tell the assembler to group the logical segments named after the directive into one logical group. This allows the contents of all he segments to be accessed from the same group. Example: SMALL-SYSTEM GROUP CODE, DATA, STACK-SEG.

Sunday, January 19, 2020

Food Availability Essay

This essay will consider the influence of historical and contemporary factors on such staple food as ‘’rice’’. The historical factors that have influence the ability of rice include migration of cultural groups, cash crop farming and farming technology. The contemporary changes of rice will include social, technology, political and economic. Before the Europeans arrived, Australian Aborigines people used hunting and gathering methods to collect food. Native foods were being known such as plants, animals and insects. Firstly, one of the most important historical factors that have influence the ability of rice is migration. Rice was introduced after Australia started to accept migrants from Asia. When people move from one country to another they bring the knowledge ‘’food’’ that they had with them. Therefore, rice has become popular because it is easily steamed or boiled and is eaten at all meals. For example, most migrants are not first generation. The family influence had taught the young family members the culture and beliefs about rice such as how to cook and eat. Secondly, cash crop farming is a type of farming for the purpose of making profit. A transnational company is a large company whose business dealings operate in many counties. Local people work the land and receive an income. For example, the famers will get a higher paid to grow things on the farm that being requested by the companies but the disadvantage is its high to start but then de-values. So, the lack of rice had been struggling in Australia. Thirdly, farming technology. Rice is a very hard staple food because it takes about 2-3 months to grow. Farmers used to use animals such as buffaloes or cows to help them farm. It’s tiring and uses lots of energy but it’s still convenience for people every day needs. Nowadays, Developed countries like Australia uses the knowledge of food production and processing to help to increase the availability of food. Social is influences by society which means that the variety of people inspire what we eat. We are now more understanding of the cultures and lifestyles as we are living in a multicultural world. Australian started to get to know more foods such as Asian, Italian, Mexican, etc†¦ For example, we all know that Asian countries such as China have rice for their everyday meals. We also know that rice goes with every meals and can be eaten with soup and people influence this to one to another. In addition, technology influences microwaves and rice-cookers which mean that we are being able to cook rice faster and easier. For example, you can go out to buy a package of frozen rice and microwaved it for 3 minutes or you can use a rice cooker to cook by putting your rice in and press start. As there are many choices you can keep it warm for a very long hours, non-sticky rice or quick cook. It saves time and labour. Where we look back 200 years ago, we did not have the ability to cook rice like the new technology. Plus, Marketplace is where consumers purchase rice from. The accessibility has been changed because we are able to plant rice ourselves. We have a choice to purchase such as online payments, shopping under one roof and the stores are located most of the places. Also, it’s cheaper than importing rice from overseas. Moreover, the political is a system of government in a country. The Australian government has a protection policy and a control on food imports of foreign products to achieve the goal. The government decides whether to let where rice imported from. For example, back in time, we were not able to import rice into our country because of our restrictions and low economic. To sum up, Economics of food means that people have money to buy food. Without money developing countries won’t have food available. But because we are living in a developed country we are able to have a high living standard compared to the poor countries. Rice is cheap in Australia therefore the lower the prices are the most people tend to spend the money. This money will be recycling. In conclusion, the influence of historical and contemporary factors on a staple food ‘’rice’’ that I’ve made above such as migrants, farming technology, cash crops, social, and technology, political and economic had changed Australia rapidly.

Friday, January 10, 2020

Beethoven Research Paper Essay

While many men and women throughout history have made significant, valuable and lasting contributions to society, Ludwig Van Beethoven is an especially remarkable figure worthy of special note because he embraced and devoted his whole life to music. Born to a drunkard father and an unhappy mother, the young Beethoven was exposed to a brutal training in music at the hands of his father, who hoped that the young boy would prove to be another prodigy like Mozart. Ludwig Van Beethoven’s music set the 18th century Traditions and were shaped and molded because of the great composers Mozart and Haydn, who taught and raised him up in his musical capabilities (Ludwig Beethoven). Beethoven’s success was measured by his devotion, Beethoven dropped out of grade school by the age of ten to study music full time with Christian Gottlob Neefe. March 26, 1778 Beethoven performed his first piano recital at the age of seven; at the twelve years of age Beethoven published his first composition made up of Piano Variations (Ludwig Beethoven). Throughout the years Beethoven began to experiment with different styles and genres of music, the styles changes can be heard in his symphonies, String quartets, and Piano Sonatas. At a young age Beethoven requested to be an assistant court organist, because of his young age Court officials were hesitant but accepted him (Ludwig Van Beethoven). Through his young years of his life, it is clearly evident to how devoted and passionate he was when it came to music. Through the musical years and compositions of Ludwig Van Beethoven, Beethoven gave opening to his own dramatic musical voice. Through Beethoven’s adulthood he faced many trials and tribulations. But Beethoven always used his problems as a stepping stool to become stronger and better at whatever he did, and at the same time he was composing his great and memorable works, Beethoven was struggling with the fact that he was going deaf (Ludwig Van Beethoven). In 1801 Beethoven confessed this horrible news to Franz Wegeler, a German physician from Bonn, German; the same place Beethoven was born. He wrote, â€Å"I must confess that I lead a miserable life for almost two years. I have ceased to attend any social functions, just because I find it impossible to say to people: I am deaf. If I had any other profession, I might be able to cope with my infirmity; but in my profession it is a terrible handicap† (Ludwig Van Beethoven). Miraculously, despite his increasing deafness, Beethoven continued to compose. From 1803-1812, these years are what is known as his â€Å"heroic† period (Ludwig Van Beethoven). He created so much music, proving people nothing could stop him. He composed an opera, 6 symphonies, 4 solo concerti, 5 string quartets, 6 string sonatas, 7 piano sonatas, 5 sets of piano variations, 4 overtures, 4 trios, 7 sextets, and 72 songs (Beethoven, Ludwig van). Despite his amazing output of beautiful music, Beethoven was lonely and always miserable throughout his adulthood. Beethoven never married or had children (Beethoven, Ludwig van) and somehow, despite his wild personal life, physical disability, and complete deafness, Beethoven composed his greatest music. String quartet NO. 14 contains 7 linked movements without a break (Ludwig Beethoven). Beethoven’s adulthood was a crazy rollercoaster but in everything he did, he was always dedicated and did everything whole-heartedly. A quote by Liszt, the Arch Romantic, perfectly sums the impact and importance of Ludwig Van Beethoven to not only the music community but also to the history of music itself. â€Å"To us musicians the work of Beethoven parallels the pillars of smoke and fire which led the Israelites throughout the desert, a pillar of smoke to lead us by day, and a pillar of fire to light the night. His darkness and his light equally trace for us the road we must follow, both the one and other are a perpetual commandment and an intolerable revolution.† Works Cited: â€Å"Beethoven, Ludwig van.† Pbs. Feb 17 2013, 8:00 http://www.pbs.org/wnet/gperf/education/beethoven.html â€Å"Ludwig Beethoven.† 2013. The Biography Channel website. Feb 15 2013, 12:05 http://www.biography.com/people/ludwig-van-beethoven-9204862. â€Å"Ludwig Van Beethoven.† Encyclopedia of World Biography. Detroit: Gale, 1998. Gale Biography In Context. Web. 15 Feb. 2013. [pic]

Thursday, January 2, 2020

Essay on New Treatments for Breast Cancer - 1923 Words

New Treatments for Breast Cancer Breast Cancer affects one in eight of American women, and is the second most common cause of cancer death in America. I chose to write my term paper on breast cancer because it is a disease that has effected some members of my family. Due to this possibly inherited condition, I felt that researching the topic would help me learn ways to prevent the disease and educate myself to perform self-exams that may result in early detection. Breast cancer is a malignant tumor in the glandular tissues of the breast. Such tumors, also called carcinomas, form when the chemical processes that control normal cell growth break down, enabling a single abnormal cell to multiply at a rapid rate (Hickman). Carcinomas,†¦show more content†¦Such findings, all of which relate to hormone-based life events, suggest that breast cancer is somehow affected by prolonged exposure to female sex hormones, such as estrogen. Women with a history of breast cancer in the family are also at greater risk. About five percent of all breast cancers have been attributed to a mutated, or structurally altered, gene known as BRCA1. Mutations in a second gene, BRCA2, contribute significantly to the development of breast cancer in Jewish women. Alcohol, high levels of fat in the diet, and not exercising regularly have also been linked to increased risk for breast cancer (Garber). Three-quarters of all breast cancer patients are not in any of the groups considered at increased risk for breast cancer, indicating that not all risk factors are understood. As a result, doctors recommend that every woman should familiarize herself with the techniques for monthly breast self-examination. X-ray examination of the breasts, a technique called mammography, can detect tumors before they are large enough to be felt and increase the odds for successful treatment. The American Cancer Society recommends that women over age 40Show MoreRelatedNew Drugs For Breast Cancer Treatment Essay1382 Words   |  6 Pageswithout affecting host body cells. Cancer chemotherapeutic agents New Drugs for Breast Cancer Treatment: 1. Herceptin: ïÆ' ¼ Type of drug: Monoclonal antibody A class of drugs developed to work alone or together with chemotherapy to seek out and attack specific cancer cells. ïÆ' ¼ Mechanism: Herceptin attaches itself to a protein called HER2 that is found on the surface of 20 to 25 percent of breast cancers. HER2 stimulates cell growth and prevents breast cancer cell death. When Herceptin binds toRead MoreEssay on Breast Cancer Treatment1316 Words   |  6 Pages Breast Cancer Treatment nbsp;nbsp;nbsp;nbsp;nbsp;Only lung cancer kills more women each year in the United States than breast cancer does. The American Cancer Society (ACS) estimates that over 184,000 new cases of breast cancer were diagnosed in women in 1996 (ACS Breast). Although these statistics are alarming, there are a number of treatment options available for those that are diagnosed with breast cancer. nbsp;nbsp;nbsp;nbsp;nbsp;The best way to treat any disease is to prevent itRead MoreBreast Cancer; Saving the Girls 959 Words   |  4 PagesBreast cancer is the second most prominent cause of cancer deaths in women. About 1 in 8 American women living in the U.S. will be diagnosed with invasive breast cancer sometime during the course of their life. About 39,620 of those women will die from it. â€Å"Breast cancer occurs when cells in the breast divide and grow without their normal control† (Komen). There are two main types of breast cancer. Ductal carcinoma, the most common type which starts in the tubes that transport milk from the breastRead MoreCancer Is A Word That Most Everyone Fears. It Affects Millions1203 Words   |  5 PagesCancer is a word that most everyone fears. It affects millions of lives on an everyday basis. However, breast cancer seems to grab more attention due to its recurrence. According to an article in Opposing Viewpoints, breast cancer is a disease in which abnormal breast cells begin to grow uncontrollably, forming tumors. Breast cancer is highly common amongst today’s society, and has sparked much research in the medical field worldwide. Contrary to popular belief, breast cancer is not a modern illnessRead MoreOverview of Breast Cancer Essay1015 Words   |  5 PagesIf you or a loved one were diagnosed with breast cancer, how would you feel? You would probably feel very afraid and worried. Breast cancer is a common and potentially deadly form of cancer that affects both men and women. There are risk factors for getting the disease and there are different types of treatment for people who have been diagnosed with the disease. There are also steps that people can take to try to prevent getting breast cancer or at least catch it early. Luckily there are manyRead MoreBreast Cancer Prevention and Education Essay1695 Words   |  7 PagesAccording to the American Cancer Society, â€Å"Breast cancer is the common disease of women in the United States, other than skin cancer.† After lung cancer, it is the leading secondary cause of cancer death in women. It helps to have some basic facts about the normal makeup of the breasts to understand breast cancer. In the past, this disease was one of the most feared forms of cancer due to its fatality rate and because complete recovery often required breast removal. The best way to fight this diseaseRead MoreBreast Cancer Is Not Just A Single Disease? Essay1486 Words   |  6 PagesBreast cancer is not just a single disease. It may come in different types. One particular type and the most common is the invasive ductal carcinoma or the infiltrating ductal carcinoma. This is cancer that invades the surrounding breast tissues as it breaks through walls of the milk duct. Ductal carcinoma in situ (DCIS) is another type of cancer. This is non-invasive, meaning it does not spread to the surrounding breast tissues. Another type is the triple negative breast cancer. This happens whenRead MoreBreast Cancer Treatment1620 Words   |  7 PagesBreast Cancer Treatment Breast cancer is turning to be one of the top killer women in the world. This kind of cancerous tumor is attacking breast tissue of woman. A disease in which abnormal cells in the breast divide and multiply in an uncontrolled fashion. The cells can invade nearby tissue and can spread through the bloodstream and lymphatic system to others part of the body and start to kill the organ one by one. By giving a breast cancer treatment will decrease the number of populationRead MoreBreast Cancer: Risk Factors and Treatment Essay examples1620 Words   |  7 PagesBreast Cancer What would you do if you found out you had breast cancer? Who would you tell first? How would you deal with it? The diagnosis of breast cancer is becoming more common today; we need to know what the symptoms are, and how to help prevent it. Breast cancer is the leading reason of death in women in the United States; it has increased greatly over the last 30 years. Many people wonder why it has increased so much in the last few years, and there are many reasons that it has. BreastRead MoreBreast Cancer Essay937 Words   |  4 PagesBreast cancer along with many other cancers are being researched daily to find new treatments. With all the new research, it is possible to see high survival rates and lower reoccurrence rate. Many are benefiting from the new treatments that are being discovered. Breast cancer is the second leading cause of death in women and the advancements that have been made are remarkable. There are different types of breast cancer that could be used in planning treatment and new therapies. Authors of Mayo