Answered step by step
Verified Expert Solution
Question
1 Approved Answer
See problem and my attached code. I need someone to help troubleshoot my call function and help correct my code. Assembly x86 ** edit- the
See problem and my attached code. I need someone to help troubleshoot my call function and help correct my code. Assembly x86 ** edit- the question is below. The second screen shot is the code I have written to answer the question. I need someone to review MY CODE and tell me if it needs corrections to complete the question**
An Internet Protocol version 4 (IPv4) address is represented in dotted decimal notation. Here is an example of an IPv4 address for an end-point 192.168.1.8 The IPv4 addressing scheme also requires a mask associated with each subnet. The mask is used to find the network address. The network address is essentially the base address of the network and is used for routing and switching. For example, suppose the mask for the above address is 255.255.0.0 The mask indicates that the two rightmost octets are masked, since those bits are all turned off. So our network address is 192.168.0.0. An IPv4 address conveniently fits into a DWORD. Let's look at all this in hex IP Address: Subnet Mask Network Address:192.168.0.0-0xCOA80000 192.168.1.8-0xCOA80108 255.255.0.0 = 0xFFFF0000 As you can see, an IP address can be represented in hex by simply concatenating the hex byte representation for each octet. Write a complete, yet simple, x86 assembly program that can mask an IP address to produce the network address. I recommend using a console32 template. Develop a procedure that can mask an IP address to produce the network address. Create the function with the following prototype: DWORD getNetAddress(DWORD pAddress, DWORD subnetMask); The function consumes two DWORD parameters: the IP address and the subnet mask. The function returns the network address as a DWORD. Your program simply needs to define and call the procedure. Check your function's return value (in EAx), and provide screenshots of your registers to verify the accuracy of the function's return valueStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started