Mahdi M.
A Blog about Software Development

A Blog about Software Development

MOV is Turing complete!

Mahdi M.'s photo
Mahdi M.

Published on Jun 20, 2015

1 min read

You can write a whole program using only "move" command! Add, Load, Sub, … every assembly command can be re-written using this single command!
But the catch is that this idea uses invalid memory addresses to do comparison! To check if x is equal to y you need to put value of 0 in [x] and 1 in [y]. Then [x] denotes if x is equal to y.