Search found 145 matches

by tcat
Wed Nov 13, 2019 7:53 am
Forum: C / PASCAL etc.
Topic: english MM2 modula-2 ???
Replies: 6
Views: 4844

Re: english MM2 modula-2 ???

Hi Charles,

Yes, rather belatedly. In the summer I was toying with FPU daughter board under MM2, when I come across your post.

Many thanks
Tomas
by tcat
Mon Nov 11, 2019 2:17 pm
Forum: C / PASCAL etc.
Topic: english MM2 modula-2 ???
Replies: 6
Views: 4844

Re: english MM2 modula-2 ???

Hi Charles,

I had trouble recompiling the main program due to a conflict with corrupt modules and incomplete modules


Which modules?
I wish to have a look and try.

Many thanks
Tomas
by tcat
Fri Oct 25, 2019 3:43 pm
Forum: 680x0
Topic: FPU Cookie TOS 1.04
Replies: 10
Views: 2986

Re: FPU Cookie TOS 1.04

Hi, Thinking further, it seems better to specify SFP004 cookie by _fpu_id: .DC.l "_FPU" _fpu: .DC.l $00010000 ; fpu cookie entry, SFP004 compatible Upper word value $0005, probably means SFP004 card + extra MC68881 copro, so does not seem correct for my setup, right? Tomas
by tcat
Thu Oct 24, 2019 5:51 pm
Forum: C / PASCAL etc.
Topic: Cbzone / Lattice-C project
Replies: 7
Views: 2479

Re: Cbzone / Lattice-C project

Hi, Another observation, when comparing *.O object files between projects w/ and w/o FPU, shows difference only in `COOKIES.O' and C_`PARSEO.O'. Naturally different math libs are pulled by the linker, the FPU version results in smaller executable size. -rw-r--r-- 1 pi pi 74156 Oct 24 18:13 CBZ0FPU.P...
by tcat
Thu Oct 24, 2019 1:01 pm
Forum: C / PASCAL etc.
Topic: Cbzone / Lattice-C project
Replies: 7
Views: 2479

Re: Cbzone / Lattice-C project

Hi Otto, Line-F opcodes for internal use by DESKTOP/AES Yes, TOS 1.04, but LC compile option was I/O 68881, not F-Line 68881. Also as far as i know Hatari does not emulate a memory-mapped SFP004, so there is no point in installing a cookie for its presence. When compiling `COOKIE.C' it complained th...
by tcat
Thu Oct 24, 2019 12:54 pm
Forum: C / PASCAL etc.
Topic: Cbzone / Lattice-C project
Replies: 7
Views: 2479

Re: Cbzone / Lattice-C project

Hi neanderthal, Yes most likely, but still FPU ver plays some 10x faster, is generally playable. I would expect perhaps it could play even faster as `GEM-BENCH' gives 1400%. I wonder if LC code could be tinkered to skip FPU detection at all and just rely on the user, to launch the appropriate PRG. B...
by tcat
Thu Oct 24, 2019 12:11 pm
Forum: C / PASCAL etc.
Topic: Cbzone / Lattice-C project
Replies: 7
Views: 2479

Re: Cbzone / Lattice-C project

Hi, Testing on real ST machine 68000+68881... `CBZ0NFP.PRG' - no FPU, plays slow, but plays, this build works, good `CBZ0FPU.PRG' - FPU, it plays say 10x faster to the ver above `CBZ0FPU.PRG' - was built on HATARI with FPU cookie installed, but with no MC68881. EDIT It only runs with no FPU cookie i...
by tcat
Wed Oct 23, 2019 9:52 pm
Forum: C / PASCAL etc.
Topic: Cbzone / Lattice-C project
Replies: 7
Views: 2479

Re: Cbzone / Lattice-C project

Hi, Resolved by changing to `#include "c_includ.h"' in all files. Actually I am trying to rebuild this game from the sources. http://www.atarimania.com/game-atari-st-cbzone_31637.html It is `Battle Zone' a.k.a. `Combat Zone' originates in FORTRAN ported by the author (Roland Givan) to GCC/...
by tcat
Wed Oct 23, 2019 6:23 pm
Forum: C / PASCAL etc.
Topic: Cbzone / Lattice-C project
Replies: 7
Views: 2479

Cbzone / Lattice-C project

