Updated order of operations in assembleOpcode()