RPGHacker / asar

(Now) official repository of the SNES assembler Asar, originally created by Alcaro
Other
195 stars 42 forks source link

MVP and MVN documentation #283

Closed jeffythedragonslayer closed 1 year ago

jeffythedragonslayer commented 1 year ago

The syntax for MVP and MVN should be in the asar documentation for people coming from other assemblers.

jeffythedragonslayer commented 1 year ago

Doesn't seem to be in https://bin.smwcentral.net/u/6138/xkas.html either

jeffythedragonslayer commented 1 year ago

For the record, it's

MVN srds

Where "sr" is the source bank and "ds" is the destination bank. There is no space or comma in between them.

jeffythedragonslayer commented 1 year ago

Ok so MVP/MVN actually are mentioned in docs/manual/index.html under Architectures, you just have to click [+] Expand. But here they are documented as:

MVN $00,$00
MVP $00,$00

with the comma, and without saying which bank is source/destination.

Alcaro commented 1 year ago

It's MVN $dst,$src. MVN $srcdst works too.

I agree that "documentation" is awful. It contains at least one mistake, too - BRL takes $0000, not $00.

RPGHacker commented 1 year ago

Added a note on order of parameters to the manual in 2b29a7d. Not sure if there's anything else that should be done about this. Also fixed the BRL thing. So I think the issue can be closed.

jeffythedragonslayer commented 1 year ago

I had already opened a PR on the BRL thing.