Atari Developer's Kit

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

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

tcat
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri May 03, 2013 6:00 am

Atari Developer's Kit

Postby tcat » Mon Aug 19, 2013 5:26 pm

Hi,

I have discovered ATARI_DK resources at ATARI documentation archive.
It contains 5 floppy disk images, including original ATARI sources and utilities.
There are MADMAC assembler, ATARI linker, RCS8 recource editor, and other stuff

I started exploring the discs and noticed that in some files are long series of characters of F6 hex value, where I would expect something else, please see quoted part of the famous DOODLE.C example
....
WORD erase_medium[37] = /* mouse form for medium eraser */
{
7, 7, 1, 0, 1,
0x0000, 0x0000, 0x0000, 0x0000, /* mask */
0x0000, 0x0000, 0x07c0, 0x07c0,
0x07c0, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, /* data */
0x0000, 0x1ff0, 0x1830, 0x1830,
0x1830, 0x1ff0, 0x0000, 0x0000,
0x0000, 0x0000, 0x00<F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6><F6>
....

Is this some kind of floppy format compression or worse, are the files really corrupted?
Please, can you help?

Many thanks
TCAT

User avatar
rudis
Captain Atari
Captain Atari
Posts: 163
Joined: Mon Feb 14, 2011 9:41 am

Re: Atari Developer's Kit

Postby rudis » Mon Aug 19, 2013 5:58 pm

that are masks and data structure for mouseform. look here for graf_mouse function and here for the structure.

tcat
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri May 03, 2013 6:00 am

Re: Atari Developer's Kit

Postby tcat » Tue Aug 20, 2013 5:59 am

Hi,

Thank you for pointing to this nice and rather concise documenttation, I even did not know it existed. Very well done.

What troubles me, are those characters <F6><F6><F6><F6><F6><F6><F6>....., please see nearer the end of the code excerpt. That in my opinion should not realy be there, and they appear at random across many files in the ATARI_DK.ZIP package. It contains, DISK_1 ... DISK_5. Perhaps you can try unzipping it as I did, the package is here, http://dev-docs.atariforge.org/files/atari_dk.zip

So I am suspecting that either unzipping on my computer, or zipping original package went wrong, cannot tell, looking for an answer and help.

Many, many thanks so far.
TCAT

User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 802
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: Atari Developer's Kit

Postby mfro » Tue Aug 20, 2013 6:53 am

tcat wrote:So I am suspecting that either unzipping on my computer, or zipping original package went wrong, cannot tell, looking for an answer and help.
TCAT

Same results here - I also suspect those files are corrupted. I assume they were already when they got zipped, since I'd expect unzip to complain otherwise.

tcat
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri May 03, 2013 6:00 am

Re: Atari Developer's Kit

Postby tcat » Tue Aug 20, 2013 9:03 am

Thanks for a try.
Question is, where to get the original files, I can possibly identify those corrupted.
There are a number of files intact though, source files can possibly be recovered, I have manually edited some of them.
Any idea?
Many thanks.
TCAT

tcat
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri May 03, 2013 6:00 am

Re: Atari Developer's Kit

Postby tcat » Tue Aug 20, 2013 9:04 am

Binaries seem impossible to repair, unless <F6>....<F6> appear in the text constants.
Many thanks.
TCAT

User avatar
simonsunnyboy
Moderator
Moderator
Posts: 5101
Joined: Wed Oct 23, 2002 4:36 pm
Location: Friedrichshafen, Germany
Contact:

Re: Atari Developer's Kit

Postby simonsunnyboy » Tue Aug 20, 2013 3:00 pm

I have the package somewhere but I don't know if it has the corruptions. The disks are in .MSA image format. YOu can check if these images have the same errors.

Except for the historic value, the disks have no practical use these days. The C compiler only compiles K&R, not even C90 standard and has to be called in multiple stages.

If you really consider C programming for the Atari platform, you should better try Pure C, AHCC or a GCC crosscompiler running on your PC.
You do not have the required permissions to view the files attached to this post.
Simon Sunnyboy/Paradize - http://paradize.atari.org/

Stay cool, stay Atari!

1x2600jr, 1x1040STFm, 1x1040STE 4MB+TOS2.06+SatanDisk, 1xF030 14MB+FPU+NetUS-Bee

tcat
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri May 03, 2013 6:00 am

Re: Atari Developer's Kit

Postby tcat » Tue Aug 20, 2013 6:02 pm

Hi,

Many thanks for uploading. I have inspected the Alcyon package provided.
Looks good and intact, I can see DOODLE.C example, plus some other files I can use to recover original ATARI_DK, though it is structured differently and not all files are present compared to ATARI_DK, it seems mainly Alcyon C and LInker centered.

I understand, it has got some historic and collector's value. Well these seem the tools that ATARI was born with, correct?

On the other hand I have built a floppy image, containing COMMAND.TOS, ME.TTP (microEMACS), MAC.PRG (MADMAC assembler), and ALN.PRG (ATARI Linker). This floppy is usable and goes well with Clayton Walnum's assembly tutorials. On the same floppy the tutorial can fit as well.

Many thanks
TCAT

tcat
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 116
Joined: Fri May 03, 2013 6:00 am

Re: Atari Developer's Kit

Postby tcat » Thu Aug 22, 2013 7:02 am

Hi,

I have written a simple UNIX script inspecting ATARI_DK development package.
It reports below files being somehow corrupted.
So only some files on DISK_2 seem corrupt.
From the ALCYON2 package I can sadly reuse only one file, TUTOR.DOC

Can onyone help with the other files?
Many thanks TCAT

DISK_2/rcs/rscreat/stcreate.c
DISK_2/rcs/icon/atball.c
DISK_2/rcs/icon/sdc.c
DISK_2/rcs/icon/sdasm.s
DISK_2/rcs/icon/sdasm.prg
DISK_2/rcs/icon/sdcst.s
DISK_2/rcs/icon/se.prg
DISK_2/rcs/icon/shic.doc
DISK_2/rcs/icona/iced.prg
DISK_2/rcs/icona/ICED.RSC
DISK_2/emacs/tutor.doc
DISK_2/examples/doodle/doodle.c
DISK_2/examples/doodle/doodle.rsc
DISK_2/examples/button/newbut.s
DISK_2/examples/cards/ctype.h
DISK_2/examples/cards/cards.c
DISK_2/examples/deadkey/deadkey.s


Social Media

     

Return to “C / PASCAL etc.”

Who is online

Users browsing this forum: No registered users and 2 guests