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...

More like Questionaries How To Use Pointer - Assembly Languages - Assignment

How Does Boyce Use Symbolism To Portray The Farther - 8a Set 1 - Assignment

420 words - 2 pages ... How does Boyce use symbolism in his book Millions? Introduction In this essay, I plan to explain what symbols are and how the author Boyce uses symbolism in his book symbolism I will identify and describe five main characters in his book; saints, birds, money, tinted moisturizer, and cooking. The definition of symbolism is the use of symbols to represent ideas or qualities. Saints The symbol of the saints represents Damian's thoughts and ...

How Can A Business Use The Boston Matrix To Manage Their Product Portfolio? - Business Studies - Assignment

424 words - 2 pages ... Assessed Homework Discuss how can a business use the Boston Matrix to manage their product portfolio? (10) The Boston Matrix is a technique used to analyse a business product portfolio. It considers each product within the portfolio in relation to its market share and rate of market growth. A business can use the Boston Matrix to manage its product portfolio as the Boston Matrix helps analyse the market growth and market share of a ...

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 ...

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 ...

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 ...

The Importance Of Learning How To Speak English Assignment

598 words - 3 pages ... 2. What are some reasons why knowing how to speak or understand English seems to be valued so highly? Currently, it is seen how English has become one of the main languages used in daily life. This is due to English being recognized as an international language spoken worldwide. Not only schools but also international companies have started to teach the language to their employees and students, mainly for these reasons: the English language ...

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 ...

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 ...

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 ...

"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 ...

How Does Alan Bennett Use Dramatic Techniques To Manipulate Your Feelings Towards Doris In 'A Cream Cracker Under The Settee' ?

871 words - 4 pages ... old women because she is very houseproud and is always reflecting on memories of the past and critising young people. She's also qwite nosy which fits into the stereotype too. " Folks opposite, I dont know them, used to be the marsdens". This shoes how she is aware of her neighbourhood and surroundings as old people usually are. It also shows she has memories where she lives so she has been there for a long time.Bennett also gives the character a ...

Compare The Book "tirra Lirra By The River" To Two Different Texts And Explain How They Are Similar. Include The Use Of Techniques

1019 words - 5 pages ... to others. It also shows that her state of mind also distorts the world around her to suit her perceptions. This is shown by the violent swirls in the crimson sky and blue-black fjord which are manipulated to reflect the emotion of the character. The use of bold colours and jagged strokes portray the raw and overpowering emotion of the figure. The powerful visual techniques of The Scream overwhelms its viewers similarly to the enchanting ...