Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6913001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:09:45+00:00 2026-05-27T09:09:45+00:00

I used ASEM51 assembler so I could assemble this given code. I have zero

  • 0

I used ASEM51 assembler so I could assemble this given code. I have zero knowledge of Assembly Language but I have to burn this code in a micro-controller for my project model. It’s a code for Ultrasonic Distance Meter. I used “M-IDE Studio for MCS-51” to simulate the code. It got one error at line (51) which stated “symbol not defined”. The line which gave this error was:

cjne a,#0c0h,check_echo

I need this error to be removed so I can successfully burn this program. Please refrain yourself from commenting in the manner of “walk before you start running” because I’m not asking for getting my entire code done as I have already stated that I have no knowledge of the language and, also, the coding was found in a reference in which the coding was not aligned and hence had 40 errors, which I sorted out myself. It’s just one error which is in the way. Here are the respective links for the ASM file and the reference from which I got the code.

http://www.mediafire.com/file/kp738c4gr32bgy4/ULTRSND.asm
http://kitsnspares.com/admin/pdffiles/Ultrasonic%20Distance%20Meter.pdf (Last two pages)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:09:46+00:00Added an answer on May 27, 2026 at 9:09 am

    It looks like there is a missing line break in the code – change:

     mov r2,#10
     djnz r2,$ ;wait 20 us check_echo:
     jnb p3.6,checktimeout
    

    to:

     mov r2,#10
     djnz r2,$ ;wait 20 us
    check_echo:
     jnb p3.6,checktimeout
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used this code to add the data in the mysql table. But I
I used this code to select top 5 users from jQuery grid on button
I used to have a code that checks any previous element with a corresponding
I used to code in C language in the past and I found the
I used to compile my asm code with TASM (on winXP) but I had
Used as a scripting language, does Scala have some sort of include directive, or
Used this http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html tutorial to understand the basic concepts, but having problems running my
I used to have a HtmlHelper written in C# code. Instead of it, I
Never used a cache like this before. The problem is that I want to
When used like this: import static com.showboy.Myclass; public class Anotherclass{} what's the difference between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.