QUESTION 3
How many bytes is the machine code for the following?
add ecx,115h
The code of add ecx,115h when converted to machine code is occupies 6 bytes of memory.
Explanation :-
add ecx,115h -> machine code conversion -> 0x81 c1 15 01 00 00. = 6 bytes
QUESTION 3 How many bytes is the machine code for the following? add ecx,115h
1. Assume that you are given values in eax, ebx, ecx. Write an assembly code that does the following: eax = (ecx + edx ) - (eax + ebx) 2. Write a piece of code that copies the number inside al to ch. Example: Assume that Initially eax = 0x15DBCB19. At the end of your code ecx = 0x00001900. Your code must be as efficient as possible. 3. You are given eax = 0x5. Write one line of code in...
For C programming How many bytes are allocated in memory to the following line of code: double x = -1.75 A) 4 B) 8 C) 16 D) 32 E) 64
III Show RSCPU machine code bytes (in binary) for the assembly code (note that the machine code starts at memory location 0.): 0: LDAC 60 MVAC LDAC 70 SUB STAC 75 IV. Assume a 64-byte memory module connected to a CPU that has a 10-bit address bus. Show the logic to generate the CE signal for this memory module if it occupied the following range of addresses: a) 128 to 191 b) 640 to 703 c) 0 to 63
mov ecx, 5 L1: add eax, 2 loop L1 3. What is the final value of myNum? Show your work. [5 points .data myNum BYTE 10h, 20h .code Increment PROC add eax, FFh ret Increment ENDP main PROC movzx eaxX, myNum call Increment mov myNum, al main ENDP
Need help on these question please!!! 8. How many bytes of overhead are there in an Ethernet frame? Include the header and trailer, but do not include the preamble in the frame. You will need to look up the length of the header and trailer. 8a. An Ethernet frame contains 500 bytes of payload data, which is an encapsulated IP packet from layer 3. Calculate the percentage of the frame that is overhead (do not include the preamble in the...
How many bytes are removed from the stack when a RET statement is performed in a 32 bit hardware environment? (In Assembly or Machine language)
Assuming shorts are 2 bytes long, and pointers are 8 bytes long, how many bytes does this program need? short a = 3; short b = a; short * c = &a; *c = b++; short & d = a; short & e = b; short * f = c; e = *f + d; (a) 0 (b) 4 (c) 8 (d) 12 (e) 16 (f) 20 (g) 24 (h) 28 Please confirm. My answer: (f) 20 short a =...
QUESTION 3 How many bytes does UTF-8 store a character in? 2 QUESTION 4 In binary files, integers are stored in which byte-type format? ASCII Chars Decimal Hexidecimal Explain the use of the keyword transient' and give a practical example of when you would use it. TTT Arial 3(12pt) T E S. 25 Words:0 Path:p QUESTION 2 What happens if you keep reading at the end of a stream? EOFException IOException FileNotFoundException Object MismatchException
Machine A wants to write a binary file "statistics.dat" to machine B using TFTP-16 (size of the data block is 16 bytes instead of 512 bytes). The file contains the following data bytes: "67 77 78 90 21 3F 2D C3 45 5A 8B DE" 1. Draw the complete sequence diagram of the file transfer from machine A (port 1234) to machine B (port 4567) 2. Show the content of the UDP-segment sent at each step of the transfer Machine...
How many bytes will the following instructions increment the EDI register? CLD MOVSW