Atari.Org
Click Here
HomeNewsServicesForumsSupport

Talk Atari

Atari.Org Forums


16/32-Bit

8-Bits

Classics

Emulation

Jaguar

Lynx

Classic Consoles Forum 8-Bits Forum 16/32 Forum
Emulation Forum Jaguar Forum Lynx Forum
 
 Subject: Lattice C Problems (Line-A text)
Author: C M (63.170.182.2)
Date:   09-04-2002 21:37

I finally got Lattice 5.51 working (Thanks Steve!) but other then basic text programs the compiler balks with the error message

Intermediate file error
Execution terminated

(Compilation failed)

This is an example program from the 5.06 package from hangloose. I noticed the "return 0;" line was missing and added it. But otherwise I'm lost.

Any help is appreciated! Btw, any good places for more source code examples?

Program included below.

---

/*
* Demonstrate the Line-A text routines
*
* lc -L text.c
*
* Copyright (c) 1990 HiSoft
*/

#include
#include <string.h>

int main(void)
{
register int i;

linea0();
for (i=0; i<0x20; i++)
{
register const char *s="Hello World";
register char c;

if (i>=0x10)
DSTX=V_X_MAX/2;
else
DSTX=0;
while (c=*s++)
{
short x[500];
TEXTFG=1;
TEXTBG=0;
STYLE=i;
c-=V_DEF_FONT->font_low_ade;
SRCX=V_DEF_FONT->font_char_off[c];
SRCY=0;
DELX=V_DEF_FONT->font_char_off[c+1]-SRCX;
DELY=V_DEF_FONT->font_height;
FBASE=V_DEF_FONT->font_data;
FWIDTH=V_DEF_FONT->font_width;
LITEMSK=V_DEF_FONT->font_lightening;
SKEWMSK=V_DEF_FONT->font_skewing;
WEIGHT=V_DEF_FONT->font_thickening;
if (STYLE & 1<<2) /* skewed */
{
ROFF=V_DEF_FONT->font_right_off;
LOFF=V_DEF_FONT->font_left_off;
}
else
ROFF=LOFF=0;
SCALE=0;
XDDA=0x8000;
DDAINC=256;
SCALDIR=0;
CHUP=0;
MONO=0;
SCRTCHP=x;
SCRPT2=sizeof(x)/2;
CLIP=0;
DSTY=(i&0xf)*V_DEF_FONT->font_height;
linea8();
}
}
return 0;
}

 Topics Author  Date
  Lattice C Problems (Line-A text)  C M 09-04-2002 21:37 
   RE: Lattice C Problems (Line-A text) new C M 09-04-2002 21:39 
   RE: Lattice C Problems (Line-A text) new Johan Klockars 09-05-2002 00:43 
    RE: Lattice C Problems (Line-A text) new steve ollett 09-09-2002 11:26 

 Reply To This Message
 Your Name:
 Your Email:
 Subject:
 Human verification:   What's this?
               _    __     _ _     
 _ __  ___ _ _| |_ / _|___| (_)___ 
| '_ \/ _ \ '_|  _|  _/ _ \ | / _ \
| .__/\___/_|  \__|_| \___/_|_\___/
|_|                                
    



Copyright © 1997-2024 Atari.Org 
Atari is registered trademark of Infogrames