7-18
<Toc> <Ind>
<7. I/O Communications >
IM 34M6H28-01E
■
Example of BASIC Programming
This program is only a subroutine and is called from the program described in Section 7.5,
“Start/Stop Operation and Status Management.”
1000
! ****Read input data****
1010
DREAD@
1020
ENTER LDSLOT ,511 NOFORMAT ;IN1
: ! Read input data
1030
IN1=ROTATE(IN1,8)
: ! Data 8-bit rotate
1040
ENTER LDSLOT ,512 NOFORMAT ;IN2
1050
IN2=ROTATE(IN2,8)
1060
ENTER LDSLOT ,513 NOFORMAT ;IN3
1070
IN3=ROTATE(IN3,8)
1080
ENTER LDSLOT ,514 NOFORMAT ;IN4
1090
IN4=BINAND ($FF00,IN4)
: ! High order 8-bit truncation
1100
RETURN
1200
! ****Write output data****
1210
DWRITE@
1220
OUT1=1234
1230
OUT2=123
1240
OUT3=12
1250
OUT4=2
1260
OUT=ROTATE(OUT1,8)
: ! Data 8-bit rotation
1270
OUT=ROTATE(OUT2,8)
1280
OUT3=ROTATE(OUT3,8)
1290
OUTPUT LDSLOT, 1021 NOFORMAT ;OUT1 : ! Write output data
1300
OUTPUT LDSLOT, 1022 NOFORMAT ;OUT2
1310
OUTPUT LDSLOT, 1023 NOFORMAT ;OUT3
1320
OUTPUT LDSLOT, 1024 NOFORMAT ;OUT4
1st Edition : Feb.01,1999-00
Содержание FA-M3 Vitesse
Страница 2: ...Blank Page...
Страница 28: ...Blank Page...
Страница 40: ...Blank Page...
Страница 94: ...Blank Page...
Страница 116: ...Blank Page...
Страница 118: ...Blank Page...