home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / patches / gluemachine / sources / libtest / test.s < prev   
Encoding:
Text File  |  1995-07-08  |  4.0 KB  |  134 lines

  1. **************************************************************
  2. *                           \|/                              *
  3. *                           @ @                              *
  4. *-----------------------ooO-(_)-Ooo--------------------------*
  5. *                                                            *
  6. *                Use the Simple serial line.                 *
  7. *                    Use the LCD library.                    *
  8. *                        Gluemaster                          *
  9. *                          950708                            *
  10. *                                                            *
  11. *------------------------------------------------------------*
  12. *                                                            *
  13. *                                                            *
  14. **************************************************************
  15.     PROCESSOR 68HC11
  16.  
  17.     include "ADEV11:include/hc11reg.i"
  18.     include "ADEV11:include/LCD.i"
  19.     include "ADEV11:include/Ser.i"
  20.  
  21.     RSEG.U ZPAGE
  22. Position:
  23.     RMB 1
  24. Char:
  25.     RMB 1
  26. Dead:
  27.     RMB 1
  28.  
  29.     RSEG CODE
  30. Start:
  31.     lds #$ff
  32.  
  33.     jsr InitLCD
  34.  
  35.     ldaa #0
  36.     ldx #String
  37.     jsr PutStr
  38.  
  39.     ldaa #BAUD9600
  40.     jsr InitSer
  41.  
  42.     clr Position
  43.     ldaa #$ff
  44.     staa.z Dead
  45. EEver:
  46.     jsr RecSer
  47.  
  48.     jsr TransSer
  49.     jsr TransSer
  50.     jsr TransSer
  51.     jsr TransSer
  52.     jsr TransSer
  53.  
  54.     staa.z Char
  55.  
  56.     ldaa.z Position
  57.     adda #40
  58.     ldx #Char
  59.     jsr PutStr
  60.  
  61.     inc Position
  62.     ldaa.z Position
  63.     cmpa #20
  64.     blo GoodOne
  65.     clr Position
  66.  
  67. GoodOne:
  68.     bra EEver
  69.  
  70. String:
  71.     dc.b "  -= 9600:8:1:N =-  ",$ff
  72.  
  73. **************************************************************
  74. *                           \|/                              *
  75. *                           @ @                              *
  76. *-----------------------ooO-(_)-Ooo--------------------------*
  77. *                                                            *
  78. *                         Vectors.                           *
  79. *                        Gluemaster                          *
  80. *                          950503                            *
  81. *                                                            *
  82. *------------------------------------------------------------*
  83. *                                                            *
  84. *                                                            *
  85. **************************************************************
  86.  
  87. BadInt:
  88.     rti                ; Set all unused vectors here
  89.  
  90.     RSEG VECTORS        ;Interrupt vectors
  91.  
  92.     dc.w    BadInt        ; $FFC0    Reserved
  93.     dc.w    BadInt        ; $FFC2    Reserved
  94.     dc.w    BadInt        ; $FFC4    Reserved
  95.     dc.w    BadInt        ; $FFC6    Reserved
  96.     dc.w    BadInt        ; $FFC8    Reserved
  97.     dc.w    BadInt        ; $FFCA    Reserved
  98.     dc.w    BadInt        ; $FFCC    Reserved
  99.     dc.w    BadInt        ; $FFCE    Reserved
  100.     dc.w    BadInt        ; $FFD0    Reserved
  101.     dc.w    BadInt        ; $FFD2    Reserved
  102.     dc.w    BadInt        ; $FFD4    Reserved
  103.  
  104.     dc.w    BadInt        ; $FFD6    SCI Serial System
  105.     dc.w    BadInt        ; $FFD8    SPI Serial Transfer Complete
  106.     dc.w    BadInt        ; $FFDA    Pulse Accumulator Input Edge
  107.     dc.w    BadInt        ; $FFDC    Pulse Accumulator Overflow
  108.     dc.w    BadInt        ; $FFDE    Timer Overflow
  109.     dc.w    BadInt        ; $FFE0    In Capture 4/Output Compare 5 (TI4O5)
  110.     dc.w    BadInt      ; $FFE2    Timer Output Compare 4 (TOC4)
  111.     dc.w    BadInt        ; $FFE4    Timer Output Compare 3 (TOC3) 
  112.     dc.w    BadInt        ; $FFE6    Timer Output Compare 2 (TOC2)
  113.     dc.w    BadInt        ; $FFE8    Timer Output Compare 1 (TOC1)
  114.     dc.w    BadInt        ; $FFEA    Timer Input Capture 3 (TIC3)
  115.     dc.w    BadInt        ; $FFEC    Timer Input Capture 2 (TIC2)
  116.     dc.w    BadInt        ; $FFEE    Timer Input Capture 1 (TIC1)
  117.     dc.w    BadInt        ; $FFF0    Real Time Interrupt (RTI)
  118.     dc.w    BadInt        ; $FFF2    External Pin or Parallel I/O (IRQ)
  119.     dc.w    BadInt        ; $FFF4    Pseudo Non-Maskable Interrupt (XIRQ)
  120.     dc.w    BadInt        ; $FFF6    Software Interrupt (SWI)
  121.     dc.w    BadInt        ; $FFF8    Illegal Opcode Trap ()
  122.     dc.w    BadInt        ; $FFFA    COP Failure (Reset) ()
  123.     dc.w    BadInt        ; $FFFC    COP Clock Monitor Fail (Reset) ()
  124.     dc.w    Start        ; $FFFE    /RESET
  125.  
  126. **************************************************************
  127. *                                                            *
  128. *-----------------------oooO---Oooo--------------------------*
  129. *                                                            *
  130. **************************************************************
  131.  
  132.  
  133.     END
  134.