commanderx16 / x16-docs

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

The examples for VPEEK and VPOKE are wrong... #2

Closed EgonOlsen71 closed 5 years ago

EgonOlsen71 commented 5 years ago

...because they are using PEEK and POKE instead of the V... variants.

While we are talking about VPOKE and VPEEK...I assume they do some bank switching, execute and then switch back? Or what are they actually doing (and how?)?

I'm preparing my BASIC compiler to support them, which works so far but I've no idea what to do with the "bank" parameter. Currently, I'm just writing it into address 2 as some placeholder code, but I would like to know what would be actually the right thing to do with it?

mist64 commented 5 years ago

https://github.com/commanderx16/x16-rom/blob/master/basic/x16additions.s#L64