RCA CDP18S711 manual VIP Video Display Drawing Game

Page 40

Appendix D - Video Games

2. VIP Video Display Drawing Game

This program uses the CHIP-8 INTERPRETER at

0000-01FF. A flashing spot appears in the upper left corner of the screen. You can move the spot by holding key 2, 4, 6, or 8. Press key 5 and you can draw a picture with the spot. Press key 0 and the spot can be moved without drawing or used to erase a previously drawn line. 0245-024E is a list of

41

initial values for VO-V9. In this program, locations 0300-03FF are used for the picture. After drawing a picture, you can change M(0208) from OOEO to 120A. Write locations 0000-03FF (4 pages) to tape to save your picture. When you load these four pages back into memory you will see your original picture. Changing the OOEO instruction in the program to 120A prevents your picture from being erased when the program is started.

0200

A245

I=0245

0202

F965

VO:V9=MI

0204

A24F

I=024F

0206

0236

MLS@0236

0208

OOEO ERASE

020A

F915

TIME-V9

020C

FA07 VA=TIME

020E

3AOO SKIP;VA EQ 00

0210

120C

GO 020C

0212

D121

SHOW 1MI@V1V2

0214

3FOO SKIP;VF EQ 00

0216

D121

SHOW 1MI@VIV2

0218

E3A1 SKIP;V3 NE KEY

021A

8030

VO=V3

021C

E4AI SKIP;V4 NE KEY

O~U 8040 VO=V4

0220

4000

SK1P;VO NE 00

0222

123C

GO 023C

0224

E5A1 SKIP;V5 NE KEY

0226

72FF V2+FF

0228

E6A1 SKIP;V6 NE KEY

022A

71FF V1+FF

022C

E7AI S&IP;V7 NE KEY

022E

7101

V1+01

0230

E8A1 SKJP;V8 NE KEY

0232

7201

V2+01

0234

120A

GO 020A

0236

OlF8

 

0238

03BB

 

023A

E2D4

SHOW 1MI@V1V2

023C

D121

023E

4FOO SKIP;VF NE 00

0240

D121

SHOW 1MI@V1V2

0242

1224

GO 0224

0244

0100

 

0246

0000

 

0248

0005

 

024A

0204

 

024C

0608

 

024E

0880

 

Image 40
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 III. CHIP-8 Language Programming 0200 A20A I=020A 0202 6100 V1=00 0204 6200 V2=000206 D125 SHOW 5MI@VlV2 0208 1208 GO 020A F090 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 VIL Troubleshooting Hints Other ProblemsSignal Tracing 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 Appendix E - Logic Diagrams Fig. E-5Power Supply Circuit and ByteFig. E-1Microprocessor and Display Interface 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 Board Layout, Parts List, and Expansion Notes Appendix F2.Parts List for RCA COSMAC VIP CDP18S711 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