home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / msdos / programm / 11359 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  2.5 KB

  1. Xref: sparky comp.os.msdos.programmer:11359 comp.sources.wanted:5352 comp.os.msdos.misc:6520
  2. Path: sparky!uunet!pipex!warwick!uknet!acorn!uniplex!jsk
  3. From: jsk@uniplex.co.uk (Jonathan King)
  4. Newsgroups: comp.os.msdos.programmer,comp.sources.wanted,comp.os.msdos.misc
  5. Subject: HELP !! Assembler Question 8086 ?
  6. Keywords: 8086, Comms, baud rate
  7. Message-ID: <1655@uniplex.co.uk>
  8. Date: 13 Dec 92 21:08:25 GMT
  9. Organization: Uniplex Limited, Hemel Hempstead.
  10. Lines: 52
  11.  
  12. Hello,  
  13.  
  14.      I need a little help with a question some one gave me. I am doing
  15. the question to see if I can. The question is as follows :-
  16.  
  17. Write a short program in 8086 assembler that can receive serial bytes
  18. from COM1 and immediately re-transmit the same bytes through  COM2
  19. The baud rate should be user configureable and the bytes passing
  20. through should be displayed on screen as hex and or characters,
  21. either both at once or user selectable. No extra functions are required
  22. but extra functions and presentation quality will be an advantage.
  23.  
  24. I have programmed in C for IBM PCs but never 8086. Taking a simples view
  25. I expect is will be a case of having an address for COM1 , setting
  26. the reqisters for the required function, ie baud rate , TX , RX and
  27. when a receive is given , taking the data and out putting it to com 2
  28. which also has been set up.
  29.  
  30. When I programmed in C there was a number of interupts available
  31. to do all sorts, I no longer have the MS-DOS Bible. There was one
  32. in particular that allowed the cursor to be moved around the screen
  33. by setting the reqisters and calling the interupt.
  34.  
  35. Can anyone give me any information regarding how to call the interupts
  36. using assembler and what interupts will I need for the task ?
  37.  
  38. Is there a way of calling the system at run time to give details 
  39. of the comms ports ?
  40.  
  41. Does anyone have any code that could be of use to me ?
  42.  
  43. How do I set up my own interupt service routine so that once the 
  44. program polls the coms port for data it can jump to code that allows the 
  45. system setup to be changed ie change baud rate ?????
  46.  
  47.  
  48. Answers to Me via Email please on jsk@uniplex.co.uk and I will be
  49. able to have a merry christmas without spending my time thinking 
  50. about it. 
  51.  
  52. I expect I will have to read a few books on the subject but at the moment
  53. I have no way of getting any. I also know that the information I need to
  54. complete the task will  probably be at an FTP site, pity I can't FTP !
  55.  
  56.  
  57.  
  58. Many Thanks
  59.  
  60. Jon King
  61.  
  62. ########################################################################
  63. This has nothing to do with Uniplex so the standard disclaimers apply.
  64.