Dumb 8051ish related question....
Will 8040 code run on a '51? I have yet to find a definitive yea or nay :(
No. THe 8040 is the ROMless 8050 IIRC. it's related to the
8035/8039/8048/8049 too. It's a different instruction set from the 8051
family.
-tony