Mercurial > repos > blastem
diff psg.c @ 1983:a7b753e260a2 mame_interp
Merge from default
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 09 May 2020 23:39:44 -0700 |
parents | c3c62dbf1ceb |
children | cfd53c94fffb |
line wrap: on
line diff
--- a/psg.c Sun Apr 19 00:59:49 2020 -0700 +++ b/psg.c Sat May 09 23:39:44 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;