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!!!
"Printing" is a fairly complex operation. It will usually involve setting up a serial port and calling some functions such as printf() in C. You won't find much discussion of the topic in the instruction set manual because it takes hundreds or thousands of instructions to do everything that printf() does. It's a layer well above the instructions themselves. If you can set up a project that does serial I/O, printing the registers is just a matter of passing those values to your print routine. If you want to view registers in a debugger, then there's probably a window just for that. You might also make use of the fact that the four banks of registers are also the first 32 bytes of internal RAM.