This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

whats rong with it

hi friends,

this is part of the code used to read the binary data from a motorola Oncore gps timing RX (they do/did a version that can output 10Khz as well).

its got 4 errors so plz tell me what is bad

GetRx
   call   readst      ; read receiver data string
   iorlw   0      ; test W, 0 = checksum good
   btfss   status,z   ; if read error do not update lcd
   return
      ; Call again for second string
   call   readst      ; read receiver data string
   iorlw   0      ; test W, 0 = checksum good
   btfss   status,z
   return
      ; if read error do not update lcd
   MOVLW   0x01       ; Clear LCD
        CALL    cout
   CALL   chkbsy

   movf   day,w      ;Send date
   call   p_bin
   movlw   '-'
   call   dout
   movf   month,w
   call   p_bin
   movlw   '-'
   call   dout
   movf   year_hb,w
   movwf   hbyte
   movf   year_lb,w
   movwf   lbyte
   call   bin2bcd
   call   p_4      ; send 4 lsd from "R" reg to LCD

   movlw   ' '      ; send space
   call   dout

   movf   hour,w      ; send time
   return

Parents
  • you post the wrong code i.e. you do not even recognize that the code is not for a '51 and then you ask us to help you cheat.

    If you can not even identify '51 code as opposed to PIG? code it would be the ultimate disservice to you and whereever you eventually apply for a job to 'help' you. You would probably not even manage to earn a days wages before you were found out and dismissed.

    Either you are dumb, lazy or whatever or you better ask the institution you attend for a refund.

    Erik

Reply
  • you post the wrong code i.e. you do not even recognize that the code is not for a '51 and then you ask us to help you cheat.

    If you can not even identify '51 code as opposed to PIG? code it would be the ultimate disservice to you and whereever you eventually apply for a job to 'help' you. You would probably not even manage to earn a days wages before you were found out and dismissed.

    Either you are dumb, lazy or whatever or you better ask the institution you attend for a refund.

    Erik

Children