Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: 6502 Perl

by RMGir (Prior)
on Dec 12, 2019 at 14:47 UTC ( [id://11110015]=note: print w/replies, xml ) Need Help??


in reply to Re: 6502 Perl
in thread 6502 Perl

I agree that FORTH would likely be doable (and maybe even almost easy).

I wonder if you could squeeze sed or awk into such a tiny footprint?

Doubtful, I guess, since both are pretty well tied to regex engines.


Mike

Replies are listed 'Best First'.
Re^3: 6502 Perl
by Anonymous Monk on Dec 13, 2019 at 22:27 UTC
    I very successfully built a "truly-compiled FORTH" on a 6502 machine – it actually generated subroutines – and I know that there were several TIL-based dialects for it also. Although the 6502 had some rather unique addressing capabilities, the fact that it only had three CPU registers and that two of them were only for addressing meant that it usually took quite a few more instructions to do things vs. other chips like the Z-80. Not what you want when you've only got 64K.
      The 6502 had a zero page addressing mode for the first 256 bytes. One could use this space as pseudo registers.

      An MMU switching between 64k memory blocks would need to preserve them "globally" to allow data transfer.

      This wouldn't be very fast and only a reasonable approach for a MacGyver scenario.

      Like if a strange natural disaster or God's will burnt all newer CPUs and miraculously spared only the 6502s family of processors ;-)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11110015]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found