commanderx16 / x16-docs

Commander X16 Documentation (CC BY-SA)
189 stars 64 forks source link

clarify how to pass values to ML routines in SYS #83

Closed tomxp411 closed 2 years ago

tomxp411 commented 2 years ago

I was unclear how to pre-load the CPU registers on the X16 when using the SYS command. I knew "there was a way" on the Commodore 64, but while it's a known thing, a lot of programming documentation just skipped right past it.

This reflects my research of where the SYS command picks up and drops off the CPU registers. As this is super useful when accessing ML routines from BASIC, it's worth calling out in the documentation.