Search found 47 matches

by Count
Wed Sep 11, 2019 9:52 am
Forum: Coding
Topic: Looking for COBOL
Replies: 15
Views: 4286

Re: Looking for COBOL

I think you can use qed for editing. But you have to keep in mind that the columns of a line have certain meanings (1-6 = line number, asterisk in 7 = comment, indentation in data division etc).
by Count
Tue Sep 10, 2019 5:58 pm
Forum: Hardware
Topic: Retro Wifi SI - practical experiences
Replies: 5
Views: 1158

Re: Retro Wifi SI - practical experiences

The software sends CRLF. Every modem command (initialize, hook-off, dial, answer, hang-up) and response code (ok, ring, busy, no carrier) which are needed can be configured. But maybe the cable I am using is too long. I found two cables (each 2 metres long): male/male and female/female. So, i had do...
by Count
Mon Sep 09, 2019 6:29 pm
Forum: Hardware
Topic: Retro Wifi SI - practical experiences
Replies: 5
Views: 1158

Re: Retro Wifi SI - practical experiences

According to the documentation, RI and DCD should be. But I cannot confirm that by now.
by Count
Mon Sep 09, 2019 6:06 pm
Forum: Hardware
Topic: Retro Wifi SI - practical experiences
Replies: 5
Views: 1158

Re: Retro Wifi SI - practical experiences

Next, the "modem" seems to ignore the DTR line. The BBS software clears DTR to force hanging up. That worked pretty well with real modems 30 years ago. I found a workaround for that issue: 1. clear DTR 2. wait two seconds 3. send "+++" to enter command mode 4. wait one second 5....
by Count
Sat Sep 07, 2019 7:36 pm
Forum: Hardware
Topic: Retro Wifi SI - practical experiences
Replies: 5
Views: 1158

Retro Wifi SI - practical experiences

I recently bought this piece of hardware: https://www.simulant.uk/shop/retro-vintage-computer-wifi-modem-rs232-serial-hayes-compatible After receiving the parcel last Thursday, I connected it to the Modem1 port of my Mega STE and ran Uniterm for the setup and first calls to several Telnet BBSes. The...
by Count
Sat Aug 24, 2019 8:49 am
Forum: Other emulators & tools
Topic: Shutting down Aranym from within TOS?
Replies: 4
Views: 2467

Re: Shutting down Aranym from within TOS?

... you can always write a small tool that queries the Native Feature NF_SHUTDOWN, and calls it. It works! Thank you. 8) #include <osbind.h> #include <mint/cookie.h> #define MAGIC 0x20021021 typedef struct { long magic; long (*get_id)(const char *name); long (*call)(long id, ...); } NFDATA; static ...
by Count
Fri Aug 23, 2019 6:24 pm
Forum: Other emulators & tools
Topic: Shutting down Aranym from within TOS?
Replies: 4
Views: 2467

Shutting down Aranym from within TOS?

Aranym can be shut down from MiNT applications using GEMDOS' Shutdown(). Unfortunately this function is MiNT-specific, but is there a similar way when running plain TOS 4.04?

https://freemint.github.io/tos.hyp/de/g ... l#Shutdown
by Count
Fri Jul 26, 2019 5:58 pm
Forum: C / PASCAL etc.
Topic: How can Pure C do that?
Replies: 13
Views: 3618

Re: How can Pure C do that?

As usual, you should trust christian: :D I will always keep that in mind. :lol: T0000D6: CMP.L #$FFFFFFDC,D1 <-- -36 = access denied I guess that's a library bug. At least in the version that Thorsten disassembled. The return value from Fwrite() is in D0, not in D1. Maybe for some TOS versions it's...
by Count
Fri Jul 26, 2019 5:46 pm
Forum: C / PASCAL etc.
Topic: How can Pure C do that?
Replies: 13
Views: 3618

Re: How can Pure C do that?

I assume you mean f stat()? I'm not really keen on analyzing the Pure C library further. But the question is: Does it recognize that, though? I mean, in your little program you don't zero the stat buffer. It could very well be that fstat() does not modify st_dev at all and that it's left over from ...
by Count
Fri Jul 26, 2019 5:08 pm
Forum: C / PASCAL etc.
Topic: How can Pure C do that?
Replies: 13
Views: 3618

Re: How can Pure C do that?

And another question remains unanswered: How does stat() recognize that the file is located on drive C? By using Dgetdrv() i guess, if the path does contain a drive letter. And how does fstat() do that? :roll: Dgetdrv() will not return the correct value as the working directory is on drive F while ...
by Count
Fri Jul 26, 2019 4:50 pm
Forum: C / PASCAL etc.
Topic: How can Pure C do that?
Replies: 13
Views: 3618

Re: How can Pure C do that?

