Intel 9800758-02 manual Appendix D Ascii Codes, Table D-l. Ascii Code List

Page 85

APPENDIX D

ASCII CODES

Table D-l. ASCII Code List

Decimal

Octal

Hexadecimal

Character

 

 

 

 

0

000

00

NUL

1

001

01

SOH

2

002

02

STX

3

003

03

ETX

4

004

04

EOT

5

005

05

ENQ

6

006

06

ACK

7

007

07

BEL

8

010

08

BS

9

011

09

HT

10

012

OA

IF

11

013

08

VT

12

014

OC

FF

13

015

00

CR

14

016

OE

SO

15

017

OF

SI

16

020

10

OLE

17

021

11

DC1

18

022

12

OC2

19

023

13

OC3

20

024

14

DC4

21

025

15

NAK

22

026

16

SYN

23

027

17

ETB

24

030

18

CAN

25

031

19

EM

26

032

1A

SUB

27

033

18

ESC

28

034

1C

FS

29

035

10

GS

30

036

1E

RS

31

037

1F

US

32

040

20

SP

33

041

21

!

34

042

22

"

35

043

23

*$

36

044

24

37

045

25

%

38

046

26

&

39

047

27

,

40

050

28

(

41

051

29

)

42

052

2A

*

43

053

28

+

44

054

2C

,

-

45

055

20

46

056

2E

 

47

057

2F

I

48

060

30

0

49

061

31

1

50

062

32

2

51

063

33

3

52

064

34

4

53

065

35

5

54

066

36

6

55

067

37

7

56

070

38

8

57

071

39

9

58

072

3A

 

59

073

3B

,

60

074

3C

<

61

075

3D

=

62

076

3E

>

63

077

3F

?

Decimal

Octal

Hexadecimal

Character

 

 

 

 

64

100

40

@

65

101

41

A

66

102

42

8

67

103

43

C

68

104

44

D

69

105

45

E

70

106

46

F

71

107

47

G

72

110

48

H

73

111

49

I

74

112

4A

J

75

113

48

K

76

114

4C

L

n

115

40

M

78

116

4E

N

79

117

4F

0

80

120

50

P

81

121

51

Q

82

122

52

R

83

123

53

S

84

124

54

T

85

125

55

U

86

126

56

V

87

127

57

W

88

130

58

X

89

131

59

Y

90

132

5A

Z

91

133

58

[

92

134

5C

)

93

135

50

94

136

5E

A

95

137

5F

-,

96

140

60

 

97

141

61

a

98

142

62

b

99

143

63

c

100

144

64

d

101

145

65

e

102

146

66

f

103

147

67

9

104

150

68

h

105

151

69

i

106

152

6A

j

107

153

68

k

108

154

6C

I

109

155

60

m

110

156

6E

n

111

157

6F

0

112

160

70

P

113

161

71

q

114

162

72

r

115

163

73

s

116

164

74

t

117

165

75

u

118

166

76

v

119

167

77

w

120

170

78

x

121

171

79

Y

122

172

7A

z

123

173

7B

{

124

174

7C

I

125

175

70

}

126

176

7E

-

127

177

7F

DEL

D-l

