Hi guys I wanted to ask how to make the numbers 0 to 9 show up diagonally, vertically, and horizontally all at the same time.
My code must show something like this: (NOTE: Daniweb won't allow me to fill up those spaces with blanks so just imagine the "x" as blank spaces)
0 1 2 3 4 5 6 7 8 9
2 x 2
3 xxx 3
I was only able to do the horizontal and vertical directions and below is my code, anyone who can help me put up all the horizontal, vertical, diagonal at the same time?Thank you!
a100 mov Bl,30 mov CL,0A mov AH,02 mov Dl,BL int 21 mov AH,02 mov DL,20 int 21 inc BL LOOP 106 mov Bl,31 mov CL,09 mov AH,02 MOV DL,0A INT 21 MOV AH,02 MOV DL,0D INT 21 MOV AH,02 MOV DL,20 INT 21 MOV AH,02 MOV DL,0D INT 21 MOV AH,02 mov Dl,BL int 21 mov AH,02 mov DL,0A int 21 inc BL LOOP 126 INT 20