Hi,

Trying to recompile an existing LC-560 project, I have problems including files, referenced in the source.
E.G.

Code: Select all

#include "c_includes.h"
while the real file on the disk is `C_INCLUD.H'

How to set the LC environment to truncate file names to 8 chars?

Many thanks
Tomas
by tcat
Tue Oct 22, 2019 2:23 pm
Forum: 680x0
Topic: FPU Cookie TOS 1.04
Replies: 10
Views: 2986

Re: FPU Cookie TOS 1.04

Hi,

Just a single cookie under TOS 1.04, no list so far, program and the source for testing attached.

cookie.png

COOKIE.zip


Tomas
by tcat
Tue Oct 22, 2019 7:04 am
Forum: 680x0
Topic: FPU Cookie TOS 1.04
Replies: 10
Views: 2986

Re: FPU Cookie TOS 1.04

Hi Otto, movea.l sp,a5 movea.l 4(a5),a5 ; a5 points to base page lea residentend(pc),a0 sub.l a5,a0 ; resident size in mem Recoded as per your suggestion, I just print out resident size kept in mem, it says $0112, so it may be just about right. Many thanks Tomas
by tcat
Mon Oct 21, 2019 2:24 pm
Forum: 680x0
Topic: FPU Cookie TOS 1.04
Replies: 10
Views: 2986

Re: FPU Cookie TOS 1.04

Strictly speaking, basepage size alone would probably be enough if you'd relocate the cookie into its p_cmdline field (128th byte onwards). Interesting, will try as well. As the cookie is placed right at the code start, how about base page $100 bytes + cookie 16 bytes (4 longs) + BRA.S from the cod...
by tcat
Mon Oct 21, 2019 12:51 pm
Forum: 680x0
Topic: FPU Cookie TOS 1.04
Replies: 10
Views: 2986

Re: FPU Cookie TOS 1.04

Hi Cyprian, All very good points, here is corrected source, I now skip init user stack+heap part, as I thought is not needed when calling `Ptermres' afterwards. I set $180 bytes aside to keep from base page to make it work. I have thought that 18 bytes is enough for a single cookie + BRA.S from code...
by tcat
Mon Oct 21, 2019 12:09 pm
Forum: 680x0
Topic: FPU Cookie TOS 1.04
Replies: 1
Views: 1661

Re: FPU Cookie TOS 1.04

Otto,
Many thanks for your advice, correcting my code now..
PS.: could you please remove the other duplicate posts

Cannot do that, asked admin.
by tcat
Mon Oct 21, 2019 11:12 am
Forum: 680x0
Topic: FPU Cookie TOS 1.04
Replies: 10
Views: 2986

FPU Cookie TOS 1.04

Hi, I am trying to install `_FPU' cookie under TOS 1.04. I have coded this snippet, running SYSINFO, reports `0' cookies installed. I need help in finding what I do wrong or misunderstood. ; --------------------------- ; ATARI SP004 COOKIE ; --------------------------- ; Version 21 Oct 2019 [tcat] ;...
by tcat
Wed Oct 16, 2019 2:20 pm
Forum: 680x0
Topic: DIY FPU Dev Kit - SFP004
Replies: 2
Views: 2097

Re: DIY FPU Dev Kit - SFP004

