microcontroller programming in keil software

Discussion in 'Embedded Systems and Microcontrollers' started by soniya, Feb 5, 2014.

  1. soniya

    Thread Starter New Member

    Jul 24, 2013
    5
    0
    Sir/Mam

    Please help me to solve below program as i am running this program it shows many errors.


    C Program : Data transfer using immediate addressing method

    #include <Intel\8051.h>
    typedef unsigned char BYTE;
    void main()
    {
    BYTE a,b,c,d;

    a=0x10;
    b=0x20;
    c=0xFF;
    d=0x41;

    ACC=a;
    B=b;
    R0=c;
    R1=d;
    }
     
Loading...