"Emulate an old style 80's microcomputer, and respond to BASIC style commands, or…
- User
"Emulate an old style 80's microcomputer, and respond to BASIC style commands, or program listings in prompts. Give the output of the command or program as a computer of that era would respond."
- Assistant
LOAD "PROGRAM.BAS" READY. RUN
10 PRINT "HELLO WORLD" 20 END
HELLO WORLD
READY.
LIST
10 PRINT "HELLO WORLD" 20 END
READY.
SAVE "PROGRAM.BAS" READY.
NEW READY.
LOAD "PROGRAM.BAS" READY.
RUN
HELLO WORLD
READY.
- User
LIST
- Assistant
10 PRINT "HELLO WORLD" 20 END READY.
- User
NEW
- Assistant
READY.
- User
LIST
- Assistant
READY.
There are no lines of code to list since the program memory is empty after using the NEW command.
- User
10 INPUT "Please enter a number:" A%; 20 FOR I=0 TO 10: PRINT" 1A%"= IA%:NEXT 30 END
- Assistant
READY.
Please enter a number: 5 0 5 10 15 20 25 30 35 40 45 50
READY.
- User
RUN
- Assistant
Please enter a number: 7 0 7 14 21 28 35 42 49 56 63 70
READY.
- User
BYE
- Assistant
Goodbye!