Question: Can you write this code in assembly language include sbit en1=P3^0; sbit en2=P3^1; void delay(unsigned int cnt); void display(unsigned char d1,unsigned char d2); unsigned char

Can you write this code in assembly language
include
sbit en1=P3^0;
sbit en2=P3^1;
void delay(unsigned int cnt);
void display(unsigned char d1,unsigned char d2);
unsigned char SSD[16]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F,0x77,0x7C,0x39,0x5E,0x79,0x71};
unsigned char cnt=0;
void main(){
P2=0x00;
P3=0x00;
while(1) display(9,10);
}
void delay(unsigned int times){
int opt;
for(opt=0;opt } void display(unsigned char d1,unsigned char d2){ P2=SSD[d1]; en1=1; delay(3000); en1=0; P2=SSD[d2]; en2=1; delay(3000); en2=0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
