EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / assembly language programming for min no.

assembly language programming for min no.

|

Microcontroller › 8051 › assembly language programming for min no.

  • This topic has 2 replies, 2 voices, and was last updated 14 years, 9 months ago by mukesh.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 19, 2010 at 8:35 am #415
    mukesh
    Participant

    hello,

    find the mistake in the given assembly language program:

        org 0000h
        mov 30h,#56h
        mov 31h,#35h
        mov 32h,#11h
        mov 33h,#75h
        mov 34h,#4h
        mov 35h,#96h
        mov 36h,#46h
        mov 37h,#26h

    min:
        mov r0,#30h
        mov r3,#06
        mov a,@r0
        mov b,a
        inc r0
        mov a,@r0
    for2:cjne a,b,com1
    com1:jc mor
        mov a,b
    mor:push 0e0h
        inc r0
        mov a,@r0
        pop 0f0h
        djnz r3,for2
        ret

    cont2:lcall min
        mov a,b
        setb psw.4
        push 0f0h
        clr psw.4
        mov ro,#30h
    cont:xrl a,@r0
        jz over
        inc r0
        sjmp cont
    over:mov a,#0ffh
        xch a,@r0
        djnz r7,cont2
        setb psw.3
        setb psw.4
        pop 7
        pop 6
        pop 5
        pop 4
        pop 3
        pop 2
        pop 1
        pop 0
    here:sjmp here
        end

    September 21, 2010 at 10:18 am #5062
    Anonymous
    Guest

    what kind of error is coming in this

    is it logical error  or program is not able to compile

     

    September 23, 2010 at 4:25 am #5063
    mukesh
    Participant

    hello,

            thanks for your  replay ,the is that the programm is not able to compile and it is showing error that the call instruction is showing invalid label?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Wierd makita battery July 14, 2025
  • More fun with ws2812 this time XC8 and CLC July 14, 2025
  • I Wanna build a robot July 13, 2025
  • using a RTC in SF basic July 13, 2025
  • Is AI making embedded software developers more productive? July 13, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise