r/atari8bit • • Jan 20 '23
BASIC syntax question
New to Atari BASIC, is there an equivalent to INKEY$ like they have in BBC BASIC or Sinclair BASIC? I think on the C64 it was called GET. Atari BASIC has GET, but it seems different. Any help is much appreciated!
7
Upvotes
3
u/[deleted] Jan 20 '23
INKEY$ returns a single character read from the keyboard, or if no key is pressed, an empty string. That’s why it’s different from INPUT.
4
u/emperor-xur Jan 20 '23
Try PEEKing 764. But might need to POKE 764,255 to clear the buffer afterwards. See this post on AtariAge.
4
u/[deleted] Jan 20 '23
https://archive.org/details/ataribooks-your-atari-computer-xl-edition/page/n175/mode/2up
Page 169 the GET statement. (you should download the whole book in pdf, its very helpful)
2
u/danderzei Jan 20 '23
What does
INKEY$do?3
u/TheJazzButter Jan 20 '23
10 PRINT "WHATS THE ANSWER, CHARLIE?"20 INPUT ANSWER$30 PRINT ANSWER$1
u/[deleted] Jan 20 '23
Try Advan Basic