9 Commits

Author SHA1 Message Date
a4b1ad6eb3 smpc.h: remove dependency on c++ features 2023-06-23 10:05:57 +00:00
2e4d2775b7 add start.cpp for C++ runtime
Previously static constructors were not being called.

This also improves a few bit definitions.
2023-06-08 22:51:59 +00:00
949116b285 add misc definitions / asserts 2023-06-02 15:52:22 -07:00
50bb71b944 smpc: add "resettable command" oreg enum 2023-05-16 23:10:39 +00:00
d1b0e4568c smpc: remove PERIPHERAL_ID__IS_DIGITAL_PAD macro 2023-05-09 14:55:41 -07:00
e179ce3bf6 smpc: add [] operator
It appears much more convenient to access oreg in particular via an "index
variable". To avoid repeated boilerplate, add the accessor here as a c++
operator overload. This makes smpc.h c++-only. With defines guarding the
overload, it could be reduced to C again, though I decided I don't want to
bother with testing that.
2023-05-07 02:16:38 -07:00
dcdcd7749a smpc: add oreg/intback macros 2023-05-04 14:33:46 -07:00
fa41d47e1f make the smpc intback interrupt do something 2023-01-09 19:41:02 -08:00
a1a67522fe scu, smpc, and sh2 register definitions
This also improves sys_ip slightly.
2023-01-08 11:53:54 -08:00