E1429.H

#ifndef E1429_DEFD

#define E1429_DEFD

#include "inst.h"

class E1429 : public MessInst { int MemoryMode;

public:

E1429(WORD lAddr = 40);

void SetDataReg(UWORD value) { wSet(0x0c,value); } UWORD GetDataReg(void) { return wGet(0x0c); }

void MGetDataReg(UWORD *dest, ULONG count) { wMGet(0x0c,dest,count); } ULONG GetLongDataReg(void); // Cannot use lGet here because of ilpeek problem void MGetLongDataReg(ULONG *dest, ULONG count) { lMGet(0x0c,dest,count); }

};

#endif

E1429.CPP

#include <stdlib.h>

#include "e1429.h"

E1429::E1429(WORD lAddr) : MessInst(lAddr) { SetMapping(I_MAP_EXTEND,0,1,NULL); Map();

}

ULONG E1429::GetLongDataReg(void) {

ULONG Result;

lMGet(0x0c,&Result,1); return Result;

}

82 Using the Digitizer

Chapter 2

Page 82
Image 82
HP E1429A manual E1429.H, E1429.CPP