Texel sources available

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 968
Joined: Sun Aug 03, 2014 5:54 pm

Re: Texel sources available

Postby ThorstenOtto » Wed Mar 25, 2020 2:51 pm

vido wrote:Is such way possible to replace coldfire unfriendly asm commands?


I'm not sure whether i understand what you mean. Pure-C's pcstdlib.lib and PurePascals system.ppu are only available in binary form.

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

Re: Texel sources available

Postby mfro » Wed Mar 25, 2020 3:45 pm

vido wrote:
ThorstenOtto wrote:That pushes a byte on the stack, then pops a word. The 68k decreases the SP by 2 when pushing a byte on the stack, so this is essentially the same as shift left by 8. However, iirc this gives problems when run on coldfire. At least, for Pure-C, i'm using a patched version of pcstdlib.lib.

Just theoretical question Otto.
Is such way possible to replace coldfire unfriendly asm commands?


At least in theory, there is FreePascal which is more or less Delphi/Borland Pascal compatible (where Pure Pascal "inherited inheritance" from).
And - again, theoretically - there is an m68k port that is said to to support the v4e Coldfire.

As always, it just needs somebody with lots of sparetime, the knowledge and the passion ...

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 968
Joined: Sun Aug 03, 2014 5:54 pm

Re: Texel sources available

Postby ThorstenOtto » Wed Mar 25, 2020 4:45 pm

Code: Select all

The "tosunits" package is very minimal at this point, but it provides some AES, VDI, GEMDOS and XBIOS bindings. Based on these, it should be easy to add further bindings. The bindings were developed using the tos.hyp documentation, and various other bits of information available around the net. The still missing bindings should be very easy to add, using the existing ones as a template.
Naming differences

The bindings try to follow the established function names for OS functions. However, there are some differences compared to the C language, to avoid confusion caused by collisions in the global namespace. The most important are:

    All GEMDOS functions start with the prefix gemdos_. For example fwrite() becomes gemdos_fwrite().
    All XBIOS functions start with the prefix xbios_. For example random() becomes xbios_random().
    As a de-facto convention with Pascal, all type names are prefixed with T and all pointers to those types are prefixed with P. For example the AES MFORM structure is named TMFORM in Free Pascal, and a pointer to TMFORM is defined as PMFORM. Additionally, the AES OBJECT structure is named TAESOBJECT to avoid conflict with the TObject class type defined in the System unit.


That does not look very promising. "incomplete" here means that there barely exist any bindings, so you would have to implement most of them first. And different names means tons of changes to the sources. I think that would be a fulltime job for at least a few weeks, to only get you started. Not to speak about hunting down all the bugs, new and old ones...

PeterS
Captain Atari
Captain Atari
Posts: 281
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Texel sources available

Postby PeterS » Wed Mar 25, 2020 5:45 pm

gstoll wrote:
PeterS wrote:
PeterS wrote:Hmm good question. I can't remember.
I tried to repeat it but couldn't get it to happen again.
Previously I had been testing the behaviour with ctrl-insert and ctrl-shift-insert.

There was no file selector on the screen when it froze.

Now I am a bit confused. Did ist happen all time or only sometimes.


ThorstenOtto wrote:At least, for Pure-C, i'm using a patched version of pcstdlib.lib.

I patched my SYSTEM.PPU. We will see, when I make a new version.


It only happened once but it was my first time using the new version.

gstoll
Atari maniac
Atari maniac
Posts: 84
Joined: Sun Feb 17, 2008 4:29 pm

Re: Texel sources available

Postby gstoll » Fri Mar 27, 2020 8:53 am

New version from 26.03.2020

- More english translation
- Bubbel Help also in the english version
- Hypertext in german and english
You do not have the required permissions to view the files attached to this post.

marss
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 124
Joined: Thu Nov 07, 2002 12:29 pm

Re: Texel sources available

Postby marss » Fri Mar 27, 2020 9:28 am

Thanks

User avatar
tteclado
Atari freak
Atari freak
Posts: 59
Joined: Tue Jun 29, 2010 10:57 am

Re: Texel sources available

Postby tteclado » Fri Mar 27, 2020 10:45 am

:D thank you

PeterS
Captain Atari
Captain Atari
Posts: 281
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Texel sources available

Postby PeterS » Fri Mar 27, 2020 2:15 pm

I am one of those people who won't be working during the virus outbreak so I thought I might do a something useful.

I tried forking Texel and adding a small German->English language change via the Github website. I only changed one line but the Pull request is trying to change half of the file. I think this is due to a text encoding change.

Is this normal or did I do something wrong ?

Is it better to edit the file on the Atari and commit/push from there ?

8bitguy1
Retro freak
Retro freak
Posts: 15
Joined: Sat Feb 23, 2013 3:54 am

Re: Texel sources available

Postby 8bitguy1 » Fri Mar 27, 2020 2:31 pm

gstoll wrote:New version from 26.03.2020

- More english translation
- Bubbel Help also in the english version
- Hypertext in german and english



Thanks!

nagual
Captain Atari
Captain Atari
Posts: 410
Joined: Mon Sep 11, 2006 10:15 am
Location: Frankfurt am Main, Germany

Re: Texel sources available

