Implementing FTW with two registers