Hi ,I am trying to print this ,so far unsuccessful,I am printing only the first row
Thanks
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 10 11
2 3 4 5 6 7 8 9 10 11 12
3 4 5 6 7 8 9 10 11 12 13
4 5 6 7 8 9 10 11 12 13 14
5 6 7 8 9 10 11 12 13 14 15
6 7 8 9 10 11 12 13 14 15 16
7 8 9 10 11 12 13 14 15 16 17
8 9 10 11 12 13 14 15 16 17 18
9 10 11 12 13 14 15 16 17 18 19
10 11 12 13 14 15 16 17 18 19 20
.386
.model Flat
include Cs266.inc
.data
start DD 0
finish DD 12
.code
first:
mov EDX,finish
mov EBX,start
inc EDX
inc EBX
putch 10
main:
cmp EBX,0
JE zero
putch ' '
putint EBX
inc EBX
cmp EBX,EDX
JB main
JE first
zero: ;zero
putch ' '
inc EBX
jmp main
exit:
Ret
end