Maybe there are different versions of PCEXTLIB.LIB? I attached mine to this post. This is my test program: #include <stdio.h> #include <string.h> #include <ext.h> #include <tos.h> int main() { static const char* files[] = { "C:\\XCONTROL.ACC", /* not write-protected file */ "C:\\READO...
by Count
Fri Jul 26, 2019 11:31 am
Forum: C / PASCAL etc.
Topic: How can Pure C do that?
Replies: 13
Views: 3618

Re: How can Pure C do that?

Oh, you are right. st_mode is 0x8180 which means regular file, user read and write permission. However, the Pure C help and the comment in ext.h suggested me that the field contains TOS file attributes.

But my testings suggest that stat() checks for write access while fstat() always sets that bit.
by Count
Thu Jul 25, 2019 4:53 pm
Forum: C / PASCAL etc.
Topic: How can Pure C do that?
Replies: 13
Views: 3618

How can Pure C do that?

In it's header file ext.h Pure C offers several functions, two of them are stat() and fstat() which deliver some information about a file, such as the drive on which the file is located, it's attributes and time of last modification. While stat() is called with the file path as argument, fstat() is ...
by Count
Sat Jul 20, 2019 4:02 pm
Forum: Other emulators & tools
Topic: BeePi 1.0
Replies: 95
Views: 46976

Re: BeePi 1.0

Philippe, you are right. The alternative RAM size was the problem. I reduced it to 128 MB and the Pi bootet into Teradesk. But I think, the model 1B is way to weak for BeePi. Even setting up wifi was horrible and the speed isn't really funny. Apart from that the Aranym sometimes refused starting lea...
by Count
Fri Jul 19, 2019 6:54 pm
Forum: Other emulators & tools
Topic: BeePi 1.0
Replies: 95
Views: 46976

Re: BeePi 1.0

Today I gave BeePi several tries on my Pi 1B Rev. 2 with 512 MB RAM, but it won't 2nd boot to the Green Desktop. I always end up at the login prompt which leads me to bash. Switching to autologin mode doesn't work either as I see "login: --noclear (automatic login)" but no login happens. I...
by Count
Fri May 10, 2019 12:29 pm
Forum: Coding
Topic: Switching between low and medium resolution really not possible?
Replies: 5
Views: 3549

Re: Switching between low and medium resolution really not possible?

joska wrote:Which programming language are you using?

C99
by Count
Thu May 09, 2019 11:03 am
Forum: Coding
Topic: Switching between low and medium resolution really not possible?
Replies: 5
Views: 3549

Re: Switching between low and medium resolution really not possible?

Thank you for your comments. Maybe I will play around with the Line-A variables. Writing an own GUI is no option for me as I want to use OS functionality as much as possible.
by Count
Wed May 08, 2019 6:19 pm
Forum: Coding
Topic: Switching between low and medium resolution really not possible?
Replies: 5
Views: 3549

Switching between low and medium resolution really not possible?

As everybody knows, in ST colour mode you can switch between low and medium resolution from desktop without rebooting. Is it really impossible to do so within a GEM application? Is there no way to let VDI and AES reinitialize and get the information about the changed environment? Alternative desktop...
by Count
Sat Nov 24, 2018 3:54 pm
Forum: Coding
Topic: GEMDOS console functions and termination upon ctrl c
Replies: 8
Views: 4458

Re: GEMDOS console functions and termination upon ctrl c

As a general rule you should not use BIOS functions when writing a GEMDOS program. That was my intention to ask this question. But if there is no chance to disable that by setting a bit in a system variable or something like that, I will switch over to BIOS functions. The RAWCON device is no option...
by Count
Fri Nov 23, 2018 10:29 am
Forum: Coding
Topic: GEMDOS console functions and termination upon ctrl c
Replies: 8
Views: 4458

GEMDOS console functions and termination upon ctrl c

As you may know, the GEMDOS console functions like Cconout, Cconin etc. lead to program termination when ctrl c is pressed. Same with mintlib's standard io functions, which use Fwrite and Fread.

Is there any way to disable this behaviour (plain TOS)?
by Count
Tue Jul 31, 2018 2:27 pm
Forum: Coding
Topic: How to easily close all open accessories
Replies: 3
Views: 2355

Re: How to easily close all open accessories

I found a solution in the Teradesk source code.
Teradesk simply closes all open windows.
by Count
Sat Jul 28, 2018 6:17 pm
Forum: Coding
Topic: How to easily close all open accessories
Replies: 3
Views: 2355

How to easily close all open accessories

Hi everyone, how can I send an AC_CLOSE message to all open desk accessories? I want to do that in my application at the point when it executes another program. The Atari desktop does so before starting a program and e.g. the Gemini desktop does so, too. We are not talking about multitask environmen...

Go to advanced search