Hi, I have found two typos in the `MACR881A.S' fpu macro code, changes as per diff below. I have not tested them all yet. $ diff MACR881A.S save/MACR881A.S 685c685 < BNE\! \2 ;BRANCH IF CONDITION TRUE! --- > BNE\! \1 ;BRANCH IF CONDITION TRUE! 771c771 < MOVEQ #\1+\2+\3+\4+\5+\6+\7+\8-1,D3 --- > MOVE...
by tcat
Wed Oct 16, 2019 10:54 am
Forum: C / PASCAL etc.
Topic: MEGAMAX MODULA-2 SFP004 support
Replies: 7
Views: 2025

Re: MEGAMAX MODULA-2 SFP004 support

Hi, I was curious what benefit can FPU offer over CPU. I have run this simple test. MODULE FpuTest; (*$E MOS*) (*$F+*) FROM InOut IMPORT WriteReal, WriteCard, WriteLn; FROM MOSGlobals IMPORT Time; FROM Clock IMPORT CurrentTime; FROM MathLib0 IMPORT pi,sin,cos,sincos; PROCEDURE Secs(): CARDINAL; VAR ...
by tcat
Wed Oct 16, 2019 7:25 am
Forum: C / PASCAL etc.
Topic: MEGAMAX MODULA-2 SFP004 support
Replies: 7
Views: 2025

Re: MEGAMAX MODULA-2 SFP004 support

Hi, With $F+ in MOSConfig I can now link the executable, but I do not seem able to write any real output with InOut.WriteReal(), I am getting an exception. EDIT it now works, as InOut depends on Convert, that has to be also FPU aware $F+. These modules are a must to provide in linking for FPU math a...
by tcat
Tue Oct 15, 2019 8:42 pm
Forum: C / PASCAL etc.
Topic: MEGAMAX MODULA-2 SFP004 support
Replies: 7
Views: 2025

Re: MEGAMAX MODULA-2 SFP004 support

Hi czietz, Yes you are right, now looking into the zipped archive I can see, 8038 1994-01-21 20:38 MM2_DEV/CA/TT_FPU/RUNTIME.IMP 552 1994-01-21 20:38 MM2_DEV/CA/TT_FPU/RANDOMGE.IMP 754 1994-01-21 20:38 MM2_DEV/CA/TT_FPU/MOSCONFI.IMP 1100 1994-01-21 20:38 MM2_DEV/CA/TT_FPU/MATHLIB0.IMP 385 1992-02-05...
by tcat
Tue Oct 15, 2019 8:25 pm
Forum: C / PASCAL etc.
Topic: MEGAMAX MODULA-2 SFP004 support
Replies: 7
Views: 2025

Re: MEGAMAX MODULA-2 SFP004 support

Hi czietz,

Thanks for taking your interest, in my `ST_FPU' folder I can only see,
MATHLIB0 IMP
RANDOMGE IMP
RUNTIME IMP

No other modules, also searching for MOSCONFI.IMP does not find the $F+ specific one here.
And there is, MOSCONFI.M source module with $F- option only.

Tomas
by tcat
Tue Oct 15, 2019 7:08 pm
Forum: C / PASCAL etc.
Topic: MEGAMAX MODULA-2 SFP004 support
Replies: 7
Views: 2025

MEGAMAX MODULA-2 SFP004 support

Hi, I am testing FPU support in MM2. Reading manual gives F-directive as an `FPU turn on option'. I can compile a sample test module, see below. I cannot however link the executable. MODULE FpuTest; (*$F+ turns FPU ON*) FROM InOut IMPORT WriteReal, WriteLn; FROM MathLib0 IMPORT pi,sin,cos,sincos; PR...
by tcat
Thu Oct 03, 2019 3:59 pm
Forum: 680x0
Topic: DIY FPU Dev Kit - SFP004
Replies: 2
Views: 2097

Re: DIY FPU Dev Kit - SFP004

Hi, Ad [a], I have recoded inline macros based on AN947, it works with ATARI `MadMac' assembler. Will also test with `GFA-Assembler'. Here it is attached in zip, the source is tabulated to take up less space on disk. MACR881A.zip I have coded a simple test, will add full source after tidying it up a...
by tcat
Thu Oct 03, 2019 3:06 pm
Forum: 680x0
Topic: DIY FPU Dev Kit - SFP004
Replies: 2
Views: 2097

DIY FPU Dev Kit - SFP004

Hi, I am now testing FPU daugther board (http://www.atari-forum.com/viewtopic.php?f=15&t=33042) on STFM machine, with some efforts to provide `FPU Dev Kit', sort of. For your interest, I shall gladly share here, possibly to collect some feedback in return. This what I intend to get done: [a] Inl...
by tcat
Thu Oct 03, 2019 3:05 pm
Forum: Hardware
Topic: DIY FPU Dev Kit - SFP004
Replies: 2
Views: 1670

Re: DIY FPU Dev Kit - SFP004

Hi,

I will move the post to `Coding' section ...

Tomas
by tcat
Thu Oct 03, 2019 3:04 pm
Forum: Hardware
Topic: DIY FPU Dev Kit - SFP004
Replies: 2
Views: 1670

Re: DIY FPU Dev Kit - SFP004

Hi,

I will move the post to S/W section ...

Tomas

Go to advanced search