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

Inline Assembler- Debug

Hi:
Why when I debug this code, the debugger do not execute the lines between #pragma asm
and #pragma endasm. What happen?
Thanks

My C code:
--------------------------------------------

#pragma src

#include <reg51.h>
#include <Consola.h>
#include <intrins.h>


static unsigned char estado = 0;
static unsigned char numtecla = 0;
static unsigned char tecla = 0;

void Kb_Scan (void)
{

unsigned char l,s,f;
s=0;





if (P3 !=0xFF)
{
if(!estado)
{
ACC=P3;
tecla=ACC;
estado++;
}
else
{
ACC=P3;
if(ACC==tecla)
{
numtecla=1;
P1=0x00;
TR0=0;
}
else
estado=0;


}

}








return ;

}

void timer0 (void) interrupt 1 using 0
{

//TR0=0;
TH0=0xCB;
TL0=0xEA;

Kb_Scan();


}

void main(void)

{

//Timer0
TMOD = 0x01;
EA = 1;
ET0 = 1;
TH0=0xCB;
TL0=0xEA;

TR0 = 1;

#pragma asm
nop
MOV P3,#0x00
#pragma endasm

while(1)
{



}


}

---------------------------------------------

0