OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [fpga/] [actel_m1a3pl_dev_kit/] [software/] [spacewar/] [spacewar.h] - Diff between revs 82 and 143

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 82 Rev 143
Line 1... Line 1...
//************************************************************
//************************************************************
//
//
// spacewar.h
// spacewar.h
//
//
//
//
#include <iomacros.h>
 
 
 
#define full_shields 6      // 6 hits on rkt to win
#define full_shields 6      // 6 hits on rkt to win
#define ammo 2              // # photon torpedos per rocket- only memory for 2
#define ammo 2              // # photon torpedos per rocket- only memory for 2
#define rktsiz  128         // size of rockets
#define rktsiz  128         // size of rockets
#define max_dac 4095        // max value on scrn
#define max_dac 4095        // max value on scrn
Line 14... Line 13...
#define center (max_dac / 2)  // center of the display
#define center (max_dac / 2)  // center of the display
#define collide 256         // size of rocket for a collision
#define collide 256         // size of rocket for a collision
#define fire_bit 1          // fire button is pressed
#define fire_bit 1          // fire button is pressed
#define time_tick 1         // 10 ms timer tick for system time
#define time_tick 1         // 10 ms timer tick for system time
 
 
#define MY_DAC_X_      0x0190
 
sfrw (MY_DAC_X,MY_DAC_X_);
 
#define MY_DAC_X_STAT_ 0x0192
 
sfrw (MY_DAC_X_STAT,MY_DAC_X_STAT_);
 
#define MY_CNTRL1_     0x0194
 
sfrw (MY_CNTRL1,MY_CNTRL1_);
 
#define MY_CNTRL2_     0x0196
 
sfrw (MY_CNTRL2,MY_CNTRL2_);
 
#define MY_DAC_Y_      0x01A0
 
sfrw (MY_DAC_Y,MY_DAC_Y_);
 
#define MY_DAC_Y_STAT_ 0x01A2
 
sfrw (MY_DAC_Y_STAT,MY_DAC_Y_STAT_);
 
 
 
/* Description:
/* Description:
The structure contain all the data for each rocket.  Two of these structures
The structure contain all the data for each rocket.  Two of these structures
are defined in main, rkt1 and rkt2.  The xdisp, ydisp is the 12 bit position of
are defined in main, rkt1 and rkt2.  The xdisp, ydisp is the 12 bit position of
the rocket.  The xvel, yvel is the velocity if the rocket. xvel, yvel is added
the rocket.  The xvel, yvel is the velocity if the rocket. xvel, yvel is added

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.