Jump to content
IGNORED

Handy/Lynx tools on Linux


eric_ruck

Recommended Posts

  • 9 years later...

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

  • Like 1
Link to comment
Share on other sites

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! :) )

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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! :D )

 

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 by nitrofurano
Link to comment
Share on other sites

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! :D )

 

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...