title triangles mov CX, 9 next: call triangle loop next hlt ; procedure triangle triangle: push CX outer: push CX inner: mov AX, CX call WriteInt loop inner call Crlf pop CX loop outer call Crlf pop CX ret