nanochess / IntyBASIC

IntyBASIC compiler for Intellivision (CP1610 processor)
BSD 2-Clause "Simplified" License
35 stars 5 forks source link

native support for CP1600 extensions in LTO-Flash #19

Open artrag opened 4 years ago

artrag commented 4 years ago

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

artrag commented 4 years ago

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

nanochess commented 4 years ago

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.

artrag commented 4 years ago

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