emustudio / edigen

Emulator Disassembler Generator
GNU General Public License v3.0
4 stars 0 forks source link

GenerateMaxInstructionBytes doesn't properly follow nested subrules #67

Closed vbmacher closed 1 year ago

vbmacher commented 1 year ago

Example:

root instruction;

instruction = \"a\": 0x00 other | \"b\": 0x10;
other = 0x11 ref16;
ref16 = ref16: ref16(16);

%%

"%s\" = instruction;

generates maxInstructionBytes = 3 instead of 4.