Skip to content

Supporting more models #13

@ryansuchocki

Description

@ryansuchocki

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions