mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
fix ym2612 asm, rework EG
this should be split, but I'm lazy EG saves ~900 bytes
This commit is contained in:
parent
e0bcb7a90d
commit
6d28fb5023
3 changed files with 117 additions and 157 deletions
|
@ -43,10 +43,16 @@ typedef struct
|
|||
INT16 volume; /* #0x1a envelope counter | need_save */
|
||||
UINT32 sl; /* #0x1c sustain level:sl_table[SL] */
|
||||
|
||||
UINT32 eg_pack_ar; /* #0x20 (attack state) */
|
||||
UINT32 eg_pack_d1r; /* #0x24 (decay state) */
|
||||
UINT32 eg_pack_d2r; /* #0x28 (sustain state) */
|
||||
UINT32 eg_pack_rr; /* #0x2c (release state) */
|
||||
/* asm relies on this order: */
|
||||
union {
|
||||
struct {
|
||||
UINT32 eg_pack_rr; /* #0x20 1 (release state) */
|
||||
UINT32 eg_pack_d2r; /* #0x24 2 (sustain state) */
|
||||
UINT32 eg_pack_d1r; /* #0x28 3 (decay state) */
|
||||
UINT32 eg_pack_ar; /* #0x2c 4 (attack state) */
|
||||
};
|
||||
UINT32 eg_pack[4];
|
||||
};
|
||||
} FM_SLOT;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue