TOS 1.04 sources reconstructed

GFA, ASM, STOS, ...

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

ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2367
Joined: Sun Aug 03, 2014 5:54 pm

Re: TOS 1.04 sources reconstructed

Post by ThorstenOtto »

I've added now also binaries for win32 for the compiler tools. So using a decent shell, you can compile it now also on windows. The MSYS2 or cygwin environments can be used for that.
avtandil
Captain Atari
Captain Atari
Posts: 155
Joined: Fri Jun 12, 2009 8:34 am
Location: St. Petersburg, RUSSIA
Contact:

Re: TOS 1.04 sources reconstructed

Post by avtandil »

ojanhk wrote: Sun Jan 16, 2022 4:29 pm To my knowledge there were no ST with SECAM. Actually, I’m not even sure version with modulator were sold here. By the time the ST was released, SCART connector with RVB was mandatory on all TV sets and all the French ST I’ve seen so far were PAL using the RVB out (there is no CVBS neither ).
BlankVector, what can you say about this ?
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 2721
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: TOS 1.04 sources reconstructed

Post by Cyprian »

ThorstenOtto wrote: Mon Jan 17, 2022 8:54 am I've added now also binaries for win32 for the compiler tools. So using a decent shell, you can compile it now also on windows. The MSYS2 or cygwin environments can be used for that.
great.
I've just tried under Cygwin and I see following error under :

Code: Select all

$ make
for i in common tools bios vdi bdos aes desk system glue; do make -C $i COUNTRY=de TOSVERSION=104 all || exit 1; done
make[1]: Entering directory '/home/konadcyp/tos1x-master/common'
make[1]: Leaving directory '/home/konadcyp/tos1x-master/common'
make[1]: Entering directory '/home/konadcyp/tos1x-master/tools'
CC cmprom.c
LD cmprom
CC newglue.c
In file included from newglue.c:3:
../common/config.h:15:10: fatal error: localcnf.h: No such file or directory
   15 | #include "localcnf.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [../GNUmakefile.cmn:155: newglue.o] Error 1
make[1]: Leaving directory '/home/konadcyp/tos1x-master/tools'
make: *** [GNUmakefile:33: all] Error 1

Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.atari.org
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2367
Joined: Sun Aug 03, 2014 5:54 pm

Re: TOS 1.04 sources reconstructed

Post by ThorstenOtto »

Hm, strange, that file is supposed to be generated by the "touch" utility if it does not exist. Do you have that installed? It should normally be part of the coreutils package. As a workaround, you can just create an empty file common/localcnf.h The file is not really used when you want to create a binary exact image, only when you want to also include some patches.

Edit: you also need to install the "bc" package. This is a package which is unlikely to be already installed.
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 2721
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: TOS 1.04 sources reconstructed

Post by Cyprian »

Ive checked and I have installed "coreutils" 8.26-2

Interesting is that at the first time make complained about lack(?) of "bc". When I've installed it manually it has showed me that error.

I see that "touch" is installed:

Code: Select all

$ touch --help
Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.

A FILE argument that does not exist is created empty, unless -c or -h
is supplied.

A FILE argument string of - is handled specially and causes touch to
change the times of the file associated with standard output.

Mandatory arguments to long options are mandatory for short options too.
  -a                     change only the access time
  -c, --no-create        do not create any files
  -d, --date=STRING      parse STRING and use it instead of current time
  -f                     (ignored)
  -h, --no-dereference   affect each symbolic link instead of any referenced
                         file (useful only on systems that can change the
                         timestamps of a symlink)
  -m                     change only the modification time
  -r, --reference=FILE   use this file's times instead of current time
  -t STAMP               use [[CC]YY]MMDDhhmm[.ss] instead of current time
      --time=WORD        change the specified time:
                           WORD is access, atime, or use: equivalent to -a
                           WORD is modify or mtime: equivalent to -m
      --help     display this help and exit
      --version  output version information and exit

Note that the -d and -t options accept different time-date formats.

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report touch translation bugs to <http://translationproject.org/team/>
Full documentation at: <http://www.gnu.org/software/coreutils/touch>
or available locally via: info '(coreutils) touch invocation'
---EDIT---

now after "make clean" and "make" something was built

---EDIT2---
success. generated "tos104de.img" is exactly the same as the original "tos104de.img"

Thanks Thorsten
Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.atari.org
BlankVector
Atari Super Hero
Atari Super Hero
Posts: 573
Joined: Wed Oct 24, 2007 7:52 pm
Location: France
Contact:

Re: TOS 1.04 sources reconstructed

Post by BlankVector »

avtandil wrote: Mon Jan 17, 2022 11:02 am
ojanhk wrote: Sun Jan 16, 2022 4:29 pm To my knowledge there were no ST with SECAM. Actually, I’m not even sure version with modulator were sold here. By the time the ST was released, SCART connector with RVB was mandatory on all TV sets and all the French ST I’ve seen so far were PAL using the RVB out (there is no CVBS neither ).
BlankVector, what can you say about this ?
I agree with the above. I only know French STF and STE. Both are similar:
- only RGB output through SCART/Peritel
- no composite/CVBS. Hence no SECAM, and no PAL either. So it's impossible to record ST output with a standard VCR (unlike Super Nintendo for example which outputs both RGB and composite/PAL it its SCART/Peritel connector)
- no modulator for antenna output. French ST requires a TV or monitor with SCART/Peritel input.
Subscribe to my Vretrocomputing channel on YouTube and Facebook. Latest video: Disable the key click in assembly language on Atari ST.
avtandil
Captain Atari
Captain Atari
Posts: 155
Joined: Fri Jun 12, 2009 8:34 am
Location: St. Petersburg, RUSSIA
Contact:

Re: TOS 1.04 sources reconstructed

Post by avtandil »

Cyprian wrote: Mon Jan 17, 2022 8:10 pm Ive checked and I have installed "coreutils" 8.26-2

Interesting is that at the first time make complained about lack(?) of "bc". When I've installed it manually it has showed me that error.

I also installed bc manually.
Then I trying to make image and get following error:

C:/cygwin/bin/bc.exe: error while loading shared libraries: cygreadline6.dll: cannot open shared object file: No such file or directory

Any ideas?
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 2721
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: TOS 1.04 sources reconstructed

Post by Cyprian »

avtandil wrote: Mon Jan 24, 2022 3:13 am
C:/cygwin/bin/bc.exe: error while loading shared libraries: cygreadline6.dll: cannot open shared object file: No such file or directory

Any ideas?
I see a faq about that issue"
https://www.cygwin.com/faq.html#faq.using.missing-dlls
Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
Hatari / Steem SSE / Aranym / Saint
http://260ste.atari.org
User avatar
NonToXIC
Atari freak
Atari freak
Posts: 56
Joined: Tue Jun 13, 2006 3:16 pm

Re: TOS 1.04 sources reconstructed

Post by NonToXIC »

Wow, what a fantastic topic. Amazing work ThorstenOtto. I think I agree with ijor regarding the older versions - reversing 1.02 and 1.00 would be pretty useful in the long run.
520 STFM w/ 1 MB RAM and tons of floppies with Automation menus on them. What joy!
1040 STFM
SuperCard Pro
alanh
Hardware Guru
Hardware Guru
Posts: 1520
Joined: Mon Jul 24, 2006 9:01 pm
Location: North Wales, UK

Re: TOS 1.04 sources reconstructed

Post by alanh »

Trying to build tos306de with BINEXACT=0 and I get this....

make[1]: Entering directory '/Atari/tos2x/tos306de/bios'
AS startup.S
AS nvram.S
AS ikbdclk.S
AS chardev.S
& 1961: invalid opcode
& 1 errors
make[1]: *** [../GNUmakefile.cmn:147: chardev.o] Error 1

Anyone seen this before ?
Falcon CT60, Falcon CT63 x2, TT x3, MegaST x2, MegaSTE x2, STFM x2, STE x2, STacy, STBook, (Dead) Hades 060, Milan 060, T40.
ThorstenOtto
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2367
Joined: Sun Aug 03, 2014 5:54 pm

Re: TOS 1.04 sources reconstructed

Post by ThorstenOtto »

TOS 3.x is a different archive ;)

I cannot reproduce that currently. Maybe you should try downloading the current version again (http://tho-otto.de/download/tos306de.tar.bz2), possibly it is an old error which has already been fixed. If that does not help, try manually executing

Code: Select all

../bin/linux/cp68  -I../common -I../include -P  chardev.S chardev.i
to get a preprocessed file (the line number 1961 refers to this file, not the source). Then look at the offending line.
alanh
Hardware Guru
Hardware Guru
Posts: 1520
Joined: Mon Jul 24, 2006 9:01 pm
Location: North Wales, UK

Re: TOS 1.04 sources reconstructed

Post by alanh »

Perfect. Thanks. The new download did it.
Falcon CT60, Falcon CT63 x2, TT x3, MegaST x2, MegaSTE x2, STFM x2, STE x2, STacy, STBook, (Dead) Hades 060, Milan 060, T40.
Post Reply

Return to “Coding”