RCA CDP18S711 manual Appendix C - CHIP-8Interpreter, CHIP-8Interpreter Listing

Page 34

35

Appendix C - CHIP-8 Interpreter

CHIP-8 Interpreter Listing

To use the CHIP-8 language you must first load the following interpreter program into memory

locations 0000-0IFF (2 pages). This interpreter will allow you to run the games in Appendix D or write your own programs using the CHIP-8 instruction set described in section III.

0000

91

BB

FF

01

B2

B6

F8

CF

0100

00

00

00

00

00

45

A3

98

0008

A2

F8

81

B1

F8

46

Al

90

0108

56

D4

F8

81

BC

F8

95

AC

0010

B4

F8

1B

A4

F8

01

B5

F8

0110

22

DC

12

56

D4

06

B8

D4

0018

FC

A5

D4

96

B7

E2

94

BC

0118

06

A8

D4

64

0A

01

E6

8A

0020

45

AF

F6

F6

F6

F6

32

44

0120

F4

AA

3B

28

9A

FC

01

BA

0028

F9

50

AC

8F

FA

0F

F9

F0

0128

D4

F8

81

BA 06 FA 0F AA

0030

A6

05

F6

F6

F6

F6

F9

F0

0130

0A

AA

D4

E6

06

BF

93

BE

0038

A7

4C

B3

8C

FC

0F

AC

0C

0138

F8

1B

AE 2A 1A F8 00 5A

0040

A3

D3

30

1B

8F

FA

0F

B3

0140

0E

F5

3B

48

56

0A

FC

01

0048

45

30 40

22

69

12

D4

00

0148

5A

30

40

4E

F6

3B

3C

9F

0050

00

01

01

01

01

01

01

01

0150

56

2A

2A

D4

00

22

86

52

0058

01

01

01

01

01

00

01

01

0158

F8

F0

A7

07

5A

87

F3

17

0060

00

7C

75

83

88

95

B4

87

0160

1A

3A

5B

12

D4

22

86

52

0068

BC

91

EB

A4

D9

70

99

05

0168

F8

F0

A7

0A

57

87

F3

17

0070

06

FA

07

BE

06

FA

3F

F6

0170

1A

3A

6B

12

D4

15

85

22

0078

F6

F6

22

52

07

FA

1F

FE

0178

73

95

52

25

45

A5

86

FA

0080

FE

FE

F1

AC

9B

BC

45

FA

0180

0F

B5

D4

45

E6

F3

3A

82

0088

0F

AD

A7

F8

D0

A6

93

AF

0188

15

15

D4

45

E6

F3

3A

88

0090

87

32

F3

27

4A

BD

9E

AE

0190

D4

45

07

30

8C

45

07

30

0098

8E

32

A4

9D

F6

BD

8F

76

0198

84

E6

62

26

45

A3

36

88

00A0

AF

2E

30

98

9D

56

16

8F

01A0

D4

3E

88

D4

F8

F0

A7

E7

00A8

56

16

30

8E

00

EC

F8

D0

0lA8 45 F4 A5 86 FA 0F 3B B2

00B0

A6

93

A7

8D

32

D9

06

F2

01B0

FC

01

B5

D4

45

56

D4

45

00B8

2D

32

BE

F8

01

A7

46

F3

01B8

E6

F4

56

D4

45

FA

0F

3A

00C0

5C

02

FB

07

32

D2

1C

06

01C0

C4

07

56

D4

AF

22

F8

D3

00C8

F2

32

CE

F8

01

A7

06

F3

01C8

73

8F

F9

F0

52

E6

07

D2

00D0

5C

2C

16

8C

FC

08

AC

3B

01D0

56

F8

FF A6 F8 00 7E 56

00D8

B3

F8

FF

A6

87

56

12

D4

0lD8 D4 19 89 AE 93 BE 99 EE

00E0

9B

BF

F8

FF

AF

93

5F

8F

01E0

F4

56

76

E6

F4

B9

56

45

00E8

32

DF

2F

30

E5

00

42

B5

01E8

F2

56

D4

45

AA

86

FA

0F

00F0

42

A5

