Mercurial > repos > blastem
diff psg.c @ 1946:c3c62dbf1ceb
WIP netplay support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 29 Apr 2020 01:00:57 -0700 |
parents | f2ed8df7a002 |
children | cfd53c94fffb |
line wrap: on
line diff
--- a/psg.c Wed Apr 29 01:00:15 2020 -0700 +++ b/psg.c Wed Apr 29 01:00:57 2020 -0700 @@ -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 @@ 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;