summaryrefslogtreecommitdiff
path: root/psg.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-04-29 01:00:57 -0700
committerMichael Pavone <pavone@retrodev.com>2020-04-29 01:00:57 -0700
commit2071d8e545b9aca6af08852f721e9a7b7a617398 (patch)
tree75148c6c893661c0e6b0bada4c7ca5b71cd8255d /psg.c
parent6641d3825bb931c5af37b98fc6420c972cfb3fd1 (diff)
WIP netplay support
Diffstat (limited to 'psg.c')
-rw-r--r--psg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/psg.c b/psg.c
index a165f3b..7893208 100644
--- a/psg.c
+++ b/psg.c
@@ -5,6 +5,7 @@
*/
#include "psg.h"
#include "blastem.h"
+#include "event_log.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
@@ -35,6 +36,7 @@ void psg_write(psg_context * context, uint8_t value)
if (context->vgm) {
vgm_sn76489_write(context->vgm, context->cycles, value);
}
+ event_log(EVENT_PSG_REG, context->cycles, sizeof(value), &value);
if (value & 0x80) {
context->latch = value & 0x70;
uint8_t channel = value >> 5 & 0x3;