Wookie, on Mon Jan 10, 2011 12:54 AM, said:
I designed a new loader that is in two parts: a micro-loader that gets encrypted that can only load 256 bytes to a fixed address in RAM, and a secondary loader that can load the main executable and run it.
The microloader source is here:
https://bitbucket.or.../micro_loader.s
The secondary loader source is here:
https://bitbucket.or...ondary_loader.s
The microloader is 51 bytes and is the only thing that needs to be encrypted. I created this loading system to get past the decryption phase as fast as possible and to simplify the whole process of building a runnable ROM.
I tested the microloader in mednafen. I haven't done testing on real hardware yet. Note that the loaders are written in HLA.
--wookie
YES!!! May I use it in the cc65 compiler as the default loader?
Edit:
I read through this and found out that you already have some licensing header on it. The maintainer of the cc65 packet wants to simplify things and they accept stuff to the cc65 kit that comply with the license below.
User contributions for cc65, the libraries and binary tools are highly appreciated! Because I would like to keep the licensing terms as uniform and as free as possible, authors of contributions that are to be included in the source and binary distributions must agree that their contributions are donated to the cc65 project under the terms of the following license (this is a copy of the above, and a copy of the zlib license):
Copyright © (year) (copyright holder)
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
When submitting material that is to be included into cc65, please state that you agree with this license.
--
Karri
Edited by karri, Mon Jan 10, 2011 1:40 AM.