nanochess/IntyBASIC

native support for CP1600 extensions in LTO-Flash

artrag opened this issue · 3 comments

LTO-Flash includes a huge amount of CP1600 extensions that can be essential for math coding and data manipulation.

Look at ATAN2, DIST, SUMSQ,MPYSS and many others
Locutus_CP-1600X_Instruction_Set_Extensions_20191119a.pdf
https://atariage.com/forums/applications/core/interface/file/attachment.php?id=679387

The latest documentation is in attach.
A big step in the intybasic could be native support of these extensions, specific of the LTO cartridge

Adding MPY16 support seems almost trivial, as it could be included in the current macro
MULT reg, tmp, const

Wow! This is amazing and opens a whole new world. I need to research it more in terms of assembler support, and what LTO-Flash cartridges supporting this, before doing any implementation.

I thought you were asking about the old protocol for hardware multiplication that indeed is fully supported as soon as using --jlp.

Have a look here
https://atariage.com/forums/topic/298518-extending-the-cp1600-instruction-set/?tab=comments#comment-4558500
I've used this template to include ATAN2() in Galaxian