programming! I am completely stuck. Need help. I have attached the problem. Please view both attachments before answering. The attachments I have included describes the program I am to write. As you can see I am finished writing the program, but I ran into errors, please let me know how to fix these errors or if I need to completely rewrite it.I am completely Stuck. If you can please explain your answer so I can fully understand. Thank you!

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

The class I'm taking is assembly programming!

I am completely stuck. Need help.  I have attached the problem. Please view both attachments before answering.  The attachments I have included describes the program I am to write. As you can see I am finished writing the program, but I ran into errors, please let me know how to fix these errors or if I need to completely rewrite it.I am completely Stuck. If you can please explain your answer so I can fully understand.  Thank you!

2:45 B
3 all 80%
mov al, byte ptr [mybigEndian+2]
mov al, byte ptr [mybigEndian+3]
mov word ptr [mylittleEndian], ax
;invoking Exit
invoke ExitProcess,0
34
35
36
37
38
;end of main
main endp
39
40
41
; end of code
42
end
43
100 %
No issues found
Output
Show output from: Build
1>Assembling SeanLab4.asm...
1>SeanLab4.asm(25): error A2008: syntax error : mylittleEndian
1>SeanLab4.asm(33): error A2006: undefined symbol : mylittleEndian
1>SeanLab4.asm(36): error A2006: undefined symbol : mylittleEndian
1>C:\Program Files (x86) \Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets(70,5): error MSB3721: The c
1>Done building project "lab4.vcxproj" -- FAILED.
====--===- Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
Scanned with CamScanner
SeanLab4.asm X
;Compiler i used: Visual Studio 2019
8
;start of code
10
11
.386
12
13
.model flat, stdcall
14
15
.stack 4096
16
17
ExitProcess PROTO, dwExitCode:DWORD
18
19
.data
20
21
;declare variables.
22
23
mybigEndian BYTE 12h,34h,56h, 78h
24
25
mylittleEndian DWORD?
26
27
.code
;main
main proc
28
29
;mov instructions
mov ah, byte ptr mybigEndian
mov al, byte ptr [mybigEndian+1]
mov word ptr [mylittleEndian+2], ax
mov al, byte ptr [mybigEndian+k]
O No issues found
30
31
32
33
34
00 %
Dutput
Show output from: Build
台 中
1>Assembling Seanlab4.asm...
1>Seanlab4.asm(25): error A2008: syntax error : mylittleEndian
1>SeanLab4.asm(33): error A2006: undefined symbol : mylittleEndian
1>SeanLab4.asm(36): error A2006: undefined symbol : mylittleEndian
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets(70,5): error MSB3721: The commar
1>Done building project "lab4.vcxproj" -- FAILED.
----- - Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ===------
Scanned with CamScanner
II
如
Transcribed Image Text:2:45 B 3 all 80% mov al, byte ptr [mybigEndian+2] mov al, byte ptr [mybigEndian+3] mov word ptr [mylittleEndian], ax ;invoking Exit invoke ExitProcess,0 34 35 36 37 38 ;end of main main endp 39 40 41 ; end of code 42 end 43 100 % No issues found Output Show output from: Build 1>Assembling SeanLab4.asm... 1>SeanLab4.asm(25): error A2008: syntax error : mylittleEndian 1>SeanLab4.asm(33): error A2006: undefined symbol : mylittleEndian 1>SeanLab4.asm(36): error A2006: undefined symbol : mylittleEndian 1>C:\Program Files (x86) \Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets(70,5): error MSB3721: The c 1>Done building project "lab4.vcxproj" -- FAILED. ====--===- Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped Scanned with CamScanner SeanLab4.asm X ;Compiler i used: Visual Studio 2019 8 ;start of code 10 11 .386 12 13 .model flat, stdcall 14 15 .stack 4096 16 17 ExitProcess PROTO, dwExitCode:DWORD 18 19 .data 20 21 ;declare variables. 22 23 mybigEndian BYTE 12h,34h,56h, 78h 24 25 mylittleEndian DWORD? 26 27 .code ;main main proc 28 29 ;mov instructions mov ah, byte ptr mybigEndian mov al, byte ptr [mybigEndian+1] mov word ptr [mylittleEndian+2], ax mov al, byte ptr [mybigEndian+k] O No issues found 30 31 32 33 34 00 % Dutput Show output from: Build 台 中 1>Assembling Seanlab4.asm... 1>Seanlab4.asm(25): error A2008: syntax error : mylittleEndian 1>SeanLab4.asm(33): error A2006: undefined symbol : mylittleEndian 1>SeanLab4.asm(36): error A2006: undefined symbol : mylittleEndian 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\masm.targets(70,5): error MSB3721: The commar 1>Done building project "lab4.vcxproj" -- FAILED. ----- - Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ===------ Scanned with CamScanner II 如
2:45 O v v •
3 all 80% e
In this program you will be converting from Big Endian to Little Endian using data movement
instructions for the x86 32-bit architecture.
Write a program that uses the variables below and MOV instructions to copy the value from
bigEndian to littleEndian, reversing the order of the bytes. Work with the 32-bit value
Ox12345678.
Converting from Big Endian to Little Endian
. data
bigEndian BYTE 12h,34h,56h,78h
littleEndian DWORD?
Testing Specification
Be sure that you can compile and successfully run your program.
Scanned with CamScanner
SeanLab4.asm* + x
17
ExitProcess PROTO, dwExitCode:DWORD
18
19
.data
20
21
;declare variables.
22
23
mybigEndian BYTE 12h,34h,56h,78h
24
25
mylittleEndian DWORD?
26
27
.code
;main
main proc
28
29
;mov instructions
mov ah, byte ptr mybigEndian
mov al, byte ptr [mybigEndian+1]
mov word ptr [mylittleEndian+2], ax
mov al, byte ptr [mybigEndian+2]
mov al, byte ptr [mybigEndian+3]
mov word ptr [mylittleEndian], ax
;invoking Exit
30
31
32
33
34
35
36
37
38
invoke ExitProcess,0
;end of main
main endp
; end of code
39
40
41
42
end
43
100 %
No issues found
Output
II
Transcribed Image Text:2:45 O v v • 3 all 80% e In this program you will be converting from Big Endian to Little Endian using data movement instructions for the x86 32-bit architecture. Write a program that uses the variables below and MOV instructions to copy the value from bigEndian to littleEndian, reversing the order of the bytes. Work with the 32-bit value Ox12345678. Converting from Big Endian to Little Endian . data bigEndian BYTE 12h,34h,56h,78h littleEndian DWORD? Testing Specification Be sure that you can compile and successfully run your program. Scanned with CamScanner SeanLab4.asm* + x 17 ExitProcess PROTO, dwExitCode:DWORD 18 19 .data 20 21 ;declare variables. 22 23 mybigEndian BYTE 12h,34h,56h,78h 24 25 mylittleEndian DWORD? 26 27 .code ;main main proc 28 29 ;mov instructions mov ah, byte ptr mybigEndian mov al, byte ptr [mybigEndian+1] mov word ptr [mylittleEndian+2], ax mov al, byte ptr [mybigEndian+2] mov al, byte ptr [mybigEndian+3] mov word ptr [mylittleEndian], ax ;invoking Exit 30 31 32 33 34 35 36 37 38 invoke ExitProcess,0 ;end of main main endp ; end of code 39 40 41 42 end 43 100 % No issues found Output II
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY