djhackersdev / bemanitools

Runs recent Konami arcade games and emulates various arcade hardware.
The Unlicense
84 stars 16 forks source link

acio: adds definitions for RVOL and MDXF - [merged] #205

Closed icex2 closed 1 year ago

icex2 commented 2 years ago

In GitLab by @xyen on Sep 13, 2021, 04:50

_Merges acioddr -> master

Also adds aciodrv / aciotest for RVOL, MDXF is not included as someone else is working on a driver for it already.

icex2 commented 2 years ago

In GitLab by @xyen on Sep 13, 2021, 04:51

added 11 commits

Compare with previous version

icex2 commented 2 years ago

I am not sure here, but afaik this gets filled up automatically to a full byte. However, I would suggest to fill this up with a uint8_t padding : 4 or uint8_t unused : 4

icex2 commented 2 years ago

Why 0 and not 0xFFFFFFFF? If both are fine, I would use the latter as it is more noticable in debug output/logs.

icex2 commented 2 years ago
    log_assert(device);
    log_assert(pout);

pin optional and null check below.

icex2 commented 2 years ago

Just some minor stuff, everything else lgtm. Feel free to merge when addressed and nothing else to clarify.

icex2 commented 2 years ago

In GitLab by @xyen on Sep 13, 2021, 22:35

Commented on src/main/acio/mdxf.h line 19

This is in a union, which is why I left it unpadded (the union itself is what provides the raw access if you need the other bits).

icex2 commented 2 years ago

In GitLab by @xyen on Sep 13, 2021, 22:35

Commented on src/main/aciodrv/device.c line 399

0 isn't a valid node as far as I know, since product_type is a uint32_t, I don't think -1 makes sense here.

icex2 commented 2 years ago

In GitLab by @xyen on Sep 13, 2021, 22:38

added 1 commit

Compare with previous version

icex2 commented 2 years ago

In GitLab by @xyen on Sep 13, 2021, 22:39

resolved all threads