eric_ruck Posted July 30, 2003 Share Posted July 30, 2003 Anyone run Handy (or other emulator?) on Linux, or any of the dev tools? I was wondering what it would take to set them up on a Zaurus 5500 (Linux/QT based PDA). Any ideas? Eric Quote Link to comment Share on other sites More sharing options...
nitrofurano Posted February 7, 2013 Share Posted February 7, 2013 i'm also curious about Lynx emulators and development tools for Linux! Quote Link to comment Share on other sites More sharing options...
+karri Posted February 7, 2013 Share Posted February 7, 2013 I do all my stuff on Linux. As emulator I use mednafen instead of Handy. For development the cc65 suite works fine (compiler, linker, sprite packer). As text editor I use SciTE (with C and asm 6502 highlighting), Emacs or vi. You can launch the compile and make commands directly from the editors. Graphics editor - Gimp. Sound editor - Sage's Chipper over wine. (I have just played a little with this one - no real experience yet) You need to compile and install cc65 from sources. To get the latest version I would use the development tree: svn co svn://svn.cc65.org/cc65/trunk cc65 cd cc65 make -f make/gcc.mak sudo make -f make/gcc.mak install -- Karri 1 Quote Link to comment Share on other sites More sharing options...
nitrofurano Posted February 7, 2013 Share Posted February 7, 2013 thanks a lot! i'll try this! Quote Link to comment Share on other sites More sharing options...
nitrofurano Posted February 8, 2013 Share Posted February 8, 2013 btw, where from can we find some snippets ready to try cross-compiling on Linux? (i'm asking this because i'm very snippet-dependent in the learning process! ) - thanks! Quote Link to comment Share on other sites More sharing options...
GadgetUK Posted February 8, 2013 Share Posted February 8, 2013 I don't think you can just cross compile because they are target specific. If you want code examples take a look at Karris Pong - in this forum, and LX .NET wrote some amazing tutorials starting from 'hello world' examples right up to sprites, and palettes etc. http://atarilynxdeveloper.wordpress.com/ Quote Link to comment Share on other sites More sharing options...
nitrofurano Posted February 8, 2013 Share Posted February 8, 2013 well, i had svn co svn://svn.cc65.org/cc65/trunk cc65 cd cc65 make -f make/gcc.mak sudo make -f make/gcc.mak install in a bash script that downloaded and compiled cc65 perfectly (i hope) - but i have no idea about how to compile these examples, which command lines i should use on a Linux terminal! (thanks in advance! ) Quote Link to comment Share on other sites More sharing options...
+karri Posted February 9, 2013 Share Posted February 9, 2013 The easiest way is to use cl65 like this: hello.c: #include <lynx.h> #include <tgi.h> #include <6502.h> void main(void) { tgi_install(&lynx_160_102_16); tgi_init(); CLI(); while (tgi_busy()) ; tgi_clear(); tgi_setcolor(COLOR_GREEN); tgi_outtextxy(0, 0, "Hello World"); tgi_updatedisplay(); while (1) ; } To compile and run yor code type: cl65 -t lynx hello.c mednafen hello Quote Link to comment Share on other sites More sharing options...
nitrofurano Posted February 9, 2013 Share Posted February 9, 2013 (edited) thanks a lot, it's really awesome for starting! btw, at hello.sh i have: cl65 -t lynx hello.c mv hello hello.lnx && rm hello.o mednafen hello.lnx and replaced "Hello world" with "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua" just for seeing what happens (no line breaking, for example! ) btw, for text writing how can we use 4x6 character sets (just like used on some Lynx games) instead of 8x8? (btw, at http://nitrofurano.altervista.org/retrocoding/zxspectrum/misc/lookingforacsscgc2012theme.html i had to draw them pixel by pixel, in a procedure (for zx-spectrum, using Boriel's zxbasic-compiler) ) Edited February 9, 2013 by nitrofurano Quote Link to comment Share on other sites More sharing options...
+karri Posted February 10, 2013 Share Posted February 10, 2013 thanks a lot, it's really awesome for starting! btw, at hello.sh i have: cl65 -t lynx hello.c mv hello hello.lnx && rm hello.o mednafen hello.lnx and replaced "Hello world" with "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua" just for seeing what happens (no line breaking, for example! ) btw, for text writing how can we use 4x6 character sets (just like used on some Lynx games) instead of 8x8? (btw, at http://nitrofurano.a...c2012theme.html i had to draw them pixel by pixel, in a procedure (for zx-spectrum, using Boriel's zxbasic-compiler) ) Your line drawings are nice and the small text is quite readable. -- Karri Quote Link to comment Share on other sites More sharing options...
nitrofurano Posted February 10, 2013 Share Posted February 10, 2013 thanks! but i wanted to port it to Lynx somehow, as well! (for curiousity, the sources i used on it you can find at http://cgc.zx.gen.tr/index.php?do=games ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.