Hello. I plan to write a 6502 emulator using PHP.
One thing I'd need is to to store 64k as the RAM. I suppose I could use an
a PHP array, with integers 0..65535 as the index, but as the PHP is an
associative array, it doesn't seem like the best storage.
Another possibility could be to keep a 64k long string. Could PHP handle
such a long string, including all possible byte values includind 0 and 255
and everything inbetween?
Perhaps there's a way to access a raw buffer of memory which I can't find
in the documents.
Any ideas please?
Bill, why yes, I am quite mad!
One thing I'd need is to to store 64k as the RAM. I suppose I could use an
a PHP array, with integers 0..65535 as the index, but as the PHP is an
associative array, it doesn't seem like the best storage.
Another possibility could be to keep a 64k long string. Could PHP handle
such a long string, including all possible byte values includind 0 and 255
and everything inbetween?
Perhaps there's a way to access a raw buffer of memory which I can't find
in the documents.
Any ideas please?
Bill, why yes, I am quite mad!
Comment