home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / robotics / 1723 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  3.0 KB

  1. Xref: sparky comp.robotics:1723 comp.sys.m6809:394
  2. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!G.Moretti
  3. Newsgroups: comp.robotics,comp.sys.m6809
  4. Subject: 68HC11: AS11.EXE generates faulty code - known error/newer version?
  5. Message-ID: <30sis-c@massey.ac.nz>
  6. From: news@massey.ac.nz (USENET News System)
  7. Date: Sun, 6 Sep 1992 10:45:04 GMT
  8. Reply-To: G.Moretti@massey.ac.nz
  9. Organization: School of Maths & Info. Sci., Massey University, Palmerston North, NZ
  10. Lines: 53
  11.  
  12. Hi
  13. I recently received (two weeks ago) three more 68HC11 EVB boards which a
  14. class is about to start for practical assignments.  Yesterday - Horror
  15.  - I find, shall we say, INCONSISTENCIES in the AS11.EXE assembler
  16. that arrived with the kits.
  17.  
  18. Take a look at the following file.  If I remove the ORG $0000 the errors
  19. go away.  However this sort of erroneous behaviour in an assembler makes
  20. it unusable, especially when if you put the MSG on a line by itself the
  21. PHASING ERROR message goes away, leaving an apparently error-free assembly.
  22. ------------------------------------------------------------------------------
  23. 0001 0100                             org  $100
  24. 0002
  25. 0003 0100 ce 01 0e                    ldx  #msg        <---- Address is wrong
  26. 0004 0103 9d 00                       jsr  led_on
  27. 0005 0105 20 04                       bra   done       <---- Should be  20 03
  28. 0006 0107 c3 00 01                    addd #1
  29. 0007 010a 7e 01 0a           done     jmp   done
  30. 0008
  31. 9| Phasing Error
  32. 0009 010d 48 65 6c 6c 6f     msg      fcc  "Hello"
  33. 0010                         ************************************************
  34. 0011 0000                             org  $0000  <---- remove this - all ok
  35. 0012
  36. 0013 0000 b6 10 03           led_on   lda  $1003
  37. 0014 0003 8a 80                       ora  #$80
  38. 0015 0005 b7 10 03                    sta  $1003
  39. 0016 0008 39                          rts
  40. ----------------------------------------------------------------------------
  41. I haven't seen any posting about bugs in the freeware assembler.
  42. I have seen mention of newer version (AS11NEW.EXE), but I
  43. can't find it on ARCHIE and dialling into the FREEWARE BBS from New
  44. Zealand is a prohibitively expensive.
  45.  
  46.   o Is there something I should know about the assembler or are these
  47.        know errors?
  48.  
  49.   o Is there a better FREE assembler, especially in terms of error
  50.     reporting? If you generate a list file you have no idea of whether
  51.     there were any errors without viewing the whole file!
  52.  
  53.   o Is there a later version than this: AS11     EXE    18906 26-02-88 12:54p
  54.  
  55. If you could give me the FTP address of a site with an assembler that doesn't
  56. exhibit these oddities I'd really appreciate it.
  57.  
  58. Thanks
  59. Giovanni
  60. -- 
  61. -----------------------------------------------------------------------------
  62. Giovanni Moretti                                                       ZL2BOI
  63. Computer Science Department, Massey University, Palmerston North, New Zealand
  64. G.Moretti@massey.ac.nz      Phone +64-6-356-9099            Fax 64-6-350-5611
  65.