| | |
Dragon 12 assembly language
Please support our Assembly advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2007
Posts: 17
Reputation:
Solved Threads: 0
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
}
#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
}
![]() |
Similar Threads
- Assembly Language Resources (Assembly)
- Your opinion of Assembly: (Assembly)
- Assembly is used for? (Assembly)
- I Need Assembly help w/reversing strings (Assembly)
Other Threads in the Assembly Forum
- Previous Thread: Pic16f84
- Next Thread: I need help.. asap :(
| Thread Tools | Search this Thread |
3d 68hc11 6811 adress alm array asic asm assembler assembly boot bootloader buffer compression cursor debug development directory division dos draw emulator endtask error file int10h integer interrupt language loop lsi nohau osdevelopment print program range read remainder requirements shape storage string text tsr x86





