Assembly Language Programming in MASM
Use the following data definitions for this problem:
myBytes BYTE 40h, 30h, 20h, 10h myWords WORD 10 DUP(00ABh), 2000h myString BYTE “ABCDEFGHI”
myDword DWORD 12345678h
(A) What will be the value of EAX after each of the following instructions execute?
mov eax, TYPE myBytes ; a. mov eax, SIZEOF myBytes ; b. mov eax, TYPE myWords ; c. mov eax, LENGTHOF myWords ; d. mov eax, SIZEOF myString ; e.
(B) Write a single instruction that moves the first byte in myDword to the AL register. The resulting value in AL will be 78h.  Ans:
(C) Write an instruction that moves the second word in myDword to the AX register. The resulting value in AX will be 1234h.  Ans:
Use the following variable definitions for this problem:
var1 SBYTE -8, -4, 2, 1 var2 WORD 2000h, 4000h, 6000h, 8000h
var3 SWORD -18, -46 var4 DWORD 11, 22, 33, 44, 55
(A) For each of the following statements, state if the instruction is valid. If invalid, provide the argument.  a. mov ax, var1
b. mov eax, var3
c. mov var2, var3
d. movzx ax, var1
e. mov ds, 1000h
(B) What will be the hexadecimal value of the destination operand after each of the following instructions execute in sequence?  mov al, var1 ; a. mov ah, [var1+3] ; b.
(C) What will be the value of the destination operand after each of the following instructions execute in sequence?  mov eax, var4 ; a. mov eax, [var4+4] ; b.
(D) What doe the instructions MOVSX and MOVZX do? Show an example.  Ans:
(A) Determine the value of AX after each of the following increment/decrement instructions (inc/dec). 
inc al ; AX = mov ax,0000h dec al ; AX =
(B) If the relative offset is encoded in a single signed byte (8 bits),  (a) what is the largest possible backward jump? Ans:
(b) what is the largest possible forward jump? Ans:
Problem 6 [5 points]
Determine whether the following is TRUE/FALSE.
a. Assembly language is a high-level language (i.e., similar to Java/C). F
b. Assembly language is a good choice for writing device driver code or code for embedded systems.
c. In 2’s complement system, there are two different representations of zero.
d. The largest positive number in 8-bit system is 1111 1111.
e. EAX serves as loop counter.
Problem 7 [5 points]
Write an assembly program that computes the expression: varD = -varA + (varB + varC). Fill in the code segment. You may only use ADD, MOV, and NEG instructions.
.data varA byte 10 varB byte 20 varC byte 30 varD byte ?
1) What will be the value in EDX after each of the lines marked (a) and (b) execute? 
.data varA WORD 9000h varB WORD 5000h
movsx edx, varA ; (a) _______________ movsx edx, varB ; (b) _ ______________
2) What will be the value in EAX after the following assembly code execute? 
mov eax, 1004FFFFh inc ax ; EAX =
3) What values will be in EAX and EBX registers after the following instructions executed.  eax: ebx:
array1 DWORD 5 DUP(?)
.code mov eax, LENGTHOF array1 mov ebx, SIZEOF array1
Elitewriterhelp.com is an online academic writing site that provides a variety of services to students and professionals in need of essay, dissertation, and research paper assistance. This website was founded by experienced writers and editors who understand the needs of today’s student community. With their help, students can get a well-written paper without having to worry about the quality or accuracy of their content.
Elitewriterhelp.com offers a wide range of services that are designed to meet the needs of any student or professional looking for some extra help with their academic work. From simple editing services to complete custom writing pieces, they have something for everyone! Their team consists of highly qualified writers and editors who have years of experience in both academia and industry sectors across all fields such as English literature, nursing sciences, medical science, engineering design & technology, accounting & finance etc., making them one of the best providers around when it comes to providing quality content writing services.
When it comes to their custom writing service, Elitewriterhelp.com provides everything from essays & dissertations to research papers & lab reports; all written according to your exact specifications & requirements so that you can be sure your professor will be impressed with what you submit! They also provide formatting help which includes APA/MLA/Chicago style formatting for those stuck on tedious details like citations or bibliography entries; perfect for those last-minute assignments!
For those looking for proofreading & editing services instead; Elitewriterhelp.com has you covered too! The team at this website offer professional copyediting which can check grammar errors and spellings mistakes while still preserving your original voice within the text; ensuring that whatever piece you submit looks great while still sounding exactly how you want it do sound! What’s more is if required they can also provide advice on how best to improve certain parts in order make sure your work meets the criteria set by your professors so no marks are lost due to minor mistakes made in hurry or ignorance.
Last but not least is Elitewriterhelp’s paraphrasing service which helps take care off any plagiarism risks associated with submission an assignment where quotes are used extensively taken from sources outside class materials (eBooks etc.). The team will ensure that anything being submitted sounds fresh while leaving out any potential legal issues plaguing people using other authors works without proper permission given first when appropriate credit isn’t given otherwise – definitely something worth investing into before submitting examples cited within studies found elsewhere apart from class material sources only mentioned once during seminars etc..
To sum up: Elitewriterhelp offers students access top-notch custom writing pieces as well as editing/proofreading packages for existing ones already written – perfect for double checking against silly grammatical errors / typos overlooked during initial composition stages meaning there’s always hope even when running short on time ahead up coming deadlines looming near after long lectures spent inside classrooms sat away from laptops used mainly taking notes by hand easily misplaceable later down line afterwards rendering past efforts worthless sadly…
Why Work with Us
Top Quality and Well-Researched Papers
We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.
Professional and Experienced Academic Writers
We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.
Free Unlimited Revisions
If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.
Prompt Delivery and 100% Money-Back-Guarantee
All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.
Original & Confidential
We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.
24/7 Customer Support
Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.
No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.
Admission Essays & Business Writing Help
An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.
Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.
If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.