07 October 2018, 19:40 | #1 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
Share same resource over multiple executables
Suppose I want to use same binary (let's say a sprite ,blob , or mod data) across several executables in order to save a lot of space.
(For instance I'd want to use same sprite on different demo that should fit on one disk) How can I do this using ASM one? |
07 October 2018, 21:36 | #2 | |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,437
|
Quote:
The former means either using the OS or a custom (track) loader to load in the required data. The latter can be achieved using the INCBIN directive. Note that INCBIN doesn't save any diskspace other than in your programming environment, the data will still be assembled into the final result every time it's used. For example: Code:
really_cool_sprite INCBIN "sprite.raw" |
|
07 October 2018, 22:22 | #3 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
I meant the first case, I already know about incbin directive
|
07 October 2018, 23:41 | #4 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,437
|
In that case, it depends. If you're using the OS, it's not too difficult to load in additional data. See the links below for more information on opening/closing files and reading data.
Open: http://amigadev.elowar.com/read/ADCD.../node02D6.html Read: http://amigadev.elowar.com/read/ADCD.../node02E0.html Close: http://amigadev.elowar.com/read/ADCD.../node028A.html If you wish to use a trackloader & kill the OS, there are several floating around. Personally, I've been using the one from the Solid Gold source code with good results (note that this trackloader is fairly complete and allows for loading & writing data as well as run-time decrunching of Bytekiller files). There are others, which may be a better fit if you wish a smaller loader or don't care about the extra features. http://aminet.net/search?query=solid+gold Do note that using a trackloader does imply writing the data to disk first. You can use the diskimage tool provided in the Solid Gold source code for creating a full disk, but you can also use ASM-One's WS/WT commands: https://archive.org/details/AsmOne1.02Manual/page/n31 Hope this helps. |
08 October 2018, 09:02 | #5 |
Registered User
Join Date: Mar 2018
Location: Rome
Posts: 173
|
roondar thank you for the hints, I'll give it a look for non-OS solutions
|
08 October 2018, 09:56 | #6 |
Registered User
Join Date: Feb 2007
Location: Melbourne, Australia
Age: 41
Posts: 3,773
|
I wonder if anyone has ever written a HDD trackloader. Obviously useless for computers, but maybe it found a use in some other application (possibly an arcade game).
|
08 October 2018, 10:25 | #7 |
Registered User
Join Date: Jul 2015
Location: The Netherlands
Posts: 3,437
|
I'd say that device drivers for HDD's on any system 'probably' include this functionality
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Executables and initial register values | copse | Coders. General | 10 | 23 June 2022 14:39 |
Capacitor of the Beast a small promo executables | kikems | Amiga scene | 0 | 22 November 2017 22:20 |
Splitting a game into multiple executables | earok | Coders. Blitz Basic | 10 | 05 May 2017 02:48 |
built-in rom crashes client and host on shrinkler-packed executables | Hannibal | support.WinUAE | 6 | 28 December 2015 21:42 |
run executables as df0: | jbl007 | support.WinUAE | 6 | 10 March 2015 20:39 |
|
|