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
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