Dragon 12 assembly language

Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2007
Posts: 17
Reputation: Linda1 has a little shameless behaviour in the past 
Solved Threads: 0
Linda1 Linda1 is offline Offline
Newbie Poster

Dragon 12 assembly language

 
-1
  #1
Feb 25th, 2009
I am trying to build an lcd file. The project is, using a dragon 12 lcd, we need to put a string in 0,0 (top) lcd screen position and another string in 0,1 (bottom screen position. The strings has to rotate around the screen. I did part of the code correctly, but I could not get t to move around the screen without deleting the string
#include "ports_d256.h" //for all ports header file
#include "lcd.c" //lcd header file
main()
{ init_disp(); //initialize lcd display
int i,j;

unsigned char str1[32][7] = {'F','r','a','n','c','e','s'};
unsigned char str2[32][8] = {'W','r','e','n','z','o','l','a'};
for (i=0; i<32; i++)
for (j=0; j<32; j++)
{ go(0,0);
send_str(str1[i]);
if(i<7); go((i-1),0); send_char(' ');
}
for(i=0;i<32;i++)
for(j=0;j<32;j++)
{ go(1,0);
send_str(str2[i]);
if(i<8); go((i-1),0); send_char(' ');
}
}
void __premain()
{
__asm__ __volatile__("clr 0x3f"); //reset cop timer
}
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Assembly Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC