vro_cpyfm

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

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

User avatar
Mikefulton
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.

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

Re: vro_cpyfm

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

Indeed

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 1 guest