- FunkLibrary & Sublime Text z80 package
- 22 Dec 2014 01:20:10 pm
- Last edited by NanoWar on 22 Dec 2014 01:27:51 pm; edited 1 time in total
Hello everybody!
For those who use Sublime Text 2/3 for their asm needs I present you a package (addon) that brings syntax highlighting for z80 asm and a few build scripts with it
Additionally I integrated FunkLibrary, a collection of macros and functions, that I use for all my projects instead of doing #include "ti83plus.inc" and getting tired...
Let me show you a few things:
I used to do this:
Code:
but now I can do this:
Code:
And how would you make this a two page app?
All I have to do is:
Code:
Graphics (*.bmp files) are auto included from a funk_graphics folder and can be called as easy as the text above. I also added many routines like fastcopy, largesprite, shuffle, random, rectangle and I can add more if you like (I would love to add linking). All routines are added on demand and are not in your program if you don't call them.
Works on Linux and Windows, Cygwin (shell scripts, batch files) but the Sublime package is only tested on Windows 7. Simply hit Ctrl+B to compile the first example. The App example should be compiled via the menu (z80asm / Build Funk App) or you can insert a config file... etc.
The FunkLibrary can also be used without Sublime Text! Just call the build scripts manually. They are funk/build.sh for linux and funk/build.bat for windows. Oh and SPASM is already in the package.
Old screenshot from my setup:
Download: http://revsoft.tifreakware.net/phpBB3/download/file.php?id=286
Other thread: http://revsoft.tifreakware.net/phpBB3/viewtopic.php?f=4&t=41
What do you guys think?
PS: I could add DoorsCS, right now I only have MirageOS, ION and APP. What do I have to do?
PPS: Wizards also compiles with Funk: http://revsoft.tifreakware.net/phpBB3/viewtopic.php?p=1284#p1284
Edit: Grammar
For those who use Sublime Text 2/3 for their asm needs I present you a package (addon) that brings syntax highlighting for z80 asm and a few build scripts with it
Additionally I integrated FunkLibrary, a collection of macros and functions, that I use for all my projects instead of doing #include "ti83plus.inc" and getting tired...
Let me show you a few things:
I used to do this:
Code:
#include "ti83plus.inc"
.org progstart - 2
.db t2ByteTok, tAsmCmp
start:
b_call(_ClrLCDFull)
ld de, 0
ld (PenCol), de
ld hl, msg
b_call(_PutS) ; Display the text
b_call(_NewLine)
ret
msg:
.db "Hello TI83P!", 0
but now I can do this:
Code:
start
bcal _ClrLCDFull
text 24, 30, "Hello Funk,", true
text 30, 33, "you rock!", true
quit
And how would you make this a two page app?
All I have to do is:
Code:
start
bcal _ClrLCDFull
text 24, 30, "Hello Funk,", true
pcal hello_page2
wait
quit
.nextpage
hello_page2
text 30, 33, "you rock!", true
ret
Graphics (*.bmp files) are auto included from a funk_graphics folder and can be called as easy as the text above. I also added many routines like fastcopy, largesprite, shuffle, random, rectangle and I can add more if you like (I would love to add linking). All routines are added on demand and are not in your program if you don't call them.
Works on Linux and Windows, Cygwin (shell scripts, batch files) but the Sublime package is only tested on Windows 7. Simply hit Ctrl+B to compile the first example. The App example should be compiled via the menu (z80asm / Build Funk App) or you can insert a config file... etc.
The FunkLibrary can also be used without Sublime Text! Just call the build scripts manually. They are funk/build.sh for linux and funk/build.bat for windows. Oh and SPASM is already in the package.
Old screenshot from my setup:
Download: http://revsoft.tifreakware.net/phpBB3/download/file.php?id=286
Other thread: http://revsoft.tifreakware.net/phpBB3/viewtopic.php?f=4&t=41
What do you guys think?
PS: I could add DoorsCS, right now I only have MirageOS, ION and APP. What do I have to do?
PPS: Wizards also compiles with Funk: http://revsoft.tifreakware.net/phpBB3/viewtopic.php?p=1284#p1284
Edit: Grammar