home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / desklib / Libraries / Serial / s / GetFormat < prev    next >
Encoding:
Text File  |  1993-11-21  |  1.1 KB  |  33 lines

  1. ;   ####             #    #     # #
  2. ;   #   #            #    #       #          The FreeWare C library for
  3. ;   #   #  ##   ###  #  # #     # ###             RISC OS machines
  4. ;   #   # #  # #     # #  #     # #  #   ___________________________________
  5. ;   #   # ####  ###  ##   #     # #  #
  6. ;   #   # #        # # #  #     # #  #    Please refer to the accompanying
  7. ;   ####   ### ####  #  # ##### # ###    documentation for conditions of use
  8. ;   ________________________________________________________________________
  9. ;
  10. ;   File:    Serial.s.GetFormat
  11. ;   Author:  Copyright © 1993 Jason Howat
  12. ;   Version: 1.00 (21 Nov 1993)
  13. ;   Purpose: Read the data format for the encoding of characters sent and
  14. ;            received on the serial line.
  15.  
  16.         GET     h.regdefs
  17.         GET     h.swinos
  18.         GET     h.macros
  19.  
  20. ; int Serial_GetFormat(void);
  21.  
  22.         PREAMBLE
  23.         STARTCODE Serial_GetFormat
  24. ;
  25.         STMFD   sp!, {lr}
  26.         MOV     a1, #1
  27.         MVN     a2, #0
  28.         SWI     SWI_OS_SerialOp + XOS_Bit
  29.         MOV     a1, a2
  30.         LDMFD   sp!, {pc}^
  31. ;
  32.         END
  33.