PEEK(0,((4,fwa),(4,len));==>c,bs;) returns len bytes from real storage starting at fwa. c will be 1 and bs will be '' if the requested string is not in real memory or len > 4094 bytes.

PEEK(5==>;((4,bfa))) Turns on kernel IA sampling and returns the real kernel address of the buffer in which sampling will occur. A sample occurs when the operator’s ‘program restart’ function is performed. (This is the RES function on the General Selection screen of the 4341.) The format of the buffer is DC A(next sample,bufend+1) followed by many words of samples. A sample word consists of byte 0 of the PSW followed by bytes 5 thru 7.

PEEK(4==>) Turns off kernel IA sampling and causes the “program restart” to resume its meaning after IPL: to cause a dump.

PEEK(6,((12,PERREGS),(4,rec-addr));==>ba;) establishes values (PERREGS) for the PER hardware, (control regs 9 thru 11) sets a buffer cursor to the beginning of a buffer and (enables “the kernel PER mode” if it wasn’t enabled). In this mode, for each PER event, the six bytes provided by the PER hardware and the contents of the word at address rec-addr are recorded in a buffer starting at real address ba+16. If rec-addr is beyond valid real storage then this mode is left off or turned off. When the buffer is full the mode is turned off. If the first four bits of PERREGS are zero then the mode is turned off.

PEEK(kt==>X'D09'); See (kdiagh) for access to KDIAG.

PEEK(n;==>kt+2;) if n isn’t one of the above.

See (gpeek) to get PEEK. See (pddtc) about commonest use of peek.