Welcome, Guest. Please login or register.

Author Topic: AfA OS in ROM?  (Read 3859 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline AndrewBell

  • Sr. Member
  • ****
  • Join Date: Jun 2007
  • Posts: 343
    • Show only replies by AndrewBell
Re: AfA OS in ROM?
« Reply #14 from previous page: October 22, 2007, 11:01:44 AM »
The Kickflash can be upgraded to 1GB if Jens ever gets off his backside and makes the expansion he promised.
________
VAPORIZER REVIEW
« Last Edit: February 16, 2011, 04:15:17 AM by AndrewBell »
Use the best: Linux for servers, Mac for graphics, Windows for Solitaire.
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: AfA OS in ROM?
« Reply #15 on: October 22, 2007, 01:03:30 PM »
I have asked Jens about the flash upgrade. I wonder how difficult it would be to make one?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline AndrewBell

  • Sr. Member
  • ****
  • Join Date: Jun 2007
  • Posts: 343
    • Show only replies by AndrewBell
Re: AfA OS in ROM?
« Reply #16 on: October 22, 2007, 01:47:59 PM »
Quote

motorollin wrote:
I have asked Jens about the flash upgrade. I wonder how difficult it would be to make one?

--
moto


That depends entirely on what he had in mind. It might just be an adapter for a CF card, or it might be more complicated.
________
Video review
« Last Edit: February 16, 2011, 04:16:11 AM by AndrewBell »
Use the best: Linux for servers, Mac for graphics, Windows for Solitaire.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: AfA OS in ROM?
« Reply #17 on: October 22, 2007, 02:44:44 PM »
I'm afraid you cannot compress resident modules with PowerPacker. The OS locates the residents by scanning for an ID inside the executable (RTF_MATCHWORD + ptr to self), and if compressed that ID cannot be found.

PowerPacker only supports packed libraries/devices if dos/LoadSeg is patched to decompress the compressed files on the fly. This also means that only disk based compression is supported.

To my knowledge Imploder has some level of support for "self contained" library/device crunching, but even with Imploded libraries/devices it is questionable if they'd work from within read only memory.
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: AfA OS in ROM?
« Reply #18 on: October 22, 2007, 03:08:19 PM »
Thanks Piru. I will give Imploder a try. I see your point about potential problems with using them in read only memory. I suppose the question is whether the KickFlash copies the files to Fast RAM before doing anything with them, or whether it patches something to use them directly from the KickFlash itself. I'll try it anyway.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: AfA OS in ROM?
« Reply #19 on: October 22, 2007, 03:56:05 PM »
According to the Imploder manual, pure programmes which are "normal" imploded (the exploding code is included in the executable, like PowerPacker), the programme is no longer pure. So that's no good.

It also says that pure programmes can be "library" imploded (the exploding code is held in exploder.library). If I library implode the AfA modules and write them, along with exploder.library, will exploder.library be resident, allowing the AfA modules to be exploded?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Doobrey

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: AfA OS in ROM?
« Reply #20 on: October 22, 2007, 05:49:53 PM »
I've just had a quick look at the afa 3.96 archive, and the only system lib to have a resident tag appears to be exec_lib.exe (and even that looks wrong, rt_EndSkip points back before the romtag).
 
On schedule, and suing
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: AfA OS in ROM?
« Reply #21 on: October 22, 2007, 07:14:57 PM »
What does that mean? There's no hope for inserting them in to the KickFlash?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Doobrey

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: AfA OS in ROM?
« Reply #22 on: October 22, 2007, 07:53:40 PM »
Without a resident tag (+init code) they'll just sit there taking up memory, exec won't be able to find them so the patches will never get executed. :-(
On schedule, and suing
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: AfA OS in ROM?
« Reply #23 on: October 22, 2007, 07:59:59 PM »
I see. I have fed that information in to my brain, and it has told me that this probably means that the resident tag makes the executable say "I'm here", and that exec then looks for resident tags to see who is there ready to be executed. Is my brain correct?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline Doobrey

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • Show only replies by Doobrey
    • http://www.doobreynet.co.uk
Re: AfA OS in ROM?
« Reply #24 on: October 22, 2007, 08:49:58 PM »
Yep, that's pretty much what it does.
It's just a structure that describes what the code is (device,library,resource etc), what version it is, if it should be automatically run (and its priority says when it should be run), and a name and ID string.

Chris Hodges describes it a lot better than I ever could in the docs to  Luciferin
On schedule, and suing
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: AfA OS in ROM?
« Reply #25 on: October 22, 2007, 08:51:23 PM »
Thanks for looking in to it. It's a real shame it won't work. Maybe in a future revision of AfA.

Cheers

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10