Image 85
Contents BASIC-SO Reference Manual A108/0979/7500 FL Preface Page Contents Illustrations Invoking BASIC-80 Chapter Introduction to BASIC-80Introduction to BASIC-80 ExamplesBasic filename MEMTOPaddress FilenameRenaming a File Listing the Directory of a DiskChanging File Attributes Deleting a FileSave LP ,A You can now run, list, or edit the programStatements CommandsBASIC-80 Statements BASIC-80 Commands ContdBASIC-80 Functions BASIC-80 Statements ContdBASIC-80 Functions Contd Functions Representing DataInteger Constants ConstantsDecimal Integer Constants Hexadecimal Integer ConstantsSingle-Precision Floating-Point Constants Octal Integer ConstantsDouble-Precision Floating-Point Constants String Variables String ConstantsThis is a string constant $ = Enter next data stringYI,1 L4! = Csng l4String Arrays BASIC-SO Operators in Order of Precedence Contd Arithmetic OperatorsString Operator Logical OperatorsNumeric Expressions String ExpressionsEntering and Editing Programs 30 A=8 30 A=8*5230 A=8*52 30 A=8*37 30 A--=8xx*522537 Control-R a = 8*37Command 3D press 3, then D results SubcommandInteger D If AB thenIf AB then 120 Else Null SET At this point, the other editing subcommands may be used Syntax of the X subcommand isInteger C character character Print Undefined SET The E subcommand is enteredMove the cursor to PRINT. Enter 2C RE L Print Undefined SET. Enter a LSyntax Error Messages BASIC-80 Error MessagesOverflow, Underflow, and Divide-by-Zero Error Trapping Trace Facility Error Handling Error SimulationRestarting Program Execution If line 40 is replaced withOpen 1,#1,F1DATES Opening a Sequential FileWriting to a Sequential File Refer to for further details of Print UsingReading from a Sequential File If executed four times, it would read all eight valuesValue of R$ would be Closing a Sequential FileDefining a Random 1/0 Field-FIELD BuffersField #3, 20 AS N$ Field #3, 20 AS N$, 9 AS SS$ Disk File Input/OutputReading from a Random 1/0 File Opening and Closing a Random Disk FileAny of the parameters can be variables To read the next recordInteger Writing to a Random 1/0 FileSingle-precision value Double-precision valueMKI$ Attrib Fdrive numberfilename, WO Attrib Fdrive numberfilename, W1Auto first lineJ, increment Clear expression,addressClose Commands and StatementsRules for function name are the same as for variable name DEF FNXDefsng Defdbl Defstr Defint Delete DIMDIR ErrorEdit ENDExit Error expressionField FOR-NEXT-STEPGosub GETFor variable=expression to expression Step expression GET I file number ,record numberInput IF-THEN-ELSEGoto LET KillLine Input ListLoad LSET, RsetNEW Merge9 16 NextOn ... Goto On ... GosubOpen OUT Option BasePoke Print Print UsingString Fields If X$=SEVEN and Y$=EIGHT, the results of line 40 would be Numeric fieldsPUT PrunRead RandomizeREM Return ResumeRUN line numberlstring expression ,F SaveLine number RUN filename 60 END? 5,8,2 TRON, TroffWidth WaitATN ABSCint CHR$Functions CVI CVS Csng10 A# = 1.00/3.00 AO/o =EOF DskfOk· FIXINP HexsInputs Instr INTLEFT$ LOC LENLOF LOGMKI$ MKS$ MKD$ MID$OCT$ Peek expression RightsPOS integer RIGHT$ string,integerSIN SGNSpaces 10 a =1SPC integer SPCIf A$ = 2 then Print Correct Else Goto SQRexpressionTAB expression STR$ expressionTAN expression 60 AO/o = Here is an example of how the USRn statement is usedTable A-I. BASIC-80 Error Codes Appendix a BASIC-SO Error CodesTable A-I. BASIC-SO Error Codes Contd Appendix B BASIC-SO Reserved Words Page Level To halt program execution and return to commandTo tab across the line To resume program execution after it is stopped byPage Appendix D Ascii Codes Table D-l. Ascii Code ListBEL Table D-2. Ascii Code DefinitionAppendixe Calling Subroutines Figure B-1. Internal Representation of Numbers and Strings RESULT=USR%1VARPTRA, VARPTRB, VARPTRC» PRINTA+B+C= Result Some Real ExamplesFigure E-2 /8085 Assembly Language Program Figure E-3. PL/M-80 Program Appendix F RMX/SO BASIC-SO ISIS-II BASIC-SO Initializing the Predefined RMX/SO BASIC-SO ConfigurationOOOOH-OFFFH Table F-l. Sample Configuration Jumper WiringBASIC-80 Source Files Generating Boot-Loaded and PROM-Based VersionsBASIC-80 Object Files BASIC-80 Executable FilesGenerating a Boot-Loaded RMX/80 BASIC-80 This option is used to allocate memory. It is 1 if the boot That are not boot loadedSetting baud rates, refer to the RMX/SO Users Guide This option enables your user-written I/O drivers if youISBC 80/20-4 Generating a PROM-Based RMX/80 BASIC-80 Prom F1 RMX820.L1BSTART, & FOBASCM.OBJ,& FORMXBAS.LlB F1 DFSDIR. L1BDIRECTORY ,RENAM E,& F1 MTI810.L1B Adding BASIC-SO to an Existing RMX/SO Configuration Configuring DFS on an iSBC 80/10Configuration Requirements ISBC SO/10 System ClockPublic Variables Open 0,#1, L1LlST Adding User-Written I/O Drivers to RMX/SO BASIC-SOFigure F-S. Sample User-Written 1/0 Driver Routine Burning a BASIC-80 Program Into Prom Altering BASIC-80 WorkspaceBaprom F1HEATER.BAS Page Index Ase BASIC-80 RIGHT$,7-1O Request for Readerscomments 111111