How to multiply on snes

Programming the SNES - covers hardware via 6502 emulation mode (65816 coming next year!)
Post Reply
jeffythedragonslayer
Posts: 6
Joined: Sun Aug 29, 2021 11:47 pm

How to multiply on snes

Post by jeffythedragonslayer » Wed May 11, 2022 5:58 pm

Alright so I've been reading this page (https://www.chibiakumas.com/6502/snes.php) and it looks like to do a genuine multiplication (not repeated addition) the multiplicands need to be put in the WRMPYA and WRMPYB ports, then the product read out of MPYL, MPYM, and MPYH. Isn't there an instruction I need to use to do the multiply, or does the result magically appear in those 3 MPY registers?

Post Reply

Return to “Super Nintendo Assembly Programming”