diff options
author | 2007-12-17 15:19:59 +0000 | |
---|---|---|
committer | 2007-12-17 15:19:59 +0000 | |
commit | 7b77f1218624ea26dbb2efd85a19f795f5d4e02e (patch) | |
tree | 19209304095572b4fd61c2a2d6a5aa75c4e471ad /src/emu/machine/74181.h | |
parent | 3da7f476068b3ffef713218ba2fc1bd5030f2c38 (diff) |
Initial checkin of MAME 0.121.mame0121
Diffstat (limited to 'src/emu/machine/74181.h')
-rw-r--r-- | src/emu/machine/74181.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/emu/machine/74181.h b/src/emu/machine/74181.h new file mode 100644 index 00000000000..21a5e59719d --- /dev/null +++ b/src/emu/machine/74181.h @@ -0,0 +1,40 @@ +/* + * 74181 + * + * 4-Bit Arithmetic Logic Unit + * + */ + + +/* constants for setting input lines */ +#define TTL74181_INPUT_A0 (0) +#define TTL74181_INPUT_A1 (1) +#define TTL74181_INPUT_A2 (2) +#define TTL74181_INPUT_A3 (3) +#define TTL74181_INPUT_B0 (4) +#define TTL74181_INPUT_B1 (5) +#define TTL74181_INPUT_B2 (6) +#define TTL74181_INPUT_B3 (7) +#define TTL74181_INPUT_S0 (8) +#define TTL74181_INPUT_S1 (9) +#define TTL74181_INPUT_S2 (10) +#define TTL74181_INPUT_S3 (11) +#define TTL74181_INPUT_C (12) +#define TTL74181_INPUT_M (13) + +/* constants for reads output lines */ +#define TTL74181_OUTPUT_F0 (0) +#define TTL74181_OUTPUT_F1 (1) +#define TTL74181_OUTPUT_F2 (2) +#define TTL74181_OUTPUT_F3 (3) +#define TTL74181_OUTPUT_AEQB (4) +#define TTL74181_OUTPUT_P (5) +#define TTL74181_OUTPUT_G (6) +#define TTL74181_OUTPUT_CN4 (7) + + +void TTL74181_config(int chip, void *interface); +void TTL74181_reset(int chip); + +void TTL74181_write(int chip, int startline, int lines, UINT8 data); +UINT8 TTL74181_read(int chip, int startline, int lines); |