#include <atari2600.h>
#include <stdint.h>
Go to the source code of this file.
|
typedef unsigned char | byte |
|
typedef signed char | sbyte |
|
typedef unsigned short | word |
|
◆ _CYCLES
#define _CYCLES |
( |
|
lines | ) |
(((lines) * 76) - 13) |
◆ _T1024
#define _T1024 |
( |
|
cycles | ) |
((cycles) >> 10) |
◆ _TIM64
#define _TIM64 |
( |
|
cycles | ) |
(((cycles) >> 6) - (((cycles) & 63) < 12)) |
◆ apply_hmove
#define apply_hmove |
( |
| ) |
__attribute__((leaf)) asm volatile("sta $42 /* WSYNC */" "\n" "sta $6a /* HMOVE */"); |
◆ BALL
◆ COLOR_CONV
#define COLOR_CONV |
( |
|
color | ) |
(SW_COLOR() ? color : color & 0x0f) |
◆ do_wsync
#define do_wsync |
( |
| ) |
__attribute__((leaf)) asm volatile("sta $42 /* WSYNC */"); |
◆ JOY_DOWN
#define JOY_DOWN |
( |
|
plyr | ) |
(!(RIOT.swcha & ((plyr) ? 0x2 : ~MOVE_DOWN))) |
◆ JOY_FIRE
#define JOY_FIRE |
( |
|
plyr | ) |
!(((plyr) ? TIA.inpt5 : TIA.inpt4) & 0x80) |
◆ JOY_LEFT
#define JOY_LEFT |
( |
|
plyr | ) |
(!(RIOT.swcha & ((plyr) ? 0x4 : ~MOVE_LEFT))) |
◆ JOY_RIGHT
#define JOY_RIGHT |
( |
|
plyr | ) |
(!(RIOT.swcha & ((plyr) ? 0x8 : ~MOVE_RIGHT))) |
◆ JOY_UP
#define JOY_UP |
( |
|
plyr | ) |
(!(RIOT.swcha & ((plyr) ? 0x1 : ~MOVE_UP))) |
◆ KERNAL_TIM64
◆ M0
◆ M1
◆ OVERSCAN_TIM64
◆ P0
◆ P1
◆ set_horiz_pos
◆ SW_COLOR
#define SW_COLOR |
( |
| ) |
((RIOT.swchb & BW_MASK) != 0) |
◆ SW_P0_PRO
◆ SW_P1_PRO
◆ SW_RESET
#define SW_RESET |
( |
| ) |
((RIOT.swchb & RESET_MASK) == 0) |
◆ SW_SELECT
#define SW_SELECT |
( |
| ) |
((RIOT.swchb & SELECT_MASK) == 0) |
◆ VBLANK_TIM64
◆ byte
typedef unsigned char byte |
◆ sbyte
typedef signed char sbyte |
◆ word
typedef unsigned short word |
◆ TIAObject
Enumerator |
---|
PLAYER_0 | |
PLAYER_1 | |
MISSILE_0 | |
MISSILE_1 | |
BALL | |
◆ kernel_1()
◆ kernel_2()
◆ kernel_3()
◆ kernel_4()
◆ objindex