Postby nagual » Fri Mar 27, 2020 6:07 pm

gstoll wrote:New version from 26.03.2020

- More english translation
- Bubbel Help also in the english version
- Hypertext in german and english


Thanks a lot :D

:cheers:

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 968
Joined: Sun Aug 03, 2014 5:54 pm

Re: Texel sources available

Postby ThorstenOtto » Sat Mar 28, 2020 4:29 am

PeterS wrote:Is this normal or did I do something wrong ?


Most files have CR/LF endings, maybe editing through the web interface changes that to just LF. I'm not sure about PurePascal, but in Pure-C, at least the editor does not like files with just LFs very much, so it is rather important to keep the line endings.

German umlauts may also give trouble when editing them in the web interface, which only supports utf-8

Is it better to edit the file on the Atari and commit/push from there ?


You can also edit it on any other host, as long as you are using an editor that keeps the line endings, or have some tool like dos2unix that can convert them back

User avatar
mpattonm
Hardware Guru
Hardware Guru
Posts: 477
Joined: Mon Oct 21, 2002 8:52 am
Location: Czech republic
Contact:

Re: Texel sources available

Postby mpattonm » Sat Mar 28, 2020 9:06 am

Thank you!

PeterS
Captain Atari
Captain Atari
Posts: 281
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Texel sources available

Postby PeterS » Sat Mar 28, 2020 9:56 am

ThorstenOtto wrote:
PeterS wrote:Is this normal or did I do something wrong ?


German umlauts may also give trouble when editing them in the web interface, which only supports utf-8

You can also edit it on any other host, as long as you are using an editor that keeps the line endings, or have some tool like dos2unix that can convert them back


I think it is the German characters that have caused the problem.

So I tried an edit from the atari but even though I pushed it to github it didn't appear. I hate git.

PeterS
Captain Atari
Captain Atari
Posts: 281
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Texel sources available

Postby PeterS » Sat Mar 28, 2020 11:05 am

I couldn't find a Lubuntu editor that supports different character encodings.

So I tried eclipse, it used to work on this box but won't start anymore and I lost the will to live after an hour of investigation.

Next I will try IntelliJ Community version.

PeterS
Captain Atari
Captain Atari
Posts: 281
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Texel sources available

Postby PeterS » Sat Mar 28, 2020 12:01 pm

More success with IntelliJ (which I prefer because I use it every day at work).

The question is, what character set to use ?

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 968
Joined: Sun Aug 03, 2014 5:54 pm

Re: Texel sources available

Postby ThorstenOtto » Sat Mar 28, 2020 12:23 pm

PeterS wrote:So I tried an edit from the atari but even though I pushed it to github it didn't appear. I hate git.


Do you have write access to the repo? If not, either ask gerhard about it, or create a fork and make a Pull-Request. In that case,you should be making your changes on a separate branch of your your local repo.

The question is, what character set to use ?


Thats another problem, there is maybe no editor that knows about the atari encoding. Best option may be DOS Codepage 437, but that is not perfect (eg the esszet has a different encoding).

gstoll
Atari maniac
Atari maniac
Posts: 84
Joined: Sun Feb 17, 2008 4:29 pm

Re: Texel sources available

Postby gstoll » Sat Mar 28, 2020 12:59 pm

ThorstenOtto wrote:I'm not sure about PurePascal, but in Pure-C, at least the editor does not like files with just LFs very much, so it is rather important to keep the line endings.

The editor form PP have no problem with LF, but the Compiler will not work.

PeterS
Captain Atari
Captain Atari
Posts: 281
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Texel sources available

Postby PeterS » Sat Mar 28, 2020 3:20 pm

I had all ready forked the repo and I am working on my own fork. The problems arose when I started the Pull-Request (very odd name) and it complained about half of the lines (German char encoding) then when I got around that it thinks all the line endings have changed.

Anyway I created the PR and it can be rejected if necessary.

ThorstenOtto
Atari Super Hero
Atari Super Hero
Posts: 968
Joined: Sun Aug 03, 2014 5:54 pm

Re: Texel sources available

Postby ThorstenOtto » Sat Mar 28, 2020 7:30 pm

PeterS wrote:I think it is the German characters that have caused the problem.


I think that are the line endings. If you hide whitespace changes by viewing https://github.com/pulsar122/texel/pull ... =split&w=1 there aren't that many differences anymore.

gstoll
Atari maniac
Atari maniac
Posts: 84
Joined: Sun Feb 17, 2008 4:29 pm

Re: Texel sources available

Postby gstoll » Sun Mar 29, 2020 7:19 am

PeterS wrote:The problems arose when I started the Pull-Request (very odd name) and it complained about half of the lines (German char encoding) then when I got around that it thinks all the line endings have changed.
Yes the line endings are changed. Sorry for me it make no sense to merge the PR.

I push a new version from ENGLISH.INC, with your changes and some more.

PeterS
Captain Atari
Captain Atari
Posts: 281
Joined: Fri Nov 09, 2007 1:53 pm
Location: England, GB

Re: Texel sources available

Postby PeterS » Sun Mar 29, 2020 8:21 am

No problem.

I am getting used to github at the same time. I've been using bitbucket and now Azure but not had encoding or eol issues.


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 4 guests