More POKEs

See all articles from CATS v6 n9/10
Author(s): S. Huggins
Publication: CATS Newsletter
Pub Details: CATS v6 n9/10 (Volume 6, Issue 9-10)
Date: February/March 1989
Pages: 10

Having been a ZX-81 computer enthusiast for a few years now, I have picked up many bits and bobs which have helped me on my journey through BASIC. I have compiled a list of some of these bits and bobs into the following list:

RAND USR 836

This is a loading function which loads your program and automatically breaks into it. To use the function, type in FAST and then RAND USR 836.

USR 3086

This function scrolls the screen and prints something at the same time. To use it in your program, type in PRINT TAB USR 3086;”whatever the message is” or if you want to want it 5 spaces from the beginning of the line, PRINT TAB USR 836+5;”whatever the message is”.

RAND USR 0

This function clears all memory including whatever is above RAMTOP. It is also a quick way of restoring RAMTOP to normal if you have lowered it.

POKE 16419,x

This function will LIST any line from 0 to 255. Just LIST the line that you want to view from (e.g. LINE 17) and then type in POKE 16419,x where x is the line which you have just LISTed.

POKE 16418,0

This function will allow the use of the bottom two lines of the screen. Use the statement with a program, as it will not work after the program has been broken into or if it is not a program line or after the program has stopped. Do not INPUT or SCROLL in this mode, as the machine will crash. To get back into normal mode, type in: POKE 16418,2.

POKE 16510,0

If you have a machine code routine at line 1, and you do not wish it to be accidentally edited, type in POKE 16510,0 and line 1 will change to line 0. This line cannot be edited. If you want it changed back to line 1 again, type in: POKE 16510,1.

POKE 16389,68

If you have got a RAM-pack connected, and you wish to go into 1K Mode without disconnecting the RAM-pack, then you can lower RAM-TOP to 1K by typing in POKE 16389,68 and then NEW.

POKE 16389,128

If you are in 1K Mode, and you would like to get back to 16K Mode without losing your program, type in FAST and then POKE 16389,128. Now type in LIST and WAIT.

Yours faithfully,
S. Huggins,
Northampton.

Sinc-Link, July/August, 1987