Jump to content

Photo

OS source code - all revisions


50 replies to this topic

#1 Kr0tki OFFLINE  

Kr0tki

    Stargunner

  • 1,014 posts
  • Location:Warszawa, Poland

Posted Sun Aug 5, 2012 6:23 AM

I have attempted to recreate source codes of all known official revisions of the Atari OS. I have used the official source listings for 800 rev. B and XL rev. 2 published by Atari back in the day as a base, and deassembled ROM binaries of other revisions to find out the differences. The resulting archive contains sources for the following OS revisions:

400/800 rev. A
400/800 rev. B
1200XL rev. 10
1200XL rev. 11
600XL/800XL rev. 1
800XL/65XE/130XE rev. 2
1450XLD rev. 3 (prototype)
1450XLD rev. 3 ver. 4 (prototype)
XL Rev. 5 (prototype)
65XE/130XE rev. 3
XEGS rev. 4
Arabic 65XE rev. 59 (not fully commented)
Arabic 65XE rev. 59 (Kevin Savetz' prototype, not fully commented)

All source files can be assembled using ca65.

Remove the .txt part from the filename, then unpack with 7-zip. See README for details.

Edited by Kr0tki, Sun Aug 5, 2012 6:40 AM.


#2 flashjazzcat ONLINE  

flashjazzcat

    Quadrunner

  • 12,104 posts
  • Location:United Kingdom

Posted Sun Aug 5, 2012 6:58 AM

Fantastic work - many thanks for this. ;)

#3 AtariGeezer ONLINE  

AtariGeezer

    River Patroller

  • 2,315 posts
  • Location:Santee, CA

Posted Sun Aug 5, 2012 3:14 PM

Wow! Definitely one to add to the archives :thumbsup: :thumbsup: :thumbsup:

Thanks,
Jay

#4 falcon_ OFFLINE  

falcon_

    Space Invader

  • 39 posts

Posted Sun Aug 5, 2012 3:59 PM

Very impressive!! Many thanks for this, it should be an invaluable reference! :thumbsup: :-D


mysterious quote: How do you define relevant ? It all depends...

#5 Stephen OFFLINE  

Stephen

    Quadrunner

  • 5,980 posts
  • A8 Gear Head
  • Location:Akron, Ohio

Posted Mon Aug 6, 2012 8:09 AM

Wow - looks like a ton of work to get that done. Thanks for sharing.

#6 Kr0tki OFFLINE  

Kr0tki

    Stargunner

  • Topic Starter
  • 1,014 posts
  • Location:Warszawa, Poland

Posted Sat Dec 8, 2012 11:35 PM

