Update nor.cpp