6502 as cloud service

Let's talk about anything related to the 6502 microprocessor.
Post Reply
mkl0815
Posts: 183
Joined: 25 Mar 2013
Location: Germany
Contact:

6502 as cloud service

Post by mkl0815 »

Some people are really creative:

http://www.6502cloud.com/

It seems that the 6502 is now "cloud ready". You can run 6502 code as a cloud service. I'm still thinking about a serious use case, but hey it's really cool 8)
How should I know what I think, until I hear what I've said.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: 6502 as cloud service

Post by BigEd »

This felt to me as if there must be some clever thing to do with it... but I can't yet see what.

One idea mentioned was to try thousands or millions of code sequences, for example if testing something or searching for optimal coding.

Although it says it will time out, when it does so, it seems you don't get a result. So you do need to run just some thousands of cycles - not sure what the limit might be.
mkl0815
Posts: 183
Joined: 25 Mar 2013
Location: Germany
Contact:

Re: 6502 as cloud service

Post by mkl0815 »

BigEd wrote:
Although it says it will time out, when it does so, it seems you don't get a result.
How the timeout works is not clear. Maybe after a defined number of cycles or just depending on the time the code is executed.
But as seen in the description, it will always return the specified memory block at the end. Even if it was a timeout:
Quote:
and when it times out, or hits a BRK op-code. It will then return the specified section of memory.

Code: Select all

reqdata = {
        "input" : [
            {
                "start_address" : "c000",
                "data" : "qQGNAAKpBY0BAqkIjQICAA==",
            }
        ],
        "output" : {
            "start_address" : "0200",
            "end_address" : "02ff",
        },
        "execute_address" : "c000",
How should I know what I think, until I hear what I've said.
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: 6502 as cloud service

Post by BigEd »

Hmm, when I tried sending it a loop, it just gave back an error, without the memory dump. That was using the web form. After much wrestling, I got the python version working, with the same result. This is my program:
5gDQ/OYB0PgA

(I notice that the 6502 model running on Amazon is written in python - that's not going to help! The idea here must be to make things fast - to startup and to run.)
Post Reply