neilsf / xc-basic3

A BASIC cross compiler for MOS 6502-based machines
MIT License
44 stars 5 forks source link

Set appropriate processor type in intermediate code #268

Open neilsf opened 3 months ago

neilsf commented 3 months ago

XC=BASIC currently sets the PROCESSOR 6502 directive for all targets. DASM supports the 650C2 but since XC=BASIC sets the assembly to 6502 mode, extended opcodes can not be used in ASM blocks. If target = x16, the processor type should be set 650C2.