-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
The process for adding new models was previously quite complicated, and involved editing obscure pieces of code.
I have relocated the model-specific data to a well-structured store in 'models.c'. The pin-mapping vectors remain in 'stdlib.ms'. There is now a single primitive (@if-model "modelname" ...) for model-specific microscheme code, rather than a primitive (@if-model-modelname ...) for each model.
As a result, the process for supporting a new model is much simpler. One must add a new entry to the models[] array in 'models.c', and an (@if-model "modelname") block in 'stdlib.ms', containing pin mapping vectors.
I will soon write a guide on exactly how these data should be derived, but the existing models provide a fairly good indication...
Metadata
Metadata
Assignees
Labels
No labels