COMPUTER SCIENCE
1. For each instruction, give the 80x86 opcode and total number of bytes of object code, including prefix bytes. Assume you are in 64-bit mode and that word0p, dbl0p, and quad0p reference a word, doubleword and quadword in data, respectively.
- Add ax, word0p
- Sub dbl0p, ebx
- Sub rax, 10
- Add quad0p, 1000
- Inc r10b
- Dec word0p
- Neg rdx
- Inc QWORD PTR [rdx]
2. Please provide code converting a Fahrenheit to a Celsius using the registers edx and eax?
3. Please write the commands (declarations) to setup a 2-byte and 4-byte GPS location.
4. Is the following code valid? Why or why not:
- mov eax, [ebx-ecx] ;
- mov [eax+esi+edi], ebx ;
- cmp eax, edx ;
- xor ecx, ecx ;
- inc eax ;
5. What does the following code do?
- Push ebp ;
- Mov ebp, esp ;
- Push ebx ;
6. Please provide code for the following scenario:
- Create a while loop that that checks for 4 iteractions
- Create jumps and labels for each case
- Provide an exitcode along with possible return codes.
5 years ago
8
Answer(0)
other Questions(10)
- Assignment
- Assignment
- HRM 4010 Week 6 Assignment 2, Final Project Part 6 (of 6)
- Empathetic Listening Scenario
- need back in 5 hours
- Math seminar
- The local school district has decided to limit class sizes for grades kindergarten to third grade. The inequality y <...
- INF 103 Ashford 5: - Week 4 - Assignment
- "Public Health" Please respond to the following: •During outbreak of Ebola in West Africa in 2014, many U.S. healthcare workers and military members were exposed to the contagious disease (see the New York Times’ article, “Ebola-Infected Health Care Work
- I need to revise my resume to look like the second one LARRY C LASTER 1410 Bluebonnet Place Circle #F Houston, TX. 77019 Home...