Question: Write an Assembly program that prints an ASCII art version of a right triangle to the screen. For example, for size 5, we would get:

 Write an Assembly program that prints an ASCII art version of

Write an Assembly program that prints an ASCII art version of a right triangle to the screen. For example, for size 5, we would get: USE THIS CODE AS AREFERENCE! data ropt BYTE" count DHORD s dword x dword? size of triangie to dra: ,0 size of triangle aumber of SPACEs to print nurber of 'x's to print .code ain proc mov edx, offset prompt call KriteString call ReadDec put adare3s of propt tring into EDX - or WriteString Write string starting at EDX :read from keyboard into EAX or ecx,count:counter for oute loop 2:inner loop mor al, '.'; write space.s call riteChar oop 12 : repeat the inner loop L3: mor al, 'x' 2nd int loop call Kritechar wite spaces loop 13 oop repeat the outer Loop Write an Assembly program that prints an ASCII art version of a right triangle to the screen. For example, for size 5, we would get: USE THIS CODE AS AREFERENCE! data ropt BYTE" count DHORD s dword x dword? size of triangie to dra: ,0 size of triangle aumber of SPACEs to print nurber of 'x's to print .code ain proc mov edx, offset prompt call KriteString call ReadDec put adare3s of propt tring into EDX - or WriteString Write string starting at EDX :read from keyboard into EAX or ecx,count:counter for oute loop 2:inner loop mor al, '.'; write space.s call riteChar oop 12 : repeat the inner loop L3: mor al, 'x' 2nd int loop call Kritechar wite spaces loop 13 oop repeat the outer Loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!