Re: [hatari-devel] asm56000.ttp problem

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 10/1/18 9:31 PM, Eero Tamminen wrote:
Floppy image:
----------------------------------
GEMDOS 0x3F Fread(6, 1024, 0x5229a) at PC 0x488A4
GEMDOS 0x19 Dgetdrv() at PC 0x4A18C
GEMDOS 0x47 Dgetpath(0x51d50, 0) at PC 0x4A1AC
GEMDOS 0x43 Fattrib("A:\DECODER.CLD", 0, 0x0) at PC 0x48356
GEMDOS 0x3C Fcreate("A:\DECODER.CLD", 0x0) at PC 0x483B6
GEMDOS 0x42 Fseek(0, 7, 1) at PC 0x48100
GEMDOS 0x42 Fseek(1, 7, 0) at PC 0x48116
GEMDOS 0x42 Fseek(0, 7, 0) at PC 0x48142
GEMDOS 0x19 Dgetdrv() at PC 0x4A18C
GEMDOS 0x47 Dgetpath(0x51d74, 0) at PC 0x4A1AC
GEMDOS 0x3D Fopen("A:\DECODER.ASM", read-only) at PC=0x4833A
----------------------------------

GEMDOS HD:
----------------------------------
GEMDOS 0x3F Fread(64, 1024, 0x5229a) at PC 0x488A4
GEMDOS 0x19 Dgetdrv() at PC 0x4A18C
GEMDOS 0x47 Dgetpath(0x51d74, 0) at PC 0x4A1AC
GEMDOS 0x3D Fopen("C:", read-only) at PC=0x4833A
GEMDOS 0x42 Fseek(0, 65, 1) at PC 0x48100
GEMDOS 0x42 Fseek(1, 65, 0) at PC 0x48116
GEMDOS 0x42 Fseek(0, 65, 0) at PC 0x48142
GEMDOS 0x0B Cconis() at PC 0x47CDC
----------------------------------

56000.ttp opens "C:" (or "C:\") with GEMDOS HD, but with
floppy image, it creates "A:\DECODER.CLD" instead, as it
should.

This happens only if asm56000.ttp is launched from
DESKTOP.INF and its arguments are pushed to program
basepage (which has worked fine for many other programs).

If one runs asm56000.ttp manually from GEM desktop and
gives the arguments to TTP dialog, then Fopen() is for
"EQUATES.ASM" file.

If one runs things through Tomshell, "DECODER.ASM" is
Fopen()ed instead, same as with floppy image.

In all cases with GEMDOS HD its missing creation of
"DECIDER.CLD", and does Pterm(-1) quick afterwards.


I even started to wonder whether Pexec() native assembly
implementation in Hatari cartridge code could be causing
some issues, as I've checked nearly everything else...

Program doesn't seem to have any relocation data though
(after I stripped it):
--------------------------
$ gst2ascii mp2_inc/test/asm56000.ttp
Reading symbols from program 'asm56000.ttp' symbol table...
TOS executable, DRI / GST symbol table, reloc=0, program flags: PRIVATE (0x0)
Program section sizes:
- text: 247456
- data: 12868
- bss:  5298
--------------------------


	- Eero

PS. asm56000.ttp startup does one Fforce() call, but
it's just:
  GEMDOS 0x46 Fforce(2, 65535) at PC 0x59C84

I.e. mapping GSH_AUX (serial) to GSH_BIOSCON (console),
which is handled by TOS, not GEMDOS HD.  After that
there's some polling to see whether AUX has any input.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/