mấy bác cho em hỏi sao c trong codevision lại có mã asm nếu em muốn bỏ thì có sao không ạ nấu khai báo lại hoàn toàn bằng c thì làm sao
#include <mega16.h>
#include <delay.h>
// Alphanumeric LCD Module functions
#asm
.equ __lcd_port=0x15 ;PORTC
#endasm
#include <lcd.h>
// Declare your global variables here
unsigned char i; //bien dem de chay chu
char flash *str="<- "; //chuoi ki tu viet tren Flash
void main(void)
{
// LCD module initialization
lcd_init(16);//khoi tao lcd 16 cot 2 dong
i=16;
while (1)
{
// Place your code here
i--;
lcd_gotoxy(i,1);
lcd_putsf(str);
if(i==0) {i=16; lcd_gotoxy(0,1);lcd_putsf(" ");}
lcd_gotoxy(0,0);
lcd_putsf("Happy new year ");
delay_ms(500);
#include <mega16.h>
#include <delay.h>
// Alphanumeric LCD Module functions
#asm
.equ __lcd_port=0x15 ;PORTC
#endasm
#include <lcd.h>
// Declare your global variables here
unsigned char i; //bien dem de chay chu
char flash *str="<- "; //chuoi ki tu viet tren Flash
void main(void)
{
// LCD module initialization
lcd_init(16);//khoi tao lcd 16 cot 2 dong
i=16;
while (1)
{
// Place your code here
i--;
lcd_gotoxy(i,1);
lcd_putsf(str);
if(i==0) {i=16; lcd_gotoxy(0,1);lcd_putsf(" ");}
lcd_gotoxy(0,0);
lcd_putsf("Happy new year ");
delay_ms(500);
Comment