can someone please explanin this program to me? i asked for help with this and a turor didnt add any step by step comments throughout code. i would like to follow along so i understand how code was written. please add step by step explansion if posssible. .I added a screenshot of completed progam from my complier. please view both attachments. thank you so much!

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

can someone please explanin this program to me?

i asked for help with this and a turor didnt add any step by step comments throughout code. i would like to follow along so i understand how code was written. please add step by step explansion if posssible. .I added a screenshot of completed progam from my complier. please view both attachments. thank you so much!

3
;a procedure named WriteScaled that outputs a decimal ASCII number with an implied decimal point.
4
;the decimal point must be inserted five positions from the right side of the number.
5
;WriteScaled would display the number like this: 1001234567.89765
6
;When calling WriteScaled, pass the number's offset in EDX, the number length in ECX, and the decimal offset in EBX.
;displays three numbers of different sizes.
;Compiler i used: Visual Studio 2019
7
8
9
10
;start of program
11
12
INCLUDE C:\Irvine\Irvine32.inc
13
14
DECIMAL_OFFSET = 5
;declare
15
16
.data
17
18
decimal_one BYTE "100123456789765"
19
20
.code
21
22
Main proc
23
24
Mov edx, offset decimal_one
; moving into edx register
25
Mov ebx, offset DECIMAL_OFFSET
;moving into ebx register
26
Call WriteScaled
27
Exit
28
29
Main ENDP
30
Transcribed Image Text:3 ;a procedure named WriteScaled that outputs a decimal ASCII number with an implied decimal point. 4 ;the decimal point must be inserted five positions from the right side of the number. 5 ;WriteScaled would display the number like this: 1001234567.89765 6 ;When calling WriteScaled, pass the number's offset in EDX, the number length in ECX, and the decimal offset in EBX. ;displays three numbers of different sizes. ;Compiler i used: Visual Studio 2019 7 8 9 10 ;start of program 11 12 INCLUDE C:\Irvine\Irvine32.inc 13 14 DECIMAL_OFFSET = 5 ;declare 15 16 .data 17 18 decimal_one BYTE "100123456789765" 19 20 .code 21 22 Main proc 23 24 Mov edx, offset decimal_one ; moving into edx register 25 Mov ebx, offset DECIMAL_OFFSET ;moving into ebx register 26 Call WriteScaled 27 Exit 28 29 Main ENDP 30
25
Mov ebx, offset DECIMAL_OFFSET
;moving into ebx register
26
Call WriteScaled
27
Exit
28
29
Main ENDP
30
31
WriteScaled proc
32
Push ecx
Sub ecx, ebx
Mov ebx, ecx
33
34
Роp есх
Mov esi, e
35
36
37
L1:
38
39
.IF esi == ebx
40
Mov al, 2Eh
41
Call writeChar
42
.ENDIF
43
Mov al, [edx]
44
Call writeChar
Add edx, type byte
Inc esi
45
46
47
Loop L1
48
Call crlf
49
50
Ret
51
WriteScaled ENDP
52
END main
100 %
O No issues found
Ln: 29
Output
Show output from: Build
Build started...
1>------ Build started: Project: Project10, Configuration: Debug Win32
1>Assembling SeanLab10.asm...
1>Project10.vcxproj -> C:\Users\seanp\source\repos\Project10\Debug\Project10.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Transcribed Image Text:25 Mov ebx, offset DECIMAL_OFFSET ;moving into ebx register 26 Call WriteScaled 27 Exit 28 29 Main ENDP 30 31 WriteScaled proc 32 Push ecx Sub ecx, ebx Mov ebx, ecx 33 34 Роp есх Mov esi, e 35 36 37 L1: 38 39 .IF esi == ebx 40 Mov al, 2Eh 41 Call writeChar 42 .ENDIF 43 Mov al, [edx] 44 Call writeChar Add edx, type byte Inc esi 45 46 47 Loop L1 48 Call crlf 49 50 Ret 51 WriteScaled ENDP 52 END main 100 % O No issues found Ln: 29 Output Show output from: Build Build started... 1>------ Build started: Project: Project10, Configuration: Debug Win32 1>Assembling SeanLab10.asm... 1>Project10.vcxproj -> C:\Users\seanp\source\repos\Project10\Debug\Project10.exe ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 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