What are the corresponding three-digit numbers for every key, and how do I use them?
(for example, how in BASIC would I put 'key pressed=enter then goto 5')
Character map for ORIC
-
- Pilot Officer
- Posts: 74
- Joined: Thu Dec 28, 2006 11:07 pm
- Location: SOUTH WALES UK
Hi Chris if your going to try programming in basic and havent used it before its wise to get yourself a oric basic manual they are cheap on ebay ,there are a few on ebay uk now im sure they would post they contain the basics and all the keywords and codes your looking for otherwise its an uphill battle
ONLY DEAD FISH GO WITH THE FLOW
-
- Pilot Officer
- Posts: 74
- Joined: Thu Dec 28, 2006 11:07 pm
- Location: SOUTH WALES UK
-
- Pilot Officer
- Posts: 74
- Joined: Thu Dec 28, 2006 11:07 pm
- Location: SOUTH WALES UK
from memory you need to put the key letter or number in inverted commas IF KEY$="Z" THEN X=X+1 :IFKEY$="X"THENX=X-1 ect
if your writing a program with a few key options you could put-
10 A$=KEY$
20 IFA$="Z"THENX=X+1
30 IFA$="Y"THENX=X-1
ECT(saves you writing KEY all the time)
hope this helps
if your writing a program with a few key options you could put-
10 A$=KEY$
20 IFA$="Z"THENX=X+1
30 IFA$="Y"THENX=X-1
ECT(saves you writing KEY all the time)
hope this helps
ONLY DEAD FISH GO WITH THE FLOW
But if you need to detect the cursor keys, I believe you have to use the chr$ function. For examplenobbysnuts wrote:from memory you need to put the key letter or number in inverted commas IF KEY$="Z" THEN X=X+1 :IFKEY$="X"THENX=X-1 ect
if your writing a program with a few key options you could put-
10 A$=KEY$
20 IFA$="Z"THENX=X+1
30 IFA$="Y"THENX=X-1
ECT(saves you writing KEY all the time)
hope this helps
Code: Select all
110 IF A$=CHR$(8) THEN X=X-1: REM Left
120 IF A$=CHR$(9) THEN X=X+1: REM Right
130 IF A$=CHR$(10) THEN Y=Y+1: REM Down
140 IF A$=CHR$(11) THEN Y=Y-1: REM Up
-
- Pilot Officer
- Posts: 74
- Joined: Thu Dec 28, 2006 11:07 pm
- Location: SOUTH WALES UK
-
- Pilot Officer
- Posts: 74
- Joined: Thu Dec 28, 2006 11:07 pm
- Location: SOUTH WALES UK