User Application Software Examples
Several devices on the PME 68-1B CPU are free for user applications, some simple
examples are given to show how these devices may be programmed. The examples are
guidelines only and may be adopted for the users particular purposes. The programs be-
low have been written using the PME/Ideal, ROM resident screen-oriented Edi-
tor/68000 Assembler.
Data Transfer (From and To) an ACIA
The following routines are a short example of how the ACIA3 may be programmed in
assembler language using a standard 68000 structured label assembler.
Output of One Line to the REMOTE ACIA
A string is transmitted via the ACIA3 until CR
($0D) is detected. TRAP # 14 performs
a return to the PME68/Monitor.
ORG $2000;
/* OUTPUT ONE LINE TO ACIA3 */
ACIA :
EQU
@$C0101
;/*ACIA3 CSR */
RESET:
EQU
$03
;/* RESET */
MODE :
EQU
$15
;/* MODE */
START0::
LEA.L
ACIA,A0
;/* GET BASE INTO A0 */
MOVE.B
# RESET,0(A0)
;/* INIT ACIA */
MOVE.B # MODE
,0(A0);
LEA.L
STRING,A1
:/* GET STRING */
NEXT:
BSR.B
OUTCH
;
CMPI.B
# $0D,(A1)+
;
BNE.B NEXT
;
TRAP
# 14
;/* MONITOR CALL */
OUTCH:
BTST.B
# 1,0(A0)
;/* DONE ? */
BEQ.B OUTCH
;
MOVE.B
(A1),2(A0)
;/* SEND BYTE */
RTS
STRING:
DC ’PME 68-1B’
;/* TEXT */
DC.B
$0A
;
DC.B $0D
;;
PME68-1B Manual
Page 116 Issue 5
Содержание PME 68-1B
Страница 8: ...Figure 1 The PME 68 1B Board Photograph not available in PDF PME 68 1B Manual Page 2 Issue 5...
Страница 12: ...Figure 4 Component Layout Diagram P5 P4 P3 BAT PME 68 1B Manual Page 6 Issue 5...
Страница 56: ...Figure 14 Link Areas BAT PME68 1B Manual Page 50 Issue 5...
Страница 57: ...Blank Page PME68 1B Manual Page 51 Issue 5...
Страница 59: ...Figure 15 Location of System EPROM Area 1 2 3 4 1 2 3 4 WC1 WC2 PME68 1B Manual Page 53 Issue 5...
Страница 80: ...Figure 41 Location of BERR Jumpers 1 2 3 4 WK1 WK2 BR26 2 3 1 BAT PME68 1B Manual Page 74 Issue 5...
Страница 132: ...Blank Page PME68 1B Manual Page 126 Issue 5...