I do think it will work, but if you do:
dec %di

It will automaticly decrease %di with -1.