D4

8D

A7

87

32

AC

01F0

BA

D4

00

00

00

00

00

00

00F8

2A

27

30

F5

00

00

00

00

01F8

00

00

00

00

00

E0

00

4B

<e0m>

 

 

 

 

 

 

 

 

<eom>

 

 

 

 

 

 

 

 

Image 34
Contents Page RCA COSMAC VIP CDP18S711 Instruction Manual VIP-311ACKNOWLEDGMENT Contents Contents Continued 1. Getting Started What This Manual CoversThe Power Supply Turning It On What You See1. Getting Started 11.COSMAC VIP Operation Using the Operating SystemMemory Write Tape Write Memory ReadTape Read Testing Your Cassette System 11.COSMAC VIP OperationIII.CHIP-8Language Programming How to Change and Use the VariablesBranch Instructions Using the Display Instructions 0206 D125 SHOW 5MI@VlV2 0208 1208 GO 020A F090 III. CHIP-8 Language Programming0200 A20A I=020A 0202 6100 V1=00 0204 6200 V2=00 020C F090 020E F000Applying CHIP-8 Some Program Ideas 111. CHIP-8Language Programming25.PROGRAMMED SPOT - Introduce children to programming concepts by letting them preprogram the movements of a spot or object on the screen IV. Machine Language Programming VIP Machine CodingMachine Language Programming Summed Up How Memory Is Addressed V. Logic DescriptionHow the Input/Output Works pressed. A 62 machine instruction causes the least significant 4 bits of memory byte to be latched into U13. These 4 bits are decoded to bring one of the 16 U13 output lines low. If the key that corresponds to this output line is pressed, the CDPI802 EF3 input will go low. The 4-bitcodes latched into U13 correspond to the equivalent key positions. After the program send8 a 4-bitcode to U13, it subsequently examines the EF3 line to see if the key corresponding to this code is pressed or not. In this manner, a program can determine when any specific key is pressed or can sequentially scan all keys while waiting for any one to be pressed. Key debounce delays must be provided in the program when required. A program can also cause a speaker tone to occur when a key is pressed. Only one key at a time should be pressed with this method of interfacing the keyboard Using the Byte Input/Output V1. Expansion Considerations and ConnectionsSome Expansion Ideas Using the Expansion InterfaceI RCA COSMAC VIP Instruction Manual V1. Expansion Considerations and Connections Pin SignalTable III - External Option Terminal Connections 2.Composing poetry or pictures with printer output Signal Tracing VIL Troubleshooting HintsOther Problems No SoundLast Resorts Byte Pattern for Displaying COSMAC Appendix A - Test and Operating DataBeeper Program Signals Cassette Attachment Diagram Cassette Phase TestTest Program Cassette Data Test Cassette Recording Guidelines Memory Test ProgramAppendix B - Operating System Operating System ListingOperating System Summary Operating System Register TableR3 = Machine Language Subroutine Program Counter Appendix C - CHIP-8Interpreter CHIP-8Interpreter ListingCDP1802 Register Use for CHIP-8 CHIP-8Memory MapInterpreter Appendix C - CHIP-8Interpreter CHIP-8User Notes RCA COSMAC VIP Instruction ManualPage 1. VIP Kaleidoscope 2. VIP Video Display Drawing Game Fig. E-1Microprocessor and Display Interface Appendix E - Logic DiagramsFig. E-5Power Supply Circuit and Byte CircuitsPage Fig. E-2- ROM Circuits and Expansion Interface Appendix E - Logic DiagramsPage Fig. E-4- RAM Circuits Appendix E - Logic DiagramsRCA COSMAC VIP Instruction Manuel RCA COSMAC VIP Instruction Manual 2.Parts List for RCA COSMAC VIP CDP18S711 Board Layout, Parts List, and Expansion NotesAppendix F 1.Printed Circuit Board LayoutRCA COSMAC VIP Instruction Manual Page 2. Parts List for RCA COSMAC VIP CDP18S711 Page RCA COSMAC VIP Instruction Manual Resistors - Supplied 1 /4 W except as notedPage 3. COSMAC VIP Expansion Notes