C and PASCAL (or any other high-level languages) in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

User avatar
Captain Atari
Captain Atari
Posts: 169
Joined: Sun Nov 29, 2015 10:27 am

Re: vro_cpyfm

Postby Mikefulton » Tue Feb 09, 2016 3:14 pm

AtariOwl wrote:OK

That did it

Two errors

1. int instead of short for most of the block
2. Sheldon Leemon's book says
int *image
while Lattice C's manual says
void *image

Working now

Thank You for talking this through with me

Regarding #1, early GEM C sample code typically used what they called "portability macros" so that instead of "int" or "short" you used "WORD" which would be defined in a compiler-specific way in a header file.

#2 doesn't really matter unless you're directly accessing the data via the pointer.

Atari freak
Atari freak
Posts: 66
Joined: Mon Nov 03, 2003 2:04 pm

Re: vro_cpyfm

Postby AtariOwl » Wed Feb 10, 2016 11:53 am


I changed both at the same time so i wasnt aware but yes 2. makes no difference

Social Media


Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 3 guests