I have studied the MCS-51 Instruction set (8051 instruction set summary) but I do not see how to print out the registers' contents. Can't find anything about this in the Help either. Help!!!
The Long answer 8051 registors are mapped to memory locations. if you know wich bank you have you can just print thoose 8 bytes of RAM. (bank 0 the first 8, bank 1 the next 8, ect.) not useing any registers to do so. OR you can mov the registors one by one (in asm) to you print routine that does not use any registers. C makes heavy use of the registers so it can not be used to print them.