For example:
https://www.ebay.co.uk/itm/ESP32-ESP-32 ... ctupt=true
So, I thought why not port my emulator and well ... it lives.
Code: Select all
EM-65C816-ESP32 [19.04]
Copyright (C)2019 Andrew John Jacobs.
>> Booting
>> Building memory description:
000000-00efff: RAM (Allocated)
00f000-00ffff: ROM (Contiguous)
010000-01ffff: RAM (Contiguous)
020000-03ffff: RAM (Allocated)
040000-07ffff: ROM (Contiguous)
>> Remaining Heap: 120364
>> Starting execution
00:f000 78 SEI {00:0000,00:0000} E=1 P=..MX.I.. A=00[00] X=00[00] Y=00[00] DP=0000 SP=01[00] { fe fe fe fe } DBR=00 CYC=2
00:f001 d8 CLD {00:0000,00:0000} E=1 P=..MX.I.. A=00[00] X=00[00] Y=00[00] DP=0000 SP=01[00] { fe fe fe fe } DBR=00 CYC=2
00:f002 18 CLC {00:0000,00:0000} E=1 P=..MX.I.. A=00[00] X=00[00] Y=00[00] DP=0000 SP=01[00] { fe fe fe fe } DBR=00 CYC=2
00:f003 fb XCE {00:0000,00:0000} E=1 P=..MX.I.. A=00[00] X=00[00] Y=00[00] DP=0000 SP=01[00] { fe fe fe fe } DBR=00 CYC=2
00:f004 e2 30 SEP {00:f005,00:0000} E=0 P=..MX.I.C A=00[00] X=00[00] Y=00[00] DP=0000 SP=[0100] { fe fe fe fe } DBR=00 CYC=3
00:f006 c2 30 REP {00:f007,00:0000} E=0 P=..MX.I.C A=00[00] X=00[00] Y=00[00] DP=0000 SP=[0100] { fe fe fe fe } DBR=00 CYC=3
Despite the ESP having 512K of RAM its seems to be fairly fragmented at startup and you can only have a few big contiguous blocks. I had to allocate most of it in 4K blocks to get the 252K in the current configuration. I'm not sure how fast the emulator goes at the moment -- there is too much debugging/trace code in it to tell.
When I get a reasonable build running I've open up the Github repository and post the details here.