While trying to use Hatari to debug Hextracker, i found out that i can not use MONST from Devpac 1.24.
Here is what i do:
- I launch MONST.PRG;
- The program waits for a filename as input;
- The program tries to load the code file and fails despite the file exists;
I tried with several file names, upper and lower cases to check for a case sensitive error, but it does not work.
I get TOS ERROR 1 like if the file does not exist.
ljbk wrote:I was using Hatari 1.62 with Windows Vista 64 bit, TOS 2.06 and 14MB STE.
The best is to provide you with the files:
- MONST.PRG the debugger;
- 5060HZ.PRG a small program that should be loaded and that is not;
Eero Tamminen wrote:MONST is buggy, it doesn't remove CR from end of the file name it inputted. I.e. the file extension given for Fopen() is too long and contains character that is illegal for a GEMDOS file name (according to Compedium).
However, all TOS versions, including EmuTOS, seem to handle that fine.
To make Hatari GEMDOS emulation more accurate, I would need to know what TOS does, does it:
- cut the extension to 3 characters
- filter illegal characters from the filename and if yes, does it do that only from the end
ljbk wrote:That MONST for sure is not perfect, especially because it is version 1.2x and not 3.x.
But from the user point of view (emulation point of view), there is a clear behaviour difference between the real machine and Hatari.
ljbk wrote:I have no idea what TOS does to unexpected lengths, characters, extensions lengths or strings in general it will use for fopen or for any other file function. I would have to look inside TOS as anyone can. You can go to address 0x00000084 where you can find the trap #1 vector. GEMDOS fopen receives as parameters in the stack 0x003D (function number), the classic pointer_to_file_name (.l) and an attribute (read, append, write, ...) (.w). With this, you can dissassemble a small part of the TOS and check it.
ljbk wrote:Nice to have contributed to a better Hatari !
Thanks for the update.
Users browsing this forum: No registered users and 4 guests