Just put the 8192 directly into A and subtract it.
There is also a handy feature of Hack assembly language that you can have more than one destination on the left of the '='. This lets you easily do "pre increment" assignments.
Your increment and test can become
MD=M+1 // D = ++i
If you need it elsewhere, you can set a variable to a constant