blob: 9642394daa7f439a466fb7a2ba6307d333ac5849 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/***************************************************************************
440ops.c
National Semiconductor COP440 Emulator.
Copyright Nicola Salmoria and the MAME Team.
Visit http://mamedev.org for licensing and usage restrictions.
***************************************************************************/
#include "420ops.c"
/*
Mnemonic: CAMT
Hex Code: 33 3F
Binary:
Data Flow: A -> T7:4
RAM(B) -> T3:0
Description: Copy A, RAM to T
*/
INSTRUCTION( camt )
{
T = (A << 4) | RAM_R(B);
}
/*
Mnemonic: CTMA
Hex Code: 33 2F
Binary:
Data Flow: T7:4 -> RAM(B)
T3:0 -> A
Description: Copy T to RAM, A
*/
INSTRUCTION( ctma )
{
RAM_W(B, T >> 4);
A = T & 0x0f;
}
/*
Mnemonic: IT
Hex Code: 33 39
Binary: 0 0 1 1 0 0 1 1 0 0 1 1 1 0 0 1
Description: IDLE till Timer Overflows then Continues
*/
INSTRUCTION( it )
{
cop400->halt = 1;
cop400->idle = 1;
}
|