MEGA65 / mega65-core

MEGA65 FPGA core
Other
240 stars 85 forks source link

HYPPO does not map IO correctly for OpenDir and ReadDir #654

Open M3wP opened 1 year ago

M3wP commented 1 year ago

Test Environment (required) You can use MEGA65INFO to retrieve this.

Describe the bug Hyppo fails silently when the IO is not correctly mapped for calls to OpenDir and ReadDir. ReadDir accepts invalid handles.

To Reproduce Please see attached program.

You will need to alter the Makefile such that it will produce the required program on make run.

Expected behavior Hyppo should not silently fail in ReadDir when given an invalid handle and OpenDir should map IO when being called such that the program runs successfully. Ie.. So the correct number of files are enumerated or fails appropriately.

Screenshots

Additional context dirtest.zip

M3wP commented 1 year ago

Additionally, ReadDir does not function if interrupts are enabled.