//д���ݵ�RAM������WriteData() void WriteData(uint data1) { InitP0(0); SetRS(1); SetRW(0); //ShortDelay(1); SetE(0); PinData = data1; //ShortDelay(1); SetE(1); ShortDelay(10); SetE(0); //ShortDelay(1); SetRW(1); SetRS(0); }
DOMMatrix* DOMMatrix::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv) { SVGTransformListParser parser(aTransformList); if (!parser.Parse()) { aRv.Throw(NS_ERROR_DOM_SYNTAX_ERR); } else { mMatrix3D = nullptr; mMatrix2D = new gfx::Matrix(); gfxMatrix result; const nsTArray<nsSVGTransform>& mItems = parser.GetTransformList(); for (uint32_t i = 0; i < mItems.Length(); ++i) { result.PreMultiply(mItems[i].GetMatrix()); } SetA(result._11); SetB(result._12); SetC(result._21); SetD(result._22); SetE(result._31); SetF(result._32); } return this; }
DOMMatrixReadOnly* DOMMatrixReadOnly::SetMatrixValue(const nsAString& aTransformList, ErrorResult& aRv) { // An empty string is a no-op. if (aTransformList.IsEmpty()) { return this; } gfx::Matrix4x4 transform; bool contains3dTransform = false; if (!ServoCSSParser::ParseTransformIntoMatrix(aTransformList, contains3dTransform, transform.components)) { aRv.Throw(NS_ERROR_DOM_SYNTAX_ERR); return nullptr; } if (!contains3dTransform) { mMatrix3D = nullptr; mMatrix2D = new gfx::Matrix(); SetA(transform._11); SetB(transform._12); SetC(transform._21); SetD(transform._22); SetE(transform._41); SetF(transform._42); } else { mMatrix3D = new gfx::Matrix4x4(transform); mMatrix2D = nullptr; } return this; }
//дָ�����WriteInstruc() void WriteInstruc(uint Instruc) { while(StatusCheck()); InitP0(0); SetRS(0); SetRW(0); //ShortDelay(1); SetE(0); PinData = Instruc; //ShortDelay(1); SetE(1); ShortDelay(10); SetE(0); //ShortDelay(1); SetRW(1); SetRS(1); }
//��BF�Լ�AC��ֵ������Read_BF_AC() uint Read_BF_AC() { uint temp; InitP0(1); SetRS(0); SetRW(1); //ShortDelay(1); SetE(0); //ShortDelay(1); SetE(1); ShortDelay(1); temp = PinData; ShortDelay(10); SetE(0); //ShortDelay(1); SetRW(0); SetRS(1); return(temp); }
/* this assumes w->local_top has been computed! */ CVOID__PROTO(push_frame, int arity) { tagged_t *pt1; int i; SetE(w->local_top); E->next_insn = w->next_insn; E->frame = w->frame; w->frame = E; w->next_insn = CONTCODE(arity); w->local_top = (frame_t *)Offset(E,EToY0+arity); for(i=0; i<arity; i++) Y(i) = X(i); }