Re: [hatari-devel] GEMDOS HD emulation, Hatari cartridge program load code and TT-RAM

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


Hi,

On sunnuntai 19 huhtikuu 2015, Thomas Huth wrote:
> I've just had a try and changed the cartridge code to support Pexec7,
> too. Since I'm very short in time, I just did some quick regression
> testing that normal (ST memory) program loading still works fine
> (so there might even be new bugs in rare cases now - sorry!).
> Could you please have a try whether TT memory loading now also works as
> expected? Thanks!

On initial testing it seems to work.

Profiled OpenTTD code is now be executing in TT-RAM:
-----------------------------------
Normal RAM (0-0x400000):
- no activity

ROM TOS (0xE00000-0xE80000):
- active address range:
  0xe00c04-0xe35754
- active instruction addresses:
  876 (1.93% of all)
- executed instructions:
  2044644 (1.44% of all)
- used cycles:
  26178072 (2.71% of all)
  = 1.63180s

Cartridge ROM (0xFA0000-FC0000):
- active address range:
  0xfa002a-0xfa0036
- active instruction addresses:
  6 (0.01% of all)
- executed instructions:
  357607 (0.25% of all)
- used cycles:
  3590432 (0.37% of all)
  = 0.22381s

TT-RAM (0x1000000-5000000):
- active address range:
  0x100fc54-0x14f4a1c
- active instruction addresses:
  44441 (98.05% of all)
- executed instructions:
  139260109 (98.30% of all)
- used cycles:
  934610484 (96.91% of all)
  = 58.25843s
-----------------------------------

Basepage tells same:
-----------------------
> info basepage 
Process basepage (0x100fa00) information:
- TPA start      : 0x100fa00
- TPA end +1     : 0x5000000
- Text segment   : 0x100fb00
- Text size      : 0x4e5678
- Data segment   : 0x14f5178
- Data size      : 0xbec8
- BSS segment    : 0x1501040
- BSS size       : 0x3dec30
- Process DTA    : 0x100fa80
- Parent basepage: 0x1000070
- Environment    : 0x100f990
- Command argslen: 33
-----------------------

So does its parent:
-----------------------
Process basepage (0x1000070) information:
- TPA start      : 0x1000070
- TPA end +1     : 0x10001f0
- Text segment   : 0xe1f4c8
- Text size      : 0x0
- Data segment   : 0x000000
- Data size      : 0x0
- BSS segment    : 0x000000
- BSS size       : 0x0
- Process DTA    : 0x00f804
- Parent basepage: 0x00fb74
- Environment    : 0x1000000
- Command argslen: 0
-----------------------

Parent of that is finally in ST-RAM:
-----------------------
Process basepage (0xfb74) information:
- TPA start      : 0x00fb74
- TPA end +1     : 0x3e0b00
- Text segment   : 0xe1f38a
- Text size      : 0x0
- Data segment   : 0x000000
- Data size      : 0x0
- BSS segment    : 0x000000
- BSS size       : 0x0
- Process DTA    : 0x00fbf4
- Parent basepage: 0x00fa04
- Environment    : 0x00fb04
'PATH='
'C:\'
- Command argslen: 0
-----------------------



	- Eero



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