Update:
* Added new details concerning the 400/800 OS 255 and 1200XL Rev. 11 in the README.
* Improved formatting of the BB1r59a source file (Kevin Savetz' Arabic 65XE).

Edited by Kr0tki, Sat Dec 8, 2012 11:41 PM.


#7 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Sun Dec 9, 2012 9:13 AM

Nice work!

I checked the OS EPROMs (dated 6-15-79) in old #26 and they do NOT have OS 255. It looks like Rev. A, though I haven't fully compared them. PEEK(65528) would read 221, right?

#8 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Sun Dec 9, 2012 9:30 AM

My November 1980 copy of the OS User's Manual includes a source listing, but only of the EQUATE file. Still, it's interesting. It starts with:

LIST X
; THIS IS THE ORIGINAL JUNE 1979 ATARI 400/800 COMPUTER OPERATING
; SYSTEM LISTING, MODIFIED TO ASSEMBLE ON THE MICROTEC CROSS
; ASSEMBLER. IN ACTUALITY, A COUPLE OF FILLER (ZERO) BYTES
; SHOWN IN THIS LISTING WERE NOT ZERO IN RELEASED ROMS.
; ALSO, RESET VECTORS, COLD START VECTOR, ROM CHECKSUM OF THE
; RELEASED CODE ARE NOT REPRESENTED HERE--THIS CODE ASSEMBLES
; INTO THE VERSION USED TO LOAD INTO ATARI'S RAM-BASED
; COMPUTER DEVELOPMENT SYSTEMS.
;


#9 Kr0tki OFFLINE  

Kr0tki

    Stargunner

  • Topic Starter
  • 1,014 posts
  • Location:Warszawa, Poland

Posted Sun Dec 9, 2012 11:01 AM

Interesting indeed. I'm gonna incorporate this bit in the source files in the next update.

Do you happen to know if the 1980 OS User's Manual was made available online? I would like to see the rest of the equate file.

Thanks for dumping the ROMs of the Engineering Serial #26.

Edited by Kr0tki, Sun Dec 9, 2012 11:04 AM.


#10 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Sun Dec 9, 2012 12:09 PM

I haven't seen it on line. Mine is a faded photocopy. I'll try to scan it some time (too busy this and next weeks, maybe during the holidays).

#11 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Tue Dec 11, 2012 6:23 AM

Comparing the A (1980 manual) and B (1982 listing) Equates by eye, I noticed only these differences:

Initial comment page - A mentions format changes required for MICROTEC assembler (implying they used another assembler before)
A has no PALFLG label
In A, COLLEEN is pasted over with ATARI 400/800 in different font
A defines labels with *=*+N where B uses .RES N
A is missing the label definitions IMASK and JVECK - 5 spare bytes there
Most right side comments in A are missing semicolons
Many white-space format differences

Edited by ClausB, Tue Dec 11, 2012 6:43 AM.


#12 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Tue Dec 11, 2012 10:31 AM

Scans of first two pages of Equates Listing from 1980 Manual:
Attached File  img083.pdf   30.03KB   272 downloads
Attached File  img084.pdf   28.84KB   215 downloads

#13 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Fri Dec 14, 2012 8:19 AM

Screen shot 2012-12-14 at 9.16.24 AM.jpg

#14 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Wed Dec 26, 2012 4:56 PM

Here's the whole Equates listing from the November 1980 OS User's Manual. Sorry for the crappy scan - the scanner only runs in auto and does what it wants.

Attached File  800 Equates.pdf   564.87KB   356 downloads

#15 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 819 posts
  • Location:australia

Posted Sat Dec 29, 2012 5:35 AM

Look at what I found.
Posted Image
Posted Image
Posted Image
Posted Image

It looks very much like an orignal. It is slightly different to yours tho.
Posted Image

James

Edited by sup8pdct, Sat Dec 29, 2012 5:44 AM.


#16 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Sat Dec 29, 2012 1:59 PM

Yet another version! Your BOOT listing appears identical to the 1982 listing aside from line and page numbers. Your EQUATE listing looks the same except for the missing PALFLG. So is this A or B?

#17 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,319 posts
  • Location:Michigan

Posted Sat Dec 29, 2012 3:01 PM

Interesting bit of history - from the 1980 OS Manual section 10 - about the PDP-11 development system:

IMG_20121229_151722.jpg

IMG_20121229_152004.jpg

Edited by ClausB, Sat Dec 29, 2012 3:02 PM.


#18 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 819 posts
  • Location:australia

Posted Sun Dec 30, 2012 12:40 AM

That one is rev A.
I do have a rev B somewhere.
Also DUP source listing for dos 2.

James

#19 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 819 posts
  • Location:australia

Posted Sun Dec 30, 2012 6:08 AM

Found my rev B source listing It too is an orignal or a very good photocopy.
Here is a page from it
Posted Image
When compaired to same place in rev A
Posted Image

Yes, Rev B does list Palflg as one of the 1st lines. Other then that, not very much different from rev A as far as the opening page is concerned.
James

#20 Kr0tki OFFLINE  

Kr0tki

    Stargunner

  • Topic Starter
  • 1,014 posts
  • Location:Warszawa, Poland

Posted Sun Dec 30, 2012 9:57 AM

Thanks ClausB for the scans. I'm going to include this file in the next update.

sup8pdct, that's a great find! I was not aware that Rev. A was published at all.

Comparing the differences between Rev. A and B binaries I am able to determine which pages should be different in Rev. A source listing when compared against Rev. B. Could you take a few more photos? Please provide Rev. A pages that correspond to the following pages in Rev. B sources - they should contain differences in source code:
30-32 (lines 1216-1365)
34 (lines 1386-1439)
37 (lines 1548-1584)
46 (lines 1967-1996)
49 (lines 2128-2162)
58-59 (lines 2647-2670)
85-86 (lines 3752-3857)
92 (lines 4036-4082)

#21 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 819 posts
  • Location:australia

Posted Sun Dec 30, 2012 4:36 PM

there is a small diference near line 5782
Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image

Posted Image


Posted Image

Posted Image

Posted Image

Posted Image
Posted Image

Posted Image
there are 2 missing lines around line 404. RevB has imask and jveck
Posted Image

Edited by sup8pdct, Sun Dec 30, 2012 5:15 PM.


#22 Kr0tki OFFLINE  

Kr0tki

    Stargunner

  • Topic Starter
  • 1,014 posts
  • Location:Warszawa, Poland

Posted Mon Dec 31, 2012 4:58 AM

Thank you James. I've edited the source file according to the photos.

I'm betting that there are other formatting differences between Rev. A and B that we don't know about yet (for example, line numbers on p. 9 indicate that there are 9 more lines of text somewhere between lines 62 and 387 in Rev. A), but it won't be possible to find them without scanning the whole document. At least the parts with differing source code are fully covered now.

Here's the package update.

Edited by Kr0tki, Mon Dec 31, 2012 4:58 AM.


#23 sup8pdct OFFLINE  

sup8pdct

    Dragonstomper

  • 819 posts
  • Location:australia

Posted Tue Jan 1, 2013 5:30 AM

The books have been packed away now and won't be able to look at them for a year. Glad most stuff has been caught.

James

#24 hunmanik OFFLINE  

hunmanik

    Chopper Commander

  • 203 posts
  • Location:Wisconsin

Posted Tue Jan 8, 2013 5:40 PM

Here is the same Equate File scan as posted above (#14), but including the missing final page 16 (at least as found in the August 1981 version of the OS User's Manual).

Attached Files



#25 atx4us OFFLINE  

atx4us

    Moonsweeper

  • 428 posts
  • Location:Michigan, USA

Posted Tue Jan 8, 2013 9:10 PM

Thanks!!!




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users