Questionaries How To Use Pointer Assembly Languages Assignment

1104 words - 5 pages

Q1. After the following operation, what status flag will be set to 1 right after the add instruction?
mov DX, 0FFFFh
add DX, 0001b
Alternatives:
A. Carry flag
B. Zero flag
C. Overflow
D. Sign flag
Q2. After the following operation, what status flag will be set to 1 right after the mul instruction?
mov BL, 2d
mov EAX, 0FFFFh
mul BL
A. Carry flag
B. Zero flag
C. Overflow flag and Zero flag
D. Sign flag and Overflow flag
E. Carry flag and Overflow flag
Answers:
Q1: A
Q2: E
Q1: Which register will store the result for mul cl?
A. eax B. ax C. ecx D. cx
Answer. B. ax
Q1: How many bits in one double word?
A.   4 bits B.   8 bits C.   16 bits D.  32 bits
 answer:D
Q2.  Which 32-bit register is used as the default loop counter?
A.  EAX B.   ECX C.   ESI D.  EBX
ANSWER: B
Q1 , FIND AND FIX ERROR
NUM3 = ((NUM1+3)*2)/NUM2
THE SIZE of NUM1, NUM2, NUM3 IS 4 BYTES (calculation never exceed 4 bytes size)
add num1,3
mov ebx, num1
mul 2
div num2
mov num3,eax
A1:
add num1,3 // mov eax, 3
add eax, num1
mov ebx, num1 // delete 
mul 2     // mov ebx, 2
mul ebx
div num2 // forget to mov edx, 0
mov num3, eax
Q2Which flag is set when an unsigned value is too large to fit into a destination operand?
Sign b. Carry c. Overflow d. Auxiliary Carry
A2: b
mov ebx, 00000014h
mov edx, 0h
mov eax, 00000195h
div ebx 
What is stored in EAX and EDX?
Ans:
EAX: 00000014h EDX: 00000005h
In what order are data types, larger than one byte, stored in memory?
Answer:
All data types larger than a byte store their individual bytes in reverse
order. The least significant byte occurs at the lowest memory
address. This is known as the Little Endian Order
Q1: Which 32-bit register is used as the default loop counter?
1. ECX 2. ESP 3. ESI 4. EIP
answer: 1 ECX
Q2: What is 01100101b XOR 11010110b?
1. 01000100b
2. 01001101b
3. 11110111b
4. 10110011b
answer: 4 
.data
array1 DWORD 6, 943, 2 DUP(3 DUP("null")), 24
array2 BYTE "ptr", "CPU", "null"
.code
mov eax, sizeOf array1
mov ebx, sizeOf array2
mov ecx, lengthOf array2
mov edx, lengthOf array1
add ebx, ecx
mul ebx
sub eax, edx
div edx
Question:
Locate the error in the block of code above, and remove any applicable line(s) that causes the error.
Answer: 
Division by zero occurred on this line: div edx
Question:
What is the output after the error has been resolved?
Answer: 720
Question: Which register is used to point to a string when using Irvine library?
A.EAX B.EBX C.ECX D.EDX
Answer: D. EDX 
Where are the quotient and remainder stored for each of the following (assume ebx is not 0)
A) div bl B) div bx C) div ebx
Answers: 
A) The quotient is stored in al while the remainder is stored in ah
B) The quotient is stored in ax while the remainder is stored in dx
C)...

Other Essays On Questionaries how to use Pointer - Assembly Languages - Assignment

How to write a Research Assignment - Harvard class of 2017 - Research paper

538 words - 3 pages Your name: ______________________ Research Assignment: Academic Search Complete Tips for Keyword Searching in Library Databases Phrase searching -- this is the default Ex. native american (will automatically be searched as 2 word phrase) fuel cell cars (will automatically be search as a 3 word phrase) If you want to combine two or more terms or concepts connect them with “and” Ex. attention deficit and children and school yoga and health

How is Chinese Cinderella similar to Disney's Cinderella - High School 9 - Assignment

920 words - 4 pages Sana Shariflou How is Chinese Cinderella similar to the story of Cinderella? Chinese Cinderella is a biography of Adeline Yen Mah and her emotional and physical childhood journey in which she lived her story similar to Disney’s Cinderella. Chinese Cinderella holds many similarities to Disney’s Cinderella hence the name Chinese Cinderella. This can be seen in the characters and their resemblance with Disney’s version of the fairy tale and

Literature Review of Leadership Development: How to make leadership more efficient - University of Queensland - Assignment

1395 words - 6 pages good interpersonal relationships. The last factor in EQ is social skills, which is the ability to build interpersonal relationships and trust relationships. It is similar to sympathy, but has its special meaning. Recasting Leadership Development Experience is the main source of learning leadership. From a research point of view, you should have a better understanding of how to use your experience more effectively. But enough to understand the

Compare And Contrast Two Theories Of Motivation. Suggest How A Team Leader Might Use These Theories To Motivate The Team

2206 words - 9 pages Compare and contrast two theories of motivation. Suggest how a team leader might use these theories to motivate the team.In this essay, I will be discussing what motivation means. I will then explain the content and process theory of motivation, and within each respective category, I will provide a detailed explanation of Maslow's hierarchy of needs and Vroom's expectancy theory. Thereafter, the essay will examine how a team leader can apply and

How does The Hunger Games and The Handmaids tale use character and setting to convey ideas - English - Essay

2000 words - 8 pages a woman, her hunting prowess and duty to her family and friends made her into a stronger character compared to Offred’s weak nature and unwillingness to change in fear of reprisal from her fellow Handmaids. In similar reference, both author and director use a range of techniques to explore the theme of power and how it’s abused through their characters. Atwood and Ross explore the abuse of power by using characterisation. The Commander is a

"Color" A short example of how to use 'color' in writing

264 words - 2 pages The sunset viewed from my neighborhood begins slowly, but ends quickly. At first an orange-yellow fills the sky. The color is vibrant, flooding into its onlooker's eyes instantaneously. New colors form on the faces of the few lone clouds as the sun continues to creep its way down to the edge of the horizon. Crimson, pink, burgundy, violet, and indigo all mixed in one beautiful show. As the sun touches the horizon, the area where the sun would

This is an essay assignment relating to student loan debt and how it affects young adults. - Current Issues - Assignment

834 words - 4 pages of 50 states cut higher education funding to help budgets. Cuts continue to this day. When cuts occur , the schools either decrease operational costs or pass it on in tuition. · Cost of technology - technology is more important these days than it was 30, 20, even 10 years ago. On campus technology for every student is a large factor. How to Cut Costs: If you look at the bigger picture when wanting to cut tuition costs for colleges, there are

How Chris Brown Can Be Compared To Dancers From the Past - Dance - Assignment

509 words - 3 pages these movements is what makes it so happy. The artists’ dance moves are complex so they aren’t to show one how to dance to the song. Instead, it reinforces a message to live life to the fullest and to be delighted. The atmosphere created in the video is very lively as kids are shown to be jolly. At 0.46 when Chris brown says “Move your body out on the floor put you trouble aside”, that’s exactly what he does! Back flipping demonstrates excitement

Where did Chinese business first learn how to successfully operate businesses? - Modern East Asia - Weekly Assignment

546 words - 3 pages change in the Chinese businesses as I would call “monkey see monkey do”, as they began setting up their own businesses that were modeled after and very closely related to the modern western business style that they were forced into being assimilated to. The Chinese didn’t ask to be taken over by Western powers or to be shown the way of the western business so I don’t see how anyone could blame the Chinese for seeing something that works efficiently

understand how to provide support when working in end of life care - trn limited - assignment

541 words - 3 pages Name................................................................... Learning outcomes: 1. Understand current approached to end of life care 2. Understand an individual’s response to their anticipated death 3. Understand factors regarding communication for those involved in end of life care 4. Understand how to support those involved in end of life care situations 5. Understand how symptoms may be identified in end of life care 6. Understand

time management: how important time management is to our lives - creative thinking - assignment

438 words - 2 pages when I say our time on earth is limited. Time is priceless even the wealthiest man on the planet can’t buy it. All we can do is manage our time appropriately so that we have extra hours that are already assigned to us on earth. There are a lot of ways one can use to time management in order to stop wasting this given time. An example would be changing your sleep time setting alarm to wake up early, prioritize things accordingly and many others

Similar Papers

Ability Of Apes To Use Human Language Linguistics Assignment

1626 words - 7 pages and acts as a substitute to spoken word. Infants’ point, a gesture which scientists agree is a form of word learning but when an ape points it’s questioned. Patrick M. Greenfield (1991) argues that language and use of tools conceal a cognitive basis that allows for “hierarchical structure” (1991). This possibly means that areas of the brain that help with language use and learning in humans beings could be shared with primates. There are many

Keto Diet,How To Eat Proparly Get Fit Norge Assignment

2432 words - 10 pages daily caloric and adequate food intake. NEED HELP WITH A PERSONALISED KETO PLAN? Sign up to the Josef Rakich 12 Week Transformation Program and receive your monthly and updated Keto personalised meal plan which also includes a workout program, ab workouts, the best and most effective fat burning cardio routines, how to burn body fat faster, on-going support, advice, tips and endless motivation! 25% DISCOUNT USE COUPON CODE: KETO25

Facial Recognition: How Do Investigators Use Facial Recognition To Uncover Cases Forensic Science Essay/Research Paper

933 words - 4 pages specific facial features. If it detects a possible match with others in the state database, an investigator takes a closer look. The technology has only improved in the four years since the Boston Bombing, and the potential for the identification of suspects using facial recognition looks promising. This promising nature has spurred the development of how governments can use facial recognition to not only identify criminals after the fact, but track

Questions Pertaining To The Assignment Of Analyzing The Website Cardswap And How Effective It Is Consumer Behavior Twu Assignment

642 words - 3 pages never use/wear. 3. Would you use a service like CardSwap? Why or why not? I would use a service like CardSwap. CardSwap makes it easy to get rid of gift cards that you will never use. This makes it especially appealing when you have gift cards from retailers that depreciate in value the longer that they are unused. If I had gift cards to stores that I did not care for, I would rather trade them in for cash that I would be able to use on something