31 August 2018, 09:05 | #21 |
Registered User
Join Date: Sep 2015
Location: Germany
Posts: 256
|
Good work, alkis. So the patching could have done with SetFunction(). Just a short own header-routine to change the memory request passed over in D1 and then run the original AllocMem() function. This patch could be removed easily by resetting the LVO to the original routine.
|
31 August 2018, 09:08 | #22 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,323
|
Quote:
For altering the executable's header with a chipmem flag, it's not as complicated as it looks. Get number of hunks at +8. Each one has a size longword, they start at +$14. Replace first byte (which is $00) with $40 and you're done. Usually old intros will be single hunk and don't perform allocmems so that's a single byte to change. Don't use a tank to go shopping . |
|
31 August 2018, 09:14 | #23 |
Registered User
Join Date: Sep 2015
Location: Germany
Posts: 256
|
So, I guess, I've got a solution for my case. I tend to use the second code I posted. If it isn't enough, I will patch AllocMem(). Modifying hunks is too complex for me at the moment, but I will keep this in mind.
Thanks everyone for your good ideas and hints. As usual, I've learned something. |
31 August 2018, 09:20 | #24 | |
Registered User
Join Date: Sep 2015
Location: Germany
Posts: 256
|
Quote:
|
|
31 August 2018, 09:42 | #25 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
If you use LoadSeg() and want to make this more complex and more interesting: use InternalLoadSeg(), it uses caller defined alloc/free functions..
Quote:
Memory allocator scans nodes one by one until it finds entry that succeeds in memory allocation. It does not care about priority field. Last edited by Toni Wilen; 31 August 2018 at 09:53. Reason: Enqueue, not Insert |
|
31 August 2018, 09:49 | #26 | |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
|
Quote:
So why not just Remove() memory with FASTRAM attributes from the MemList? |
|
31 August 2018, 09:54 | #27 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Quote:
Quote:
|
||
31 August 2018, 10:21 | #28 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
|
31 August 2018, 10:24 | #29 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 1,993
|
Meh, me and my lame quick thread scan skills. And you're right of course about the crash. Mem header not found.
|
31 August 2018, 10:57 | #30 | |
Registered User
Join Date: Oct 2014
Location: Berlin
Posts: 131
|
Quote:
It was part of assemblers/compilers in these good old days . If you need, i can look for it. Cheers |
|
31 August 2018, 19:40 | #31 | |
Registered User
Join Date: Sep 2015
Location: Germany
Posts: 256
|
Quote:
This is really interesting and confirms the system's list handling. Every node points to its predecessor and successor. So to insert a node at the head of the list, AddHead() could be used. Or AddTail() to append a note to the tail of the list I guess. |
|
31 August 2018, 19:44 | #32 |
Registered User
Join Date: Sep 2015
Location: Germany
Posts: 256
|
|
31 August 2018, 20:48 | #33 | |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 1,959
|
Quote:
Ok. perhaps it was Amplifier version for EaglePlayer 2. For save chip ram. If FastLoading in EP2 was enabled. Last edited by Don_Adan; 31 August 2018 at 20:55. Reason: Update |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinUAE 3.2.1. memory dump for fake fast memory areas broken | StingRay | support.WinUAE | 1 | 14 December 2015 20:39 |
A1200 Loses Fast Memory | Amicol | Amiga scene | 24 | 23 February 2014 17:49 |
Adding more then 8 MB of Fast Memory in WINUAE? | Kenan | support.WinUAE | 3 | 16 June 2013 19:20 |
Use of 4MB PCMCIA Fast Flash Memory as Fast RAM in A1200 | nkarytia | support.Hardware | 10 | 16 September 2011 13:37 |
Max Fast Memory In WinUAE | CodyJarrett | support.WinUAE | 11 | 19 April 2002 21:18 |
|
|