Hey folks,
I got fed up with having to write header files and ca65's limitations when working with scopes so I created this little tool.
This is what it allows you to do:
File: Module.z
File: main.z
This will generate ca65-compatible header and source files that you can integrate into your build process. However, a generic build script (lazymake) is also included which can take care of everything for you.
Python 2 is required.
==============
DOWNLOAD
lazy65 V0.1.4 (current) (May 13, 2015)
lazy65 V0.1.3 (May 18, 2014)
lazy65 V0.1.2 (May 11, 2014)
lazy65 V0.1.1 (May 3, 2014)
lazy65 V0.1.0
==============
Planned features
The tool is still in a somewhat early stage and currently identifies and replaces symbols in a rather lazy way which may result in cryptic error messages, I'm hoping to fix that in a later version. If you decide to give it a try, please let me know if you encounter any problems. There may be unresolved bugs with certain ca65 commands (.struct?) that need fixing.
I got fed up with having to write header files and ca65's limitations when working with scopes so I created this little tool.
This is what it allows you to do:
File: Module.z
Code:
.segment "CODE"
func1:
.proc func2
var1: .reszp 1
.endproc
.macro someMacro arg1, arg2
.endmacro
func1:
.proc func2
var1: .reszp 1
.endproc
.macro someMacro arg1, arg2
.endmacro
File: main.z
Code:
.use Module
main:
jsr Module.func1
lda #0
sta Module.func2.var
jsr Module.func2
Module.someMacro 1, 2
main:
jsr Module.func1
lda #0
sta Module.func2.var
jsr Module.func2
Module.someMacro 1, 2
Code:
> lazy65 Module
> lazy65 main
> lazy65 main
This will generate ca65-compatible header and source files that you can integrate into your build process. However, a generic build script (lazymake) is also included which can take care of everything for you.
Python 2 is required.
==============
DOWNLOAD
lazy65 V0.1.4 (current) (May 13, 2015)
lazy65 V0.1.3 (May 18, 2014)
lazy65 V0.1.2 (May 11, 2014)
lazy65 V0.1.1 (May 3, 2014)
lazy65 V0.1.0
==============
Planned features
- - python macros (.pymacro)
- - automatic generation of linker config files for common mappers
- - maybe a couple of extra commands that make life easier
The tool is still in a somewhat early stage and currently identifies and replaces symbols in a rather lazy way which may result in cryptic error messages, I'm hoping to fix that in a later version. If you decide to give it a try, please let me know if you encounter any problems. There may be unresolved bugs with certain ca65 commands (.struct?) that need fixing.