Question: ; Program template .386 .model flat,stdcall .stack 4096 ExitProcess proto,dwExitCode:dword ROWS = 11 ; this can be changed to any value between 2 - 16;

; Program template

.386

.model flat,stdcall

.stack 4096

ExitProcess proto,dwExitCode:dword

ROWS = 11 ; this can be changed to any value between 2 - 16; the

correct V pattern should be "drawn" in memory in all cases

COLS = 2*ROWS-1

MID_COL = COLS/2

.data

V BYTE 32*ROWS dup (?) ; the memory allocated for the V pattern

curr_row BYTE ? ; this refers to the current row in the pattern being

processed

; count is used to refer to a row in memory, such as 0x00404000 (row 0),

0x00404020 (row 32), 0x00404040 (row 64), etc

; You need to use count to move between the different rows in memory

; HINT: think about incrementing or decrementing count by 32

count DWORD 32*(ROWS-1) ; you can change the initial value depending on

if you want it to count up or down

.code

main proc

; IMPLEMENT THIS

; IMPLEMENT THIS

; IMPLEMENT THIS

; IMPLEMENT THIS

; IMPLEMENT THIS

invoke ExitProcess,0

main endp

end main

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!