ysyx_22040000 李心杨 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar 1 12:35:11 UTC 2024 x86_64 GNU/Linux 16:26:21 up 4 days 3:32, 2 users, load average: 0.85, 0.91, 0.95
20 lines
349 B
C
20 lines
349 B
C
#ifndef PSG_H
|
|
#define PSG_H
|
|
|
|
#include "common.h"
|
|
|
|
#define KEY_A J
|
|
#define KEY_B K
|
|
#define KEY_SELECT U
|
|
#define KEY_START I
|
|
#define KEY_UP W
|
|
#define KEY_DOWN S
|
|
#define KEY_LEFT A
|
|
#define KEY_RIGHT D
|
|
|
|
byte psgio_read(word address);
|
|
void psgio_write(word address, byte data);
|
|
void psg_init();
|
|
void psg_detect_key();
|
|
|
|
#endif
|