Re: [cc65] C64 web server

Date view Thread view Subject view

From: Spiro Trikaliotis (Trik-news_at_gmx.de)
Date: 2001-10-17 14:11:10


Hi Adam,

"Adam Dunkels" <adam_at_sics.se> wrote:

> How much ROM does a 1541 have? Native uIP be fitted into some 4k and by

Hm... $C000-$FFFF = 16 KB. That should be enough, should't it?

256 Byte ($C000-$C0FF) are free (in the original, I don't know for later
versions) and there are some free areas in between. I don't know what you
could throw away from the rest of the code. Possible the CBM serial line
protocol is a good choice.

> hand-compiling the code to 6502, it should be possible to reduce the code
> size down to some 1k. RAM usage for the TCP/IP stack can be kept below 256
> bytes. The RS232 routines probably needs some 256 bytes for buffering.
That
> leaves more than 1k for disk block buffers (the BAM wouldn't have to be
kept
> in RAM either)!

The 256 bytes are not a big problem since the 1541 contains 5 job queues
each having a 256 byte buffer. Since you would not necessarily need all
queues (even 1 should be enough), you have 4 x 256 byte = 1 KB free of RAM
(w/o much effort).

Spiro.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:43 CET