Website for essays
Research Paper Topics On World Hunger
Sunday, August 23, 2020
Friday, August 21, 2020
Differences between Islamic Financing Methods and Conventional Research Paper
Contrasts between Islamic Financing Methods and Conventional Financing Methods - Research Paper Example The motivation behind this examination is to feature the contrasts between the regular financing strategies and Islamic financing techniques. The developing height of Islamic financing techniques in various pieces of the world has offered various choices to clients. It should be referenced that Islamic financing strategies are not the same as the customary financing techniques as far as intrigue and benefit components. Nonetheless, not many individuals know about that and regularly consider Islamic financing techniques as like traditional financing strategies. The examination targets featuring the fundamental contrast between these two financing strategies alongside dissecting the general significance and noteworthiness in the monetary condition. The examination additionally features the hugeness of the investigation in the present business and social condition. There is no uncertainty that Islamic financing techniques are driven by strict lessons and lecturing while traditional fina ncing strategies depend on current and useful components of the monetary condition like gaining benefit for each venture. The exploration includes an intensive investigation of contrasts among Islamic and customary financing techniques, appraisal of focal points and drawbacks in the monetary condition and inclination of clients driven by strict issues and individual proclivity towards the financing strategies. Monetary foundations are frequently considered as the heart beat of any country and smooth activity of these establishments regularly thrives the ideal harmony between the interest and gracefully of assets. There are various banks having various styles and impression of working in a specific business and social condition. Islamic free enterprise depended on Islamic standards where intrigue was denied in each sense. Islamic free enterprise can be followed path back in 8-twelfth century however this has next to no criticalness to this investigation. The main role of this examina tion is to feature the contrasts between the customary financing strategies and Islamic financing techniques. The developing height of Islamic financing techniques in various pieces of the world has offered various choices to clients. It should be referenced that Islamic financing techniques are unique in relation to the regular financing strategies as far as intrigue and benefit components (Hassan, Kabir, Lewis, (2007). Be that as it may, not many individuals know about that and regularly consider Islamic financing techniques as like traditional financing strategies. The investigation targets featuring the fundamental contrast between these two
Tuesday, July 14, 2020
Essay Sample about Police Brutality
Essay Sample about Police Brutality In the ideal world, the police is a power that should protect people and enforce the law. Unfortunately, practice shows a completely different picture. Very often, police forces become a threatening power that breaks the law and dont respect peopleâs rights. Police brutality is, first of all, presented in the international usage of expressive force and verbal attacks directed towards any countries citizens by the police force. Apart from this, it is not necessarily a physical action, it can also be a psychological intimidation. The statics show that the number of cases of police brutality increases every year. In most of the cases police brutality represented in the form of police misconduct. In other words, false arrests, sexual abuse, political repression, police corruption, racial profiling, and other similar things are a representation of a police brutality. In most of the situations, these forms of brutality are usually directed towards vulnerable groups of people, like the poor, the elderly, and the weak. In other words, those who canât protect themselves suffer the most. A lot of the countries allow their police forces to use when it is necessary. Yet, according to the law, such actions should be reasonable. Unfortunately, very often they arenât justified, and it is necessary to do something with this. One of the most common forms of the police brutality is racial discrimination. Especially, it is clearly seen in the United States. People, who work in the police should forget about their personal attitude and protect all of the citizens of the country. For example, in America, there is a thing that is called DWB or driving while black. It is a vivid example of a racial profile. Innocent people are pulled over by the police just because of their race. The reason for such actions is simple, a lot of the policemen believe that most of the black people are drug users and traffickers. The same situation is with the Arab Americans and peopleâs belief that most of them are terrorists. The other weak groups, like the elderly, the poor, the weak, drug addicts, and women, are also suffering from the police brutality. In most of the situation, it is represented by the demanding of bribes and sex or routine beatings. Very often such approach has a psychological reason. People, who work in police, feel that they have more power and rights than other people. This feeling creates the feeling of impunity. There are only two things that can help to change the situation with the police brutality for better. The first one is the law. If the government takes some actions against police brutality, there are some chances that it can help. For example, it is possible to create a law that states that any police officer who is accused of brutality by more than two people shouldnât be paid for a month. Yet, the best decision is to eliminate the public and police work together. In this case, it will be possible to control actions of the police. Apart from this, it is quite useful to citizen review boards. They will give the people a chance to bring in their opinions about excessive force into the review of the police conduct. Not all of the people who work there are necessarily bad. There are those, who really want to protect the ordinary citizens and help those who need this. However, a great number of the police workers forget about this with some time because of different reasons. That is why, it is essential for the police to work together with the public organizations that can control such things. Every person, if he/she wants this, can help to decrease the number of police brutality cases.
Thursday, May 21, 2020
Main Tips to Select a Topic for Political Science Thesis Paper
Main Tips to Select a Topic for Political Science Thesis Paper Topic defines the direction of your thesis paper and contributes greatly to its future success or failure. There are several key points to help you with choosing the best topic for your political science thesis paper. Relax and plan things in perspective. The topic is usually in sphere of interests of students and the supervisor. Try to organize your time. To maximize your efforts, you need to plan your time and be efficient and organized in search efforts. The more you will be organized, the more time you will save for writing your thesis. Keep track of all your files from the very beginning of the work this will simplify it immensely. Before choosing the topic, select the subject area. The more you will read in the subject area, the more patterns will appear. In order to narrow your topic, you can use the assistance of your supervisor. You need to consider expanding your thesis into future dissertation. If you plan to write the dissertation afterwards, take it into account during the process of choosing the topic for your thesis. Get sure that your topic is interesting. Both you and your supervisor should be interested in the topic. If the supervisor is enthusiastic about the topic, he will support you with the project more effectively. Choose a problem for your research that you are able to solve and manage. It is recommended to choose not too broad one to be able to research it within time limits set for your project. Your topic should bring some contribution into the field. You need to make a foundation for your future projects or work. The topic should be original. While checking the sources, pay attention what points are not touched upon by researchers. Then think over the material needed to cover the subject.
Wednesday, May 6, 2020
Essay about Abilities Of People With Disabilities - 701 Words
Abilities of People With Disabilities Chris Moore nbsp;nbsp;nbsp;nbsp;nbsp;Assumption: A person with mental retardation cannot be trained to perform a job as well as an employee without a disability. nbsp;nbsp;nbsp;nbsp;nbsp;Fact: Over two thirds of Pizza Hut employees have mental retardation. The average turnover rate (the rate at which workers quit) of these employees is a modest twenty percent compared to a one hundred and fifty percent turnover of employees without disabilities. nbsp;nbsp;nbsp;nbsp;nbsp;It is this kind of thinking that limits the ability of people with disabilities to find employment more than any other factor. In an E-Mail on Thursday, November 7, 1996, Barbara Sommer, Disabilities Employmentâ⬠¦show more contentâ⬠¦woman for not hiring her and then ordered that she be hired as an attendant at a mental retardation facility. The EEOC said, quot;It is not necessary that a condition be involuntary or immutable to be covered.quot; In September of 1993, Californias Supreme Court ruled that a health-food store owner could not reject a job applicant if her fatness were the result of a faulty metabolism or a psychological systemic prob lem, but could if it were the persons fault. nbsp;nbsp;nbsp;nbsp;nbsp;Pregnancy is usually considered a natural occurrence that all people accept, but from 1965 to 1978 ATamp;T forced pregnant women to take unpaid maternity leaves, awarded those employees less seniority than others on disability, and gave them no guarantee that they could return to their jobs or equivalent positions. Georgetown University Law Professor Wendy Williams, the major proponent of equal treatment, maintains that since quot;pregnancy leads to a physical inability to work, it should be treated as any other temporary physical disability.quot; Laws that give pregnant women specific privileges, she and others argue, imply unequal status and are likely to prove detrimental to women in the long run. Do these women not deserve to be not separate, not special, but just equal? nbsp;nbsp;nbsp;nbsp;nbsp;By now you may be wondering,Show MoreRelatedThe Prevalence Of Childhood Disability967 Words à |à 4 Pageschildhood disability has continued to increase, growin g by 15.6% between 2001ââ¬â2002 and 2010ââ¬â2011. Nearly 6 million children were considered disabled in 2010ââ¬â2011.â⬠Houtrow(2014) The United States civilians have had a negative attitude toward people with disabilities. Donaldson(1980) says that they are attempting to change the attitudes towards people with disabilities. Donaldson states one way they are attempting to change attitudes is by passing legislation to help integrate people with disabilities intoRead MoreLearning Disabilities in Children1603 Words à |à 7 PagesLearning Disabilities 1 Children and Learning Disabilities Child/Adolescent Development PSY3520 South University Online Scott Walker Learning Disabilities 2 Children that are dealing with learning disabilities have a difficult road ahead of them. If the disability is neglected or overlooked for too long, the probability of the child falling behind in school as well as social aspects in their life is very high. HoweverRead MoreThe Medical Model Of Disability1551 Words à |à 7 Pages The medical model of disability has done a great disservice to people with disabilities in American society. It has helped shape and continues to perpetuate a belief system that people with disabilities are weak, dependent, and incapable of performing like ââ¬Å"normalâ⬠people. This paper examines how the medical model influences societyââ¬â¢s perceptions of disability through the use of language and the media which cause people with disabilities to be marginalized and experience inequalities. Under theRead MoreNegative Effects Of The ADA734 Words à |à 3 PagesResearch conducted through surveys shows that people with disabilities believe the implementation of the ADA has improved their lives significantly. The ADAââ¬â¢s most prominent effect has been changed in access of accommodations, giving people the ability to access restaurants, stores, beaches, and other public places. Along with improving access for people to live and work independently (Frieden, 2015). While organization leaders agree that the ADA has significantly affected the lives of individualsRead Morenvq level 2 unit 422-2541748 Words à |à 7 PagesPhysical Disability Outcome 1 1. Explain why it is important to recognise and value an individual as a person A. It is important to recognise an individual as a person as it is their human right to be seen as such. If an individual is not seen as a person it devalues them and isolates them from everyday society making them feel ââ¬Å"differentâ⬠. 2. Describe the importance of recognising an individualââ¬â¢s strengths and abilities A. Recognising a personââ¬â¢s strengths and abilities encouragesRead MoreUnderstand Physical disability Essay1189 Words à |à 5 Pages Unit 32 Understand physical Disability 1. Understand the importance of differentiating between the individual and the disability. 1.1 Explain why it is important to recognize and value an individual as a person It is important because each person deserves respect and each person has their own individual needs. Not every person is the same, and treating a person in the exact same way as everyone else may not be the best way to help show that persons individuality. 1.2 Describe theRead MoreMy Experiences With Disability And Disability1491 Words à |à 6 PagesExperiences with Disability Introductionâ⬠¦ Disability is prominent in our society and it is important that we live and work in communities that are inclusive to those with limitations, and provide necessary supports to them. As a young adult I have learned and experienced more about disability than when I was younger. I have gained the most knowledge about disability through university classes, but there have also been times growing up where I encountered individuals with various disabilities, either throughRead MoreDisability And Disability Reflection Paper1153 Words à |à 5 Pagescompleting my FSP course, Ability and Disability: Deconstructing the Social and Cultural Gaze. As part of this semester, our class had the opportunity to spend time with an organization that involved people with disabilities. This was called our Community Engaged Learning (CEL). Our class, for our CEL, worked with the organization Arc Mercer, located in Trenton, NJ. Arc Mercer is a non-profit organization, and their goal is to service people with developmental disabilities with opportunities to chooseRead MoreAchieving Increased Self Esteem Through Adaptive Sports1141 Words à |à 5 Pagesthan everyone elseâ⬠(Voight, 2012). Thusly how can a person with a disability compete, live, love and be loved in a society that renders them less than adequate and incapable. For millions of people with disabilities attaining self-actualization, positive self- image, and building the healthiest body one can achieve is impossible. How can a person attain higher levels of mental and physical functions when many persons with disabilities cannot complete their basic physiological needs? Imagine how a disabledRead MoreSpeech : A Child With Autism989 Words à |à 4 Pagestook at the elementary school! I have no super powers for working with students with disabilities ââ¬â I am just like every other teacher. The students do not need any special places, with special teachers. We no longer hide anyone with disabilities from society . We do not need to keep them safe, and we do not need to keep society safe from them. I want to address the language you use about people with disabilities. I have heard you use the word ââ¬Å"retarded.â⬠We no longer use that word to address anyone
Cultural representation in the Media Free Essays
string(60) " the direct interaction and understanding between cultures\." Abstract The relationship between the media and culture has long been a topic of controversial debate. This study addresses this concern by evaluating two United Kingdom media outlets coverage of the same event throught the lens of cultural and ideology. With indications of continuous forms of societal influence and impact, the evidence in this study is a mix of case study and academic review. We will write a custom essay sample on Cultural representation in the Media or any similar topic only for you Order Now The results demonstrate a wide acceptance of cultural and institutional manipulation on the part of the media mechanism, with a clear recommendation to seek several separate reports of the same instance in order to feel fully informed. This study has the potential to be relevant to cultural and international integration studies. Introduction In our world of mass communication, media have made a very special place for itself in our lives. Representing cultures utilizing mass media such as television coverage, newspaper reporting and the technological advances of the internet has made communication among nations possible, yet, unique to each separate region and culture (Schaffner, 2008). Media plays a very significant role by allowing each separate population to experience the travails of the international community, through the lens of understandable context. Yet, the very nature of each of the unique cultures impacts the way in which the same event may be examined by the competing forms of media coverage (Schaffner, 2008). Base attitudes and approaches will differ depending on the societal expectations of the consumer population. This analysis will begin with a examination of the translations of an excerpt of Saddam Husseinââ¬â¢s trial by the Daily Telegraph and The Independent in 2004. Assessing the individual approach of each of these outlets will lead to a credible analysis of how these media approaches were used for different purposes. Following this segment, the study will turn to the role of translation in the production of news articles as well as the underlying dissemination of information. In the end, this study will have examined past practice, present implementation and future potential with the stated goal of determining the impact that cultural representation has in the media. Past efforts of Cultural Representation in the Media Every nation in the international arena possesses a media outlet that allows for a form of large scale communication (Venuti, 2012). Utilizing this media access allows for a wide range of critical national and societal initiatives to be widely disseminated among the relevant populations. The mass media play an important role in mediating between politicians and the general public (Venuti 2012)).This point illustrates that a main channel for political information to reach the intended target is from a form of modern media. The ability to read, view or listen to a report of the topic is commonly preferred to attending the actual event itself (Schaffner, 2008). The ability to compact information in a manner that can be quickly and easily digested by the consumer is a demonstration of the innate value of any form of media. However, the quality of the media content varies due to the translator, producer and consumer expectations relevant to that particular outlet (Schaffner, 2008). Both culture and media thrive on an inclusive relationship with the population (Zlatar, 2003). The underlying value that exists in the media outlet lies in their ability to reach the populace. The lack of a product that appeals to a large section of the target population lowers the value of the media outlet. Due to the increased drive to integrate on a global level cultural values and differences are increasingly visible and have the potential to impact every aspect of any media operation (Zlater, 2003). Language is the primary method that the media outlets reach their target audience, making the role of translator essential to their form of reporting (Zlater, 2003). News outlets and the process of interviewing people depend on the selection of translator and linguistic competence and preferences (Cecilia, 2009). When broadcasters speak foreign languages translation and interpretation are both crucial, and culturally influenced in the process of conveying the message (Zlater, 2003 ). The responsibility for correct translation and dissemination is entirely dependent on the knowledge, ideology and integrity of the media outlet. The UK media outlet the Daily Telegraph and The Independent in 2004, have each provided two culturally varied translations of the same context. Varied approaches to the same account in the media are an illustration of cultural representation and societal values as understood by the individual organizations (Schaffner, 2008). This is the very concept that creates the perception of differing media reports regarding the same series of events. Modern cultural representation in the Media ââ¬Å"The media has, in fact, been called the fourth estateâ⬠(Schaffner and Bassnet, 2010). The speed in which a message has the ability to reach as wide an audience as possible determines the values of the media outlet (Schaffner and Bassnett, 2010). As the world wide culture has embraced innovation, technology has vastly increased the ability of the various forms of media to express their product. The accuracy and strategies of the translation are important in every case, whether it is in print, on screen or online with the mediaââ¬â¢s ideological and political leanings reflected in their product (Schaffner and Bassnett, 2010). Yet, taking account the political background of the resource and the media itself, there are cultural factors behind the translation and dissemination of information (Bielsa, 2007). While translation is nearly invisible in the media reports this does not mean there is cultural impartiality in the process of translation. Modern studies of media and their associated translation of material have grown significantly due to the role this mechanism serves in bridging gaps between cultures (Schaffner and Bassnett, 2010). Media enables communication across languages as well as the capacity to promote independent populations mutual understanding. The relation between media and translation occurs in a wide range of contexts such as the press, TV or the internet (Schaffner and Bassnett, 2010). Translation in every individual culture is a critical element in the media dissemination process that involves the direct interaction and understanding between cultures. You read "Cultural representation in the Media" in category "Essay examples" News agencies commonly employ translation and select translators without knowing his or her ideological background (Magder, 2004). The quality of the translation in reporting news need to be taken into account by the news agency and the media due to the potential obstacles tha t can be created (Magder, 2004). Analysis: The media is argued to be viewed through a cultural perception (Bassnet, 2004). Each news item presented by the mass media, in any form, is only their unique representation and interpretation of the event, not necessarily the full or complete picture. Each person, reporter or journalist will experience the event in their own manner, producing their work according to their innate understanding (Bassnet, 2004). Utilizing the spoken word, literature and cultural instruments this unintentionally biased information is passed on to the consumer through the news outlet. The journalists and those who work to gather the information and eventually produce news are professional, yet, each person and organization is subject to their own ethical and value standards based on their cultural heritage (Bassnet, 2004). A priority must be placed on clear translation in the production of international news. This is an indication of importance for not only the translation functions, but also transferrin g the news across linguistic and cultural boundaries (Bassnet, 2004). In order to assess this concept this study will take the two examples of the translated excerpt from the trial of the former dictator of the Iraqi regime, Saddam Hussein. These passages have been translated, edited and then published in the Daily Telegraph as well as the Independent in 2004. Translation plays a fundamental role in the transfer of news around the world and at the same time different definitions of the translation are being used by both layperson and experts (Bassnet, 2004). This is a demonstration that items from one language cannot easily being replaced into another. The translator is transferring the meaning between languages, and cultural clarity is not always present as this process unfolds (Bassnet, 2004). The news reporter often includes non-practical parts or culturally biased elements of a story during the process of translation in order to meet the expectations of the consumers. The often varied and often diverse opinions present in the mass media indicate a need for universal ethics standards. The first edited transcript of the first court of the dictator Saddam Hussein which is published in the Independent: The Independent, 2 July 2004: The judge opened proceedings by asking Saddam for his name. Saddam. Hussein Majid, the president of the Republic of Iraq. The judge then asks his date of birth. Saddam: 1937 Judge: ProfessionFormer president of the Republic of Iraq? Saddam: No, present. Current. Itââ¬â¢s the will of the people. Judge: The head of the Baath party that is dissolved, defunct. Former commander and chief of the army. Residence is Iraq. Your motherââ¬â¢s name? Saddam: Sobha, you also have to introduce yourself to me. Judge: Mr Saddam, I am the investigative judge of the central court of Iraq. Saddam: So that I have to know, you are investigative judge of the central court of IraqWhat resolution, what law formed this court? The judgeââ¬â¢s response could not be heard. The Daily Telegraph, 2 July 2004: Judge: Are you the former president of Iraq? Saddam: I am Saddam Hussein, president of Iraq. Judge: (to court clerk): put down ââ¬Å"formerâ⬠in brackets. Saddam: I am the president of the republic so you should not stripe me of my title to put me on trial. Judge: You are the ex-leader of Iraq and the ex-leader of the dissolved armed forces. Were you the leader of the Baââ¬â¢ath party and head of the armed forces? Saddam: Yes. Iââ¬â¢ve introduced myself to you but you havenââ¬â¢t introduced yourself to me. So who are you. Judge: I am a judge of the criminal court of Iraq. Saddam: So you repress Iraqis under the orders of the coalition Do you represent the American coalition? Reading both edited transcriptions that had been published in in the competing British newspapers in 2004 prodcued several interesting questions. To what extent do these printed versions differWhat cultural factors play a role in this differenceWhy are they different in terms of information and the structure of the question The first version, which is published in the Independent, says that the judgeââ¬â¢s response could not be heard, while in the second version the judge is clearly heard giving instruction to the court clerk. This attention or lack of attention to detail is an indication of cultural awareness (Bassnet, 2004). After the event was over, the translatorââ¬â¢s text was compared to the official transcript which illustrated that information was missing and that this text did not contain every element of the conversation. Bassnett (2004) states that during the hearings and sessions the translators are busy producing their own versions. This is an indication that medi a outlets are heavily dependent on the transcripts of the translator. This point of influence on the part of the translator is very important, as each cultural interpretation depends on the message (Bassnett 2004). Further in the event the judge asks for his motherââ¬â¢s name, but in the Daily Telegraph this point is not mentioned. How far we should trust the translators and the subsequent reporting by the mediaThis process of questionable translation is common in a country similar to Iraq which contains different religions and political backgrounds (Bassnett 2004). The ability to find a quality person to fill the role of translator is difficult due to the cultural affiliation to inherent differences in the views of their associated political parties. Another notable difference between both versions, and cultural approaches, is that the person in the first version is a powerful judge that refers to Saddamââ¬â¢s role as a former chief of the army, while in the second version the same concept is approached as a form of a question. This is a clear demonstration of cultural separation due to the interpretation of the event by the separate media outlets (Bassnett 2004). Each news agency has different policies, conventions and styles in their production of news which highlight these differences. Within every individual organization will be an understanding that is based on information passed between cultures (Bassnett, 2004). The cultural differences become more visible as we read, with more transcripts available in Appendix A. According to the Independent, Saddam refused to sign the documents and both he and the judge were quarrelling about that. The Daily Telegraph reported this same set fo occurences differently. This is direct cultural reflection of the mood the readers expected to see and the willingness of the outlet to accomodate this (Bassnett, 2004). The Independent approached this in a more adversarial nature, while the Daily Telegraph sought to portray Saddam has more approachable. Moreover, Saddamââ¬â¢s remark in his final comment with the guards that was not recorded in the Independent version is a further indication of the cultural dissemination of information based on the demands of the readers (Bassnett, 2004). The remark in the Telegraph enabled a sense of pity to be communicated culturally, while the absence of this element in the Independent eliminated this. Discussion Despite the fact that we have two different English translations of a transcript in a court session that took place in Arabic, different edited and translation processes have taken place based on the cultural ideologies (Bassnett, 2004). The strategies of the translation that were used for the Independent are more likely to be culturally foreign to the UK as well as much more complex. Due to the nature of the associated readership, this outlet documents the many challenges that Saddam made to the judges, detailing the adversarial nature of the proceedings. Conversely, the culture associated with the Daily Telegraph expects another variety of reporting, a kinder and wider approach to the story. The version of the same set of events in the Daily Telegraph is shorter and domesticated, a hallmark of the method in which the populace absorbs information (Bassnett, 2004). Saddam in this version does not appear as a former dictator but like a simple man who addresses the judge through his answers and attitudes. Saddam uses (would) which is a question word that often begins a lot of questions and ask for something. This is a direct representation of the cultural influence present in the writing; the underlying effort is to portray Saddam as demonstrating a gentle quality in the courtroom by saying ââ¬Å"I am not interfering with your responsibilitiesâ⬠. This is a form of outreach that is directly related to the cultural need to empathize with Saddam (Bassnett, 2004). The role played by the translation of material in international news provides the link between politics and the media in both cultures (Bassnett, 2004). The elements revealed by the media outlets will be utilized to galvanize the populace in one form or fashion, thereby driving the governmental approach. Media reports about political events are always forms of re-contextualisation, and any re-contextualisation involves transformation and translation (Schaffner and Bassnett, 2010). Each of the separate cultures will have a unique interpretation of these elements. Cultural difference commonly occurs when a text is shifted for obscure political purposes or the translator attempts to skew the meaning in a way to serve the affiliated party. This form of cultural bias by the translator may have a great impact in the transfer of the meaning and the gist of the discourse and the message, thereby creating substantial obstacles (Schaffner and Bassnett, 2010). Each of the media outlets as well as the underling cultures approaches the aspects of reporting and journalistsââ¬â¢ ethics as an intensive research need (Schaffner and Bassnett. 2010). Subjectivity and loyalty to the source text and ethics has a direct impact on the quality of media products, yet the quantity of each component rests in the values of the culture. This fact reflects the desire for the news agency and media outlet to maintain cultural and national credibility at every level (Schaffner and Bassnett, 2010). This is achieved through the accurate portrayal of world events through the lens of the associated cultural expectations. The international community depends on the media in terms of gaining information about the political state and cultural values and all socio-cultural norms (Schaffner and Bassnett, 2010). Yet, every story must be interpreted utilizing the known population variables that lie behind each writer. In countries where governments interfere with the freedom of the press and sometimes the lack of freedom of expression occur, the media cannot broadcast and work independently (Poyatos, 1997). The culture of a nation will be familiar with the limits, thereby creating an unspoken form of boundaries. This regulatory environment can become another impediment to the accuracy of the translation (Poyatos, 1997). As news about a country is published in various newspapers some adjustments and reshaping is done due to the oversight environment, culture and ideology. A possible solution for this condition would be to create an environment in which no government should intervene into the media affairs and media should be totally independent (Poyatos, 1997). However, the values of the writers, publishers and readers will have to be taken in to continuous consideration. Public relations professionals help to shape news content in national and local news media, based on the values of the consumers (Fletcher 2006; Franklin 1997). Due to the changes in political situations and relations between countries the news content might not be addressed exactly in every case, as illustrated by the Telegraph and Independent study. This is a reflection of the cultural constraints that must be taken into account for each individual nation in order to continually meet each unique regional need (Franklin, 1997). Freedom of the press does not mean the independence of any media channel; governments and the population are responsible for laying the foundation for a fruitful relationship between media the freedom of expression. In Conclusion Translation plays a fundamental role in the transfer of different types of news around the world. The veracity of the translation and truthfulness of the translator are matters of primary concern. The societal values and cultural differences of the authors, editors and organization are exposed with every article or broadcast. From the perspective of translation studies this lack of cohesiveness is an issue and has the potential to have substantial ramifications both politically and culturally. The relationship between culture and media is one of inclusion, very much related to each other. In addition, media confers the capacity to reach a large audience in a manner that is efficient and effective. Mass media has, and will continue to have an impact on every person in each nation in the form of Internet, printing papers, Televisions and radios. The information and news passing between different cultures via the media are reshaped, reinterpreted and then republished. Therefore, transforming media representations entails a new way of thinking about media practice. Media as a communication tool should be situated as institutions that allow for cultural development and the protection of cultural diversity. Further, mass media institutions need to be aware every aspect of the cultural contraints and expectations of the underlying society. Yet, in the end, as in all things, it lies with the reader, viewer or person subject to the media report to judge independantly the veracity of the opinion. References Bassnett, S. (2004). ââ¬Å"Trusting reportersâ⬠: What exactly did Saddam sayThe Linguist, 43(6).176-178. Bielsa, E. (2007). ââ¬Å"Translation in global news agenciesâ⬠. Target 19(1). 135ââ¬â155. Wadensjo , C ? (2009). ââ¬Å"Clintonââ¬â¢s Laughter: On Translation and Communication in TV Newsâ⬠. CTIS Occasional papers (Maltby. Ed.) Vole 4 Fletcher, K. (2006). ââ¬Å"A Fine Line between Journalism and PR in Mediaâ⬠Franklin, B. (1997). ââ¬Å"Newszak and News Mediaâ⬠. London Magder, T. (2004). ââ¬Å"Transnational media, intercultural trade and the idea of cultural diversityâ⬠. Continuum: Journal of Media and Cultural Studies, 18 (3), 380ââ¬â397. Poyatos, F. (1997). Nonverbal communication and translation. Amsterdam: John Benjamins. Schaffner, C. (2008). ââ¬ËThe Prime Minister said â⬠¦Ã¢â¬â¢: Voices in translated political textsâ⬠. In: SYNAPS Fagsprak, Kommunikasjon, Kulturkunnskap 22/2008 (University Bergen), pp. 3-25. Schaffner, C. and Bassnett, S. (2010). ââ¬Å"Political Discourse, Media and Translationâ⬠Cambridge Scholars Publishing. Venuti, L. (2012). The Translatorââ¬â¢s Invisibility. Hoboken: Taylor and Francis. Zlatar, A. (2003). ââ¬Å"The role of the media as an instrument of cultural policy, an inter-level facilitator and image promoterâ⬠: Amsterdam ECUMEST Association, Bucharest. How to cite Cultural representation in the Media, Essay examples
Friday, April 24, 2020
Tasm Essay Example
Tasm Essay TASM Transputer Assembler User Guide TASM Version 91. 1 5/15/91 Copyright 1986-1991 by Logical Systems Contents 1 Introduction Overview System Requirements 2 Usage Examples Option Information Option Descriptions 3 TASM Assembly Language Syntax Semantics TASM Assembly Language Introduction TASM Pseudo-Opcodes Sample TASM Program Assembly Language Listing Format Assembly Language Macros Operational Statistics Using the Preprocessor with TASM Notes on Using the Preprocessor 4 Appendix A: Error Messages Types of Error Messages Error Message Descriptions 5 Appendix B: Transputer Instruction Set Direct Functions Indirect Functions 6 Appendix C: TASM Internals Source Code Organization and Compiling Transputer Toolset TASM Transputer Assembler Introduction Overview TASM is a relocating assembler for INMOS Transputers. It supports standard INMOS mnemonics and allows splitting a program into separate pieces which are combined at linkage time. TASM is designed to be used in two ways: 1. As a post-pass to the TCX C compiler. The compiler generates an assembly language output file and TASM is used to turn it into relocatable format. The advantage of this scheme is the fact that the compiler can allow in-line assembly language without having to also have a redundant assembler built in. 2. As a stand-alone tool for doing assembly language programming on the Transputer. In this role it is often combined with the preprocessor from the C compiler (PP), which allows multi-line recursive macros, conditional assembly, include files, etc. We will write a custom essay sample on Tasm specifically for you for only $16.38 $13.9/page Order now We will write a custom essay sample on Tasm specifically for you FOR ONLY $16.38 $13.9/page Hire Writer We will write a custom essay sample on Tasm specifically for you FOR ONLY $16.38 $13.9/page Hire Writer TASM has been designed to be used with PP and can parse information PP provides to generate an assembly listing of source code which may have originated in many different files and been subsequently combined by PP. The architecture of the Transputer requires that some of the code generation be delayed until the linker/locater stage to insure minimum length prefix strings are generated for all instructions. TASM supports this by determining which instructions can be finished and which cannot at assembly time. TASM finishes those which can be and provides information to the linker (TLNK), about the others. TASM uses a multiple pass algorithm to determine which instructions can be finished and what the corresponding minimum length instruction prefix strings should be. The algorithm used doesnt guarantee minimum length prefixes in all cases (generating a minimum length program is a theoretically hard problem), but does a pretty fair job in a moderate amount of time. System Requirements TASM requires approximately 256K of program memory space to run. It should run in any environment which supports other major system development tools (compilers, etc). TASM does use a fair bit of disk space with temporary, output, and listing files. As an estimate, you should have disk space available that is twice the size of the input file for the temporary files, and space equal to the size of the input file for the output file (both types of files will be used at the same time when TASM is generating the output file). If you wish to generate a listing file you should have additional space available equal to twice the input file size. Note that a fair amount of I/O is done to the temporary files and they should be located on the fastest mass storage device available (see Usage section below for more information on how to specify this). 2 TASM Transputer Assembler Transputer Toolset Usage The general form of the TASM command line is: tasm ;input_filename; [;temp_directory;] [-[options]*]* The basic idea is to specify the required input filename (complete with filename extension if not . al), followed by an optional temporary file directory pathname, followed by any options needed. Note that in this case, since no explicit output filename has been specified, the output filename will default to that of the input filename, but with an extension of . trl in place of any extension the input filename had. The temporary file pathname is used to tell TASM to use somewhere other than the current directory (or if the TMP environment variable exists, the directory it specifies), to hold the temporary files TASM generates. If possible, the temporary file pathname (whether explicit or via TMP), should be set to the fastest mass storage available (ideally a ram-disk). The process of assembling code for the Transputer may involve making the equivalent of many passes over the source text (most of which are done using temporary files). Examples Assume you wish to assemble a program stored on file foo. tal; The syntax needed is simply: tasm foo In this case TASM would use the TMP directory (or the current directory if TMP isnt defined), to hold its temporary files (foo. 1 and foo. 2). If you had fast storage available on pathname /fast you could use: tasm foo /fast If you wanted to write the relocatable output to some file other than foo. trl, say foobar. huh, you would use the -o option flag followed by the desired output filename: tasm foo /fast -o foobar. huh 3 Transputer Toolset TASM Transputer Assembler Option Information As seen above with the -o flag, an option flag may need a following parameter, although many option flags are simple switches which may be grouped together following a common - option flag lead-in. For instance, if you wish to toggle the verbose output mode and you wish to generate an assembly listing, the following command line will do it: tasm foo -lv Where the l indicates you want the listing and the v sets the output mode to verbose if TASM defaults to quiet and vice versa (actual default depends on the configuration of TASM). The above result could also be obtained by separating the option flags: tasm foo -l -v Please note, although in the above examples the option flags were in lowercase, uppercase is also allowed (some systems support nothing else)! Option Descriptions The following descriptions detail all the option flags available with TASM, what each does, and what additional parameters are required (if any): Option flag: -c This option is provided to compress the TASM output file. Doing this removes all the debug information. The big motivation is that this often cuts the output file size in half! It is particularly useful when building libraries or other chunks of code which arent routinely debugged. Option flag: -l As mentioned previously, this option causes TASM to generate an assembly listing. The filename for the listing is the same as the output filename with an extension of . lst. For example: tasm foo -l TASM would read the input file from foo. tal, use foo. trl as the output file AND write the listing to foo. lst. The -l option is not allowed if the original source text was not assembly language (see the -t option below). See later sections of this chapter for a description of the assembly language listing format. TASM Transputer Assembler Transputer Toolset Option flag: -o output_filename This option flag allows you to explicitly specify the output filename (including extension), for TASM to use for the relocatable output file. If you dont provide an explicit extension TASM will use . trl. Option flag: -q{0|1|2} These option flags allow you to control the level of prefix byte optimization that TASM will perform. The choices are -q0 (no optimization, all references will be 8 bytes long), -q1 (optimize to minimize the number of symbols and references which are passed on to the linkage phase), and the default, -q2 (maximum optimization by deferring ALL boundary cases to link time). The -q1 option is mainly provided for backward compatibility with pre-87. 8 versions of TASM (where it was the default). The -q0 option speeds up the execution of TASM in addition to potentially speeding up the execution of TLNK. During the early stages of program development use of the -q0 flag on all files which make up a program (including those from libraries), will eliminate the otherwise required prefix optimization performed by TLNK and thus hasten the development cycle. On the down side the -q0 option nearly doubles the program code size and execution time! Option flag: -t This option flag is used if the input file TASM is assembling was the result of a language translator. What this actually does is to inhibit TASM from counting input lines in an attempt to keep track of source input line numbers. TASM still accepts and updates its line number information in response to #line directives which are presumed to reflect the line numbers in the original source text. Using this option allows the line number information which is contained in the relocatable output file to represent the original source code line numbers instead of the (in this case), intermediate assembly language file line numbers. Using this option disables the generation of an assembly language source listing. Option flag: -v This option flag toggles TASM between the verbose and quiet output modes. Depending on the configuration of TASM this option will either cause additional information to be written to the user or disable same (the opposite of whatever the default setting is). 5 Transputer Toolset TASM Transputer Assembler TASM Assembly Language Syntax and Semantics The next several sections describe the syntax and semantics of the assembly language TASM accepts. TASM has some syntax and semantic features in common with C. Rather than repeat information which is familiar to many, we will refer you to a C reference manual for explanations about some features. The manual we recommend is: C A Reference Manual Samuel P. Harbison/Guy L. Steele Jr. Prentice-Hall, Inc. Englewood Cliffs, NJ 07632 Most other C texts also provide the level of description needed to understand the features TASM shares with C. TASM Assembly Language Introduction TASM uses the standard INMOS abbreviations for instruction names (see appendix B for a listing of these). TASM is line oriented with one instruction allowed per line. Each line has the following format: [;label_field;] [;opcode_field;] [;operand_field;] Some sample assembly language statements: test j @test ;Doesnt go anywhere very fast mint ;Minimum integer instruction .db hello ;Define C-style string constant label3 ;Single label with no opcode label4: ;Colons in labels are ignored As you can see, comments are allowed after a trailing ;, and last until the end of the line. Comments may appear anywhere in a line (including the first column), but anything afterwards is ignored. Labels are optional and must begin in the first column. The opcode field holds the instruction or pseudo-op name, it must not begin in the first column. The operand field contains any required parameters for the instruction or pseudo-op listed prior to it on the line. Fields should be separated with either spaces or tabs. Labels and other TASM symbols are from 1 to 255 characters long. They are case sensitive. Labels begin with a letter, a _ or a ? . They may contain those symbols plus digits. Labels may optionally be terminated with (or contain), one or more colon characters. Colon characters are allowed for compatibility with other assemblers and do not count as part of the label (you should not use a colon in any symbols you use in any operand fields). 6 TASM Transputer Assembler Transputer Toolset The operand field follows the label field and contains either an instruction opcode or a pseudo-opcode. The pseudo-ops are begun with a . , but are otherwise similar in form to opcodes (see the next section for information about them). The operand field contains different types of things depending on what the preceeding opcode or pseudo-op is. The types are: aâ⠬? C style constant expressions. These include character constants and the other standard C features. You may also include symbols in constant expressions as long as they are defined in a . set pseudo-op prior to the constant expression in the file (no forward references allowed). Please see a C reference manual for a description of the constant expression syntax. Some examples: a -12 +1 (234+0x12)/022 + 33+ 23 ? 17 : 55 (help + me) / 0x3 ;help and me must be ; already . set $12 ;$ causes wordlength scaling In the above examples note that TASM allows a unary +, which is not legal in C (pre-ANSI anyway). The value of a constant expression is just its numerical equivalent. Thus, a constant expression in a data definition pseudo-op just defines a byte or word location with the specified value. A constant expression as an operand to an instruction just uses the numerical value to compute a prefix string for the instruction. Note that the $ symbol may be used before the start of a constant expression to force the value of the expression to be scaled (divided), by the processor wordlength in bytes. Since the $ may only appear as the first character in an operand field, it can only be used when the operand is a pure constant and not as part of the constant component of a non-constant expression. The expression to which the $ operator is applied must be a multiple of the scaling wordlength or an error will be flagged. aâ⠬? C style string constants. These include the normal character escapes allowed by C and are only legal for use with the define byte pseudo-ops (. db or . dbnz). A string used with the . db pseudo-op will have the normal C style zero termination character while a string used with . dbnz will omit the terminator (the two pseudo-ops are otherwise identical). For example: .db Testing 1 2 3 7 Transputer Toolset TASM Transputer Assembler aâ⠬? Address expressions. These consist of an symbol name followed by an optional constant expression. Some examples: hello+27 frank start -27+(0x66/2) The value of the symbols used in the above examples is the address of the corresponding symbol definitions, NOT the relative offset from the current program counter to the symbol. These types of expressions are not fully bound at assembly time since the actual load address for the program is unknown. The term bound is used here to mean that the value of the prefix string for an instruction (or the value to store into a data word), cant be determined until the actual location for the symbol definition is assigned by the linker (TLNK). These expressions are allowed as operands of instructions or define word (. dw), pseudo-ops (essentially word size pointers). aâ⠬? Relative expressions. These consist of a @ followed by an optional symbol name, followed by an optional constant expression. These are allowed as operands of instructions or define word (. dw), pseudo-ops. They allow the PC relative offset from the instruction (or data item), to the specified constant or symbolic address to be the value of the expression. Some examples: @1 @hello +27 @ 100 0x10000 @ Gorge (a + z) 1 Note that there is a difference in value when a relative expression is used with an instruction versus its use in a . dw pseudo-op. When used with an instruction, the expression is evaluated so as to produce a prefix string which will correctly access the desired value (remember that the Transputer computes all relative offsets with reference to the memory location FOLLOWING the opcode byte of the instruction). In the case of the . dw pseudo-op, the value of the expression is the relative offset referenced to the START of the . dw memory location. Note that if a relative expression contains a symbol it must immediately follow the @. If the expression doesnt contain a symbol the constant expression is evaluated and the result is used as an address from which a relative offset is computed, starting at the appropriate current PC location, to determine the value to prefix the instruction with. For instance, if you wanted to create a jump to location 45 (decimal), you would use: j @45 Note that expressions which contain non-symbolic relative expressions cant be bound at assembly time since the load address for the instruction or data reference is unknown until link/locate time. 8 TASM Transputer Assembler Transputer Toolset Some examples of relative expression instructions with symbol names: cj @hello + 10 call @Byte_output .dw @Beginning_of_data + 10 Symbolic relative expressions can be bound at assembly time (assuming the symbol is defined locally, and there are no unbound instructions which are between the symbol definition and the instruction or . dw which references it). aâ⠬? Difference expressions. These consist of an optional wordlength scaling operator ($), a symbol name minus another symbol name, followed by an optional constant expression. Some examples: @[emailprotected] + 1 hello-goodby zip-zap + 21 $zip-zap + 4 To most assemblers this type of expression is just a normal absolute reference. TASM treats this as a special case since the variable length effects of the unbound prefix strings may cause this expression to be only partly bound at assembly time. This form of expression may be used with both instructions and . dw pseudo-ops (the $ operator can only be used with instructions), but will probably be used most as an operand to ldc instructions which compute the branch length for lend instructions. For example: begin ;Beginning of loop body body of loop load pointer to lend parameter block ldc @[emailprotected] ;Compute branch length for lend lend ;Go back to beginning of loop end ;End of loop body Note that the optional $ wordlength scaling operator causes the value of the remainder of the expression to be scaled by the wordlength (in bytes), of the processor family for which TASM is assembling code. aâ⠬? Floating point constants. These are used with the . real32 and . real64 pseudo-ops to initialize memory locations with the equivalent number represented in ei ther IEEE 32 bit or 64 bit binary format. The floating point constant syntax follows that of C. TASM doesnt support floating point assembly time math, just the conversion operation (similar to initializing memory locations with the results of the C atof function). Some examples: .real32 0. 0 ;Initialize a word to 0. 0 .real32 3. 1415926,12 ;Initialize two words .real64 1. 0,2. 0,3e-39 ;Initialize three double ;words 9 Transputer Toolset TASM Transputer Assembler TASM Pseudo-Opcodes The previous section covered the operand fields of instructions and pseudo-ops in abstract, this section covers them in detail. All TASM source files must begin with a pseudo-op which tells TASM what Transputer the code is being assembled for, since different versions support different instructions (and possibly different ways of generating code). The currently supported Transputers are the T2 series (T212/T222/T225), the T4 series (T400/T414/T425), and the T8 series (T800/T801/T805). To select a Transputer CPU type use one of the following pseudo-ops: .all ;Instructions for all 32 bit CPU types .t212 ;T212/T222/T225 are described as t212 .t414 ;T400/T414/T425 are described as t414 .t800 ;T800/T801/T805 are described as t800 Note that . all is the default if no processor type is explicitly selected. The . all selection is primarily used when building code which is intended to run on any 32 bit Transputer (such as demonstration programs). Also note that both opcodes and pseudo- ops may be in either upper or lower case and that all pseudo-op names begin with a period. All TASM source files should end with: .end ;No operand is required This causes anything beyond it in the source code to be ignored. The use of this pseudo-op is not strictly required since TASM treats the end of the file as a defacto . nd, but it is important when TASM is being used with the preprocessor (PP). PP will otherwise remove any trailing comments and conditional assembly code from the input file to TASM, and thus remove the trailing stuff from any assembly listing which TASM makes. 10 TASM Transputer Assembler Transputer Toolset Between these two pseudo-ops lies the body of the code. The remaining pseudo- ops are: 1. #line ;line_n umber; [;filename;] This violates the normal rules about pseudo-ops in that it begins with a #, and it also starts in the first column. This is emitted by the preprocessor to update TASM about where the next input line to TASM really came from in the source file. The optional filename field indicates that the next line is also coming from a different original source file (the result of PP doing a #include). The information from these pseudo-ops is used to enable TASM to put the code from the original source file on the assembly listing, instead of the merged mess which PP generates. Use your C reference to find out further about this preprocessor directive. . .align This pseudo-op tells TASM to word-align the next instruction or data statement. 3. .db value_for_byte [, value_for_byte]* This pseudo-op is used to initialize memory bytes to specific values. The value_for_byte field may be either a constant expression, or it may be a C style string (complete with automatic zero termination). 4. .dbnz value_for_byte [, value_for_byte]* This pseudo-op is identical to . db except the automatic zero byte termination of strings is eliminated. This pseudo-op was implemented to simplify the use of TASM with languages other that C (although the C string character escape sequences are still used). 5. .ds number_of_bytes This pseudo-op reserves storage for the specified number_of_bytes. Any constant expression may be used in the operand field. The space reserved in this way will be initialized to zero when the program is downloaded to the Transputer. 11 Transputer Toolset TASM Transputer Assembler 6. .dw value_for_word [, value_for_word]* This pseudo-op is used to initialize memory words (2 or 4 consecutive bytes depending on wordlength), to specific values. Note that this pseudo-op does NOT automatically perform word alignment; Use a . align prior to the . dw if alignment is necessary. The value_for_word field may contain the same types of operands as allowed for instructions (see the section on instruction operand fields). As mentioned in that secion, relative expressions applied to . w are relative to the beginning of the word, NOT the location following, as is the case with relative references in instructions. You may not use C style string constants with the . dw pseudo-op. 7. .emulate This pseudo-op enables instruction emulation. This is used when you wish to simulate the effects of instructions which the currently selected Transputer processor type doesnt directly support. For example, you tell TASM you are using a T414 pro cessor (via a . t414), then use a DUP instruction (after having given the . mulate directive). TASM will treat this as if you had given it an instruction of the form: call @? DUP Note that the instruction name called is always in upper case regardless of its original case in the input file. Also TASM will generate a . ext reference for symbols created this way if they havent been previously encountered in the source file. It is up to the programmer to supply the simulation routine being called! 8. .ext symbol_name [, symbol_name]* The specified symbol_names are declared to be defined external to this source file. Its presumed that the definitions will appear in other files which will be combined with the relocatable output of this one at link time. You may not both define a symbol within the current source file AND declare it . ext. If a symbol which is declared . ext is not also referenced in the source file, the external reference is not included in the relocatable output file (no error is generated). 12 TASM Transputer Assembler Transputer Toolset 9. ldc ;operand_field; This pseudo-op has the same syntax and semantics as the normal ldc instruction, but TASM and TLNK are free to use instructions other than ldc to load the desired value onto the top of the stack. This is useful when the immediate data to load is a large negative number and an equivalent code sequence of mint/adc can be used to load the same value in fewer bytes and instruction cycles. Another form of instruction sequence which may be generat ed is a ldc/ldpi sequence for cases when the current program counter is close to the desired address. This pseudo-op is extensively used by the TCX C compiler to minimize the length of static references. Note that this pseudo- op is affected by the . rel and . norel pseudo-ops when generating address expressions (code which computes the address of a symbol), for example: .ldc zip + 21 ;Load address of zip + 21 bytes Normally, this is allowed to use any of the optimization techniques to minimize the length of the generated code. However, if the . rel pseudo-op has been given, this form of reference is constrained to use the ldc/ldpi instruction sequence to maintain the runtime relocation capability. Note that all other forms of the . ldc instruction are unaffected by the current . rel/ . norel setting. 10. .mod module_number TASM supports up to 256 different modules, numbered 0 to 255. These modules are used to allow code and data which should be physically located in separate memory areas to be combined into the same source text stream. This facility corresponds to the code and data regions available with many assemblers, except 256 different modules are allowed. By default, if no . od is given, the code and data which is present in the source file is placed into module 0. The linker (TLNK), allows you to select where each module from each source file will end up (or you may let it do the locating job for you). 11. .noemulate This allows you to turn-off the instruction simulation facility which a previous . emulate enabled. 12. .norel A complement to the . rel pseudo-op, this allows the address form of the . dc instruction to generate the shortest/fastest possible code, ign oring the possibility of program runtime relocation. This pseudo-op is in effect by default and is used to turn- off the effects of a previous . rel pseudo-op. 13 Transputer Toolset TASM Transputer Assembler 13. .pub symbol_name [, symbol_name]* The specified symbol_names are declared to be defined within this source file and are made public, so that other files may refer to the symbol. You may not declare a symbol both . pub and . ext. If a symbol which is declared . ub is not also defined in the source file, the public reference is not included in the relocatable output file (no error is generated). 14. .real32 fp_value_for_word [, fp_value_for_word]* This pseudo-op is used to initialize memory words (4 consecutive bytes), to values which correspond to the IEEE 32 bit floating point representation of the specified value. Note that this pseudo-op does NOT automatically perform word alignment; Use a . align prior to the . real32 if alignment is necessary. The fp_value_for_word field may contain the same types of floating point constants that C allows. 15. real64 fp_value_for_double_word [, fp_value_for_double_word]* This pseudo-op is used to initialize memory double words (8 consecutive bytes), to values which correspond to the IEEE 64 bit floating point representation of the specified value. Note that this pseudo-op does NOT automatically perform word alignment; Use a . align prior to the . real64 if alignment is necessary. The fp_value_for_double_word field may contain the same types of floating point constants that C allows. 16. .rel Forces all . ldc pseudo-ops which follow to generate runtime relocatable code by using the ldc/ldpi instruction sequence for symbolic address expressions. This pseudo-op allows the generation of position independent code (assuming address expressions are not also used in initialized data areas, etc). Note that this pseudo-op will generally result in a somewhat larger/slower program since the other possibilities for . dc instruction optimization are thereby disabled. This pseudo-op is NOT in effect initially in TASM and may be turned off once invoked by the later use of the . norel pseudo-op. 14 TASM Transputer Assembler Transputer Toolset 17. .retf ;workspace_adjust_constant; This pseudo-op is used by our C compiler as a function exit code short form. It translates into a ajw instruction with the specified workspace_adjust_constant used as the operand field, followed by a ret. A couple of notes about the results of this pseudo- op: First if the constant value is zero, no ajw is generated. Second, any code after a . retf and before a label or pseudo-op is encountered is removed. Additionally, if the pseudo-op encountered is another . retf, the SECOND . retf is also removed! 18. .set symbol_name , constant_expression The specified symbol_name is defined to have the value of the corresponding constant expression. This pseudo-op provides a equate capability for forward and backward references. The symbol name may be subsequently used in the constant expression part of the operand field for an instruction or pseudo-op which follows the . set in the source file. The symbol is otherwise treated identically to symbols defined as labels (it may be declared public for instance). 19. .sym symbol_name [, address_expression] [, constant_expression]* This pseudo-op is used to hold debugging information for use by other tools in the Transputer Toolset. The arbitrary string, symbol_name, is assigned a series of values including an optional, symbolic, address_expression (whose exact value is unknown until linkage time), and zero or more, 4 byte, constant_expression fields. The actual use of this statement involves a convention between the tool generating them (TCX), and a later debugging tool which interprets them. See the information about the T_DEBUG_DATA, and T_DEBUGSYM_DATA, relocatable records, in the TASM/TLNK/TLIB RELOCATABLE RECORD AND FILE FORMAT manual, for more information. 0. .val symbol_name , constant_expression This pseudo-op is similar to . set but is used for assigning purely local constant values to the symbol_name. The references to a symbol defined this way must be strictly backwards and may not be external to the file. The primary advantage of . val over . set is that the symbol name used by . val may be redefined by a subsequent . val without having to create a new symbol. This is not possible with . set since both forwards and backwards references are allowed. 15 Transputer Toolset TASM Transputer Assembler Assembly Language Listing Format As mentioned elsewhere, TASM will generate an assembly language listing if the -l command line option flag is given. This file will be written on a filename which is the same as the input filename, but with an extension of . lst in place of any extension the input file had. TASM is designed to be used with the PP preprocessor, this carries over to the design of the listing facility for TASM. In particular, TASM can use information PP inserts in the input file to determine where the source text it is reading originally came from (say via #include PP directives). Using this information, TASM will find and use the original source code from wherever it came from when it creates the assembly listing. TASM cant create an assembly listing if the original source code was written in some language other than assembly (see the -t option flag). As a side note: If TASM detected assembly time errors it doesnt generate a relocatable output file. It also doesnt do the final binding passes it needs to resolve all the relative operand fields for instructions. This shows up on the assembly listing as instructions which are listed as un-bound (see below), when they really could have been bound. The format of the assembly listing is: statuslinelocationassembled_codesource_code The status field is used to show any error flags which were generated by that source code line, or a . if something on the line was not completely bound at assembly time. The possible error flags are: D Duplicate symbol definition error. E Expression field error. F Floating point constant error. N Not implemented error (opcode/pseudo-op). O Opcode/pseudo-op unknown error. U Undefined symbol error. See the corresponding error messages in appendix A for more information about what causes these errors. If the instruction was bound, and didnt contain any errors, this field is blank. 16 TASM Transputer Assembler Transputer Toolset The line field indicates which source code line this is. Note that the source code filename is shown on a banner at the top of the page initially, and a new page eject and banner is generated whenever the source code filename changes. The location field. This indicates the current location counter relative to the currently active module. This value will not be correct if the program contains any un-bound references, or errors, since the actual sizing and locating is delayed until linkage time. This field is shown for instructions or pseudo-ops which do anything interesting, and unconditionally for the first line in a new source file. The assembled_code field. This field contains up to the first 8 bytes of code the instruction or data pseudo-op generated. If the source line is un-bound, and this information isnt known yet, this field is used to show the value of whatever the source code operand field contained in the form of a constant expression. The source_code field. This contains the original source code as read from whatever file originally held it (assuming PP was used), or simply the TASM input file if PP isnt being used. Assembly Language ; Macros When PP is being used with TASM, multi-line macros may cause many assembly language statements to be generated for a single source statement. This is handled on the assembly listing by simply showing the single original source code line. The problem is that the meanings of the various fields to the left of the source code line change somewhat. The basic rules are: aâ⠬? The status field shows the first error encountered in the assembly statements which were generated by that source code line. If no errors need to be reported this field will contain a . if any of the statements generated were unbound. If none of these conditions prevailed this field will be blank to indicate no trouble. aâ⠬? The line field acts normally and shows the source text line number. aâ⠬? The location field shows the location counter of the first instruction or pseudo- op in the macro expansion which generated any code. In other words, it reflects the start of the macro if anything useful happens. aâ⠬? The assembled_code field shows the contents of the first operation in the macro expansion which placed anything in this field. It doesnt append the code generated by later instructions in the macro if the field isnt full yet. aâ⠬? The source_code field acts normally and shows the original source text of the macro call. 17 Transputer Toolset TASM Transputer Assembler Operational Statistics Assuming no errors were encountered, TASM adds some operational information to the listing following the source code (this information is also written to standard output if you havent disabled verbose output mode). The information written consists of the number of external symbols which were defined or referenced, the number of local symbols which were defined, and the number of local symbols which were exported in the relocatable output file for eventual binding by TLNK. The percentage of TASMs symbol table capacity which was used is also indicated. Note, within TASM, both local and external symbols use the same symbol table. The last item on the listing (or standard output), is a count of the total errors encountered. This is a useful addition to the line-by-line error indications since multi- line macro expansion sometimes generates more than the one error which can be flagged on a given source line. Using the Preprocessor with TASM Using the preprocessor (PP), with TASM greatly improves the ease of programming, and the resulting readablity, of assembly language programs. If TASM is being used as a post-pass to the TCX C compiler, PP is not required (the C compiler handles those sorts of details with the help of PP itself). Assuming you are programming directly in assembly language, PP used with TASM offers the following improvements over using TASM by itself: aâ⠬? Macro processing. PP allows both simple text replacement and powerful multi- line parameterized macros. Workspace offsets, symbolically defined configuration values, etc. , are all good uses for this facility. The fancy parameterized macros are nice for creating in-line code, and PP has facilities for generating unique symbols which can be used to allow local labels and symbols within macro body expansions. aâ⠬? Include files. PP allows nested include files to be used. This is useful when a set of configuration parameters is being shared by all the files in a program, but you only want to have one set of definitions. aâ⠬? Conditional Assembly. Using PP allows you to do C style conditional assembly. This is useful when you wish to have two or more versions of a program share the same source text (and thus get updated together). aâ⠬? C style comments. You may use C style comments in source code for TASM when you use PP (since it filters them out). To find more out about these facilities consult your C reference manual. You may also want to consult PP C PREPROCESSOR USER GUIDE for implementation- dependent information about PP. 18 TASM Transputer Assembler Transputer Toolset Notes on Using the Preprocessor The following example will preprocess and assemble a file named test. pal: tcc test. pal +a-l -c Note that the +a-l directive tells TCC to pass a -l directive to TASM telling it to generate a test. lst assembly language listing file. The -c flag tells TCC that linking will not be necessary. The relocatable output file will be written on test. rl. A few notes should be mentioned about using PP with TASM: 1. If you are having trouble, or are unsure where a problem lies, check the output file written by PP to see what TASM is really getting as input. This is necessary since TASM shows the original source text on the assembly listing, not what it actually read as processed by PP. This is particularly useful in debugging macros, since the assembly listing only shows the macro call, not the subsequent expansion. 2. Within macros you should be careful about using ; assembly language comments. Remember that these comments are NOT comments to PP and it will pass them on through to TASM. A place where this crops up is when you define a symbol to have some value in a #define macro and follow it with a ; comment in the source text. The result is that anything you place in the operand field AFTER the spot where the macro replacement is done, gets commented out! As a general rule you should use C style comments for anything involving macros. 19 Transputer Toolset TASM Transputer Assembler Appendix A: Error Messages Types of Error Messages There are three classes of error messages which TASM can generate: aâ⠬? Warnings. These are used to report problems which arent severe enough to cause TASM to abort (exit with a non-zero return value). These messages usually indicate trouble which isnt immediate, but may be soon! The format for warnings is: WARNING: message_text aâ⠬? Non-fatal errors. These are used for reporting actual error conditions which will affect the return value given when TASM exits. If one or more non-fatal errors are encountered TASM will return a non-zero return code, otherwise it will give a return code of zero. Another result of encountering non-fatal errors is that the generation of a relocatable output file is inhibited (although if a assembly listing was requested it will be generated). The format for non-fatal errors is: filename @ line_number: message_text Where the filename field indicates the current source code file being read, the line_number field gives the line where the problem was detected, and the message_text field indicates the actual problem encountered. Note that non-fatal errors are also displayed on the listing (see the Assembly Language Listing Format section for a description of the format). â⠬? Fatal errors. If the problem detected by TASM is so severe that it cant continue operating, it will give a fatal error message: FATAL: message_text After printing one of these messages, TASM will immediately exit with its error return code set (non-zero). 20 TASM Transputer Assembler Transputer Toolset Error Message Descriptions The following descriptions list the various error messages which TASM can generate (in alphabetic order): lt;filename @ line_number: Duplicate symbol definition: symbol_name The named symbol was either defined more than once, or defined once and mentioned in a . ext pseudo-op. filename @ line_number: Expression field error This error is generated whenever an illegal expression is present in the operand field of a opcode or pseudo-op. A few of the possible causes: aâ⠬? Having an expression field which is not representable in 16 bits when assembling for a 16 bit processor. aâ⠬? Using anything other than a string or a constant expression with a . db pseudo-op. If you want to reference an address you need to use a . dw instead. aâ⠬? Using a relative reference within a . dw pseudo-op. Only constant expressions or address references are allowed there. aâ⠬? Using a module number which is outside the range of 0 to 255 which is allowed for . mod declarations. FATAL: Corrupted temp file: filename This error usually occurs when the contents of a temporary file get corrupted by the file system somehow. If you have been changing TASM or recompiling it for another system, this error message indicates that the type field in one of the internal temporary file records was not one of the allowed types. This generally happens when you make a change to one of the places which adds or removes temporary file records without changing all the other occurences (you will generally need to make changes to files tasm2. c, tasm4. c, and tasm5. c together). 21 Transputer Toolset TASM Transputer Assembler FATAL: Error reading input file: filename TASM got an error return during one of its read operations on input file filename. This usually indicates trouble with whatever mass storage device is being used, and/or a corrupted input file. If the preprocessor (PP), was used to prepare the input source file AND a listing is being requested, this error could indicate problems have cropped up in one of the source files between the time PP originally read it, and when TASM re-reads it to generate the assembly listing. FATAL: Error reading temp file: filename TASM got an error return during one of its read operations on temporary file filename. This usually indicates trouble with whatever mass storage device is being used. FATAL: Error setting stream buffer for file: filename This error results when TASM is compiled with a non-zero IOBUFSIZE in file taldef. h but is unable to explicitly set the temporary file I/O buffer using setvbuf during execution. The return code from the setvbuf call is what actually triggers this error. As a workaround you can set IOBUFSIZE to 0 and recompile TASM, or you can figure out what is wrong with your C library. The file listed is the temporary file to which TASM was attempting to attach the buffer. FATAL: Error writing listing file: filename At some point TASM was unable to write to the named listing file. This generally occurs because of insufficient file space. FATAL: Error writing output file: filename TASM detected an error while it was writing the relocatable output file. This error generally occurs when insufficient disk space is available for the output file, as well as the temporary files which also exist during this period. FATAL: Error writing temp file: filename At some point TASM was unable to write to the named temporary file. This generally occurs because of insufficient space on whatever device the temporary files are being written on (either the TMP directory, the current directory, or a special fast one selected via the command line). 2 TASM Transputer Assembler Transputer Toolset FATAL: Insufficient stream buffer memory for file: filename If the value of IOBUFSIZE in taldef. h is non-zero, TASM will explicitly allocate temporary file I/O buffers (via malloc calls). If the memory cant be obtained for one of these buffers, this error message results. The filename listed is the one for which the buffer was intended. To get around this problem you should try to increas e the amount of available C heap memory. If you are using TASM on a PC, get rid of any unnecessary memory resident programs. As a last ditch effort you can reduce the value of IOBUFSIZE and recompile TASM, but TASM execution speed will suffer noticeably. FATAL: Insufficient symbol table string memory TASM was unable to obtain (via malloc calls), enough memory to hold all of the symbols and labels used in the input file. The obvious solution is to reduce the number and length of the symbols in the input file. If you are using TASM on a PC you should try eliminating unnecessary memory resident programs as a first step in getting more memory. FATAL: Line too long in input file: filename TASM read an input line which was longer than 300 bytes (as the release version is configured). This error is generally the result of self-recursive macro expansion by the preprocessor (PP), or the use of a filter program on the input source file which removed the end-of-line markers. FATAL: Output file name same as input You have the same filename specified for both input and output. Remember that the default output filename extension is . trl. FATAL: Symbol table full As configured in the release version, the symbol table can hold 4096 entries. This value may be increased if TASM is being run on a machine with a larger than 64K byte direct addressing range. Note that the symbol table size must be a power of two to make the hashing function work. If you cant increase the symbol table size you will have to break the input file up into separate pieces. 23 Transputer Toolset TASM Transputer Assembler FATAL: TASM internal error #XXX These errors should never occur! If one does it generally indicates a violation of one or more prefix optimization constraints. If this error message does occur, please send a machine-readable copy of the offending TASM input file together with a description of what command line switches were used to either Logical Systems or the dealer where you purchased the product. Be sure to indicate what operating system TASM was running under and the complete text of the resulting error message (plus any other information you feel is pertinent). As a workaround, you can try adding, deleting or moving around bits of code in your program to see if you can avoid the exact sequence of optimization steps which provoked the problem. FATAL: The size of SLONG is not correctly configured This error message can only appear when you are recompiling TASM. It indicates that the typedef for SLONG which appears in taldef. is set for a storage class which is less than 4 bytes long. The SLONG storage class MUST be signed for TASM to operate correctly. FATAL: Unable to close input file: filename You can only get this error message when you ask TASM to generate a listing file. It indicates that TASM was unable to close the named file during the process of re- reading whatever source files actually made up the input source file TASM read (assuming the preprocessor was involv ed), and generating the resulting listing. - FATAL: Unable to generate non-assembly language listing This error is reported whenever both the -l and -t switches are given. You can only use one of these switches at a time. FATAL: Unable to open input file: filename The open attempt for the input filename failed. Verify that the input file exists and that the filename extension is correct (remember that . tal is the default if none is specified). If the preprocessor (PP), is being used with TASM, AND an assembly listing has been requested, this error message can also be generated. This occurs if one of the source files which PP used to create the input file for TASM was no longer there when TASM tried to re-read it to generate the listing. You can tell which of these two cases is the problem by noticing which input filename is mentioned in the error message. 24 TASM Transputer Assembler Transputer Toolset FATAL: Unable to open listing file: filename TASM was unable to open the listing filename. The filename is created by taking the filename from the input file (and input file pathname), and appending the extension . lst in place of any extension the input file had. FATAL: Unable to open output file: filename TASM was unable to open the output filename. This filename is either the default one generated using the input filename with a new extension (. trl), or it was explicitly specified by you using a -o option flag. FATAL: Unable to open temporary file: filename The open attempt for the temporary filename failed. This filename includes whatever directory pathname was specified for temporary files. FATAL: Unexpected EOF in input file: filename This error is encountered when a listing is being generated and TASM is reading the various source files which the preprocessor (PP), used to create the input file. This error indicates that TASM found one of the input files was shorter than PP lead it to believe with information passed via #line statements. This error may also be generated without the help of PP, if the input source file has somehow gotten corrupted between the time TASM read the input code from it and when it was re-read to generate the listing file. filename @ line_number: Floating point constant error This error message is generated for floating point constants used with either . real32 or . real64 which are out of range of the particular IEEE format selected. This usually means an error in a mantissa or exponent field. - filename @ line_number: Not implemented (pseudo-op) This error message is generated for opcodes or pseudo-ops which are not yet implemented, but whose names have been reserved. 25 Transputer Toolset TASM Transputer Assembler ;filename; @ line_number: Opcode/pseudo-op unknown: opcode_name The named opcode appeared in the opcode field of an instruction but was not recognized by TASM. This is generally caused by not declaring what type of processor TASM is assembling for (. T414, etc. ), or using an instruction which is not valid with the selected processor type. WARNING: Unable to close output file: filename During the cleanup process TASM removes the output file it creates if any errors were detected during operation. This error message indicates that TASM was unable to close the output file. Causes include the normal spectrum of file system related maladies. WARNING: Unable to close temp file: filename During the cleanup process, prior to TASM terminating, the temporary files are closed and deleted. This message indicates that TASM was unable to close the named temporary file (something is probably happening to the file system). WARNING: Unable to remove output file: filename During the cleanup process TASM removes the output file it creates if any errors were detected during operation. This error message indicates that TASM was unable to delete the output file. Causes include the normal spectrum of file system related maladies. WARNING: Unable to remove temp file: filename During the cleanup process, prior to TASM terminating, the temporary files are closed and deleted. This message indicates that TASM was unable to remove the named temporary file (something is probably happening to the file system). filename @ line_number: Undefined symbol: symbol_name This error message is generated when the named symbol is referenced but not defined within the input file (either by a label or . ext pseudo-op). 26 TASM Transputer Assembler Transputer Toolset Appendix B: Transputer Instruction Set The following descriptions of the Transputer instruction set are only intended for purposes of illustrating which instructions TASM can assemble. Please consult the appropriate INMOS documentation for information about instruction set formats and the internal architecture of the various CPUs. Direct Functions There are 16 direct functions, executed by all the INMOS Transputers, which can have operands. They are (in alphabetic order): Instruction Hex Value CPU Description ADC 8 All Add constant AJW B All Adjust workspace CALL 9 All Call subroutine CJ A All Conditional jump EQC C All Equals constant J 0 All Jump LDC 4 All Load constant LDL 7 All Load local LDLP 1 All Load local pointer LDNL 3 All Load non-local LDNLP 5 All Load non-local pointer NFIX 6 All Negative prefix OPR F All Operate (meta instruction) PFIX 2 All Prefix STL D All Store local STNL E All Store non-local Indirect Functions The use of the OPR instruction, in conjunction with the operand register, allows a large number of indirect instructions which are built using prefix strings to OPR. The following instruction list shows the indirect instructions, sorted in alphabetic order. Since INMOS makes more than one type of Transputer, the list has a CPU column which indicates whether the particular instruction is supported by at least some members of both the 16 and 32 bit Transputer families (listed as 16/32), some non-16 bit (ie. 32 bit), processors (All), only by the 16 bit machines (T212/T222/T225, listed as T212), only by the non floating point 32 bitters (T400/T414/T425, listed as T414), or only by the floating point processors (T800/T801/T805, listed as T800). In addition, the floating point processors support a FPENTRY instruction which allows the current value in the A register to be used as an extended floating point operation code. TASM implements these extended operation codes as macro instructions which consist of a LDC with the appropriate extended code, followed by a 27 Transputer Toolset TASM Transputer Assembler FPENTRY. These instructions are listed as SEQ (INMOS terminology), in the CPU column and are only available on the T8 processors. 28 TASM Transputer Assembler Transputer Toolset Instruction Hex Value CPU Description ADD 05 16/32 Add ALT 43 16/32 Alt start ALTEND 45 16/32 Alt end ALTWT 44 16/32 Alt wait AND 46 16/32 Boolean AND BCNT 34 16/32 Byte count BITCNT 76 16/32 Count bits set in word BITREVNBITS 78 16/32 Reverse bottom N bits in word BITREVWORD 77 16/32 Reverse bits in word BREAK B1 16/32 Breakpoint BSUB 02 16/32 Byte subscript CCNT1 4D 16/32 Check count from 1 CFLERR 73 T414 Check real32 fp infinity or NAN CLRHALTERR 57 16/32 Clear halt-on-error CLRJ0BREAK B2 16/32 Clear breakpoint flag CRCBYTE 75 16/32 Calculate CRC on byte CRCWORD 74 16/32 Calculate CRC on word CSNGL 4C 16/32 Check single CSUB0 13 16/32 Check subscript from 0 CWORD 56 16/32 Check word DIFF 04 16/32 Difference DISC 2F 16/32 Disable channel DISS 30 16/32 Disable skip DIST 2E 16/32 Disable timer DIV 2C 16/32 Divide DUP 5A 16/32 Duplicate top of stack ENBC 48 16/32 Enable channel ENBS 49 16/32 Enable skip ENBT 47 16/32 Enable timer ENDP 03 16/32 End process FMUL 72 All Fractional multiply FPADD 87 T800 Floating point add FPB32TOR64 9A T800 Convert bit32 to real64 FPCHKERR 83 T800 Check floating error FPDIV 8C T800 Floating point divide FPDUP A3 T800 Floating point duplicate FPENTRY AB T800 Floating point unit entry FPEQ 95 T800 Floating point equality FPGT 94 T800 Floating point greater-than FPI32TOR32 96 T800 Convert int32 to real32 FPI32TOR64 98 T800 Convert int32 to real64 FPINT A1 T800 Round fp to floating integer FPLDNLADDDB A6 T800 Floating ld non-local and ad
Subscribe to:
Posts (Atom)