Find the answer to your Linux question:
Results 1 to 2 of 2
hi guys, I am writing a driver I want to use assembly code in between c language , how to do this inline assembling at kernel level, eg: In KEIL ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Location
    india
    Posts
    57

    inline assembling


    hi guys,

    I am writing a driver I want to use assembly code in between c language ,
    how to do this inline assembling at kernel level,
    eg:
    In KEIL compiler for 8bit 8051 i used to do inline assembling as
    main()
    {
    printf("doing inline asm");
    #pragma asm
    MOV A , R1
    #pragma endasm
    exit(1);
    }

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •