Skip to content

anserwaseem/print-diamonds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

print-diamonds

PrintDiamond

A function that draws a solid diamond on display memory after taking following parameters from main function:

  • location (rowno, colno) i.e. the top position of the diamond
  • width of the diamond
  • character with which the diamond has to be filled
  • color/attribute of the diamond

swap

After printing the diamond for 5 seconds (using delay), swap the first 12 rows of the display memory with the last 12 rows using movs instruction. Do not clear the introduction screen in the start.