Here is the 6502 assembly source code for Microsoft Basic:

https://github.com/microsoft/BASIC-M6502