Add options to compile the emulator with specific amounts of memory

This commit is contained in:
CrazyEttin 2022-08-30 00:10:02 +03:00
parent 2818ea170e
commit a5d85c0896
2 changed files with 20 additions and 5 deletions

View File

@ -15,7 +15,20 @@ type
{$endif} {$endif}
const const
LastRAM = $ffef; //The last address of RAM //The last address of RAM
{$if defined(RAM4)}
LastRAM = $fff; //4 KiB
{$elseif defined(RAM8)}
LastRAM = $1fff; //8 KiB
{$elseif defined(RAM16)}
LastRAM = $3fff; //16 KiB
{$elseif defined(RAM32)}
LastRAM = $7fff; //32 KiB
{$elseif defined(RAM64)}
LastRAM = $ffef; //64 KiB
{$else}
LastRAM = $7ff; //2 KiB (default)
{$endif}
var var
Hlt, ASCII, Verbose: boolean; //Halt, ASCII, and verbose flags Hlt, ASCII, Verbose: boolean; //Halt, ASCII, and verbose flags

View File

@ -92,10 +92,12 @@ uninitialised.
Emulator Emulator
-------- --------
The emulator runs at roughly 500 KIPS, has the full 65520 bytes of RAM, By default the emulator runs at roughly 500 KIPS, has 2 KiB of RAM, and
and interacts with memory mapped devices at roughly 1000 CPS. The speed interacts with memory mapped devices at roughly 1000 CPS. The arguments
limitations can be removed by compiling the emulator with the argument -dRAM4, -dRAM8, -dRAM16, -dRAM32, and -dRAM64 can be used to compile
-dfast. the emulator with 4, 8, 16, 32, or 64 KiB (minus the reserved addresses)
of RAM respectively instead and the speed limitations can be removed
with the argument -dfast.
Input and output are handled by an emulated glass teletype terminal with Input and output are handled by an emulated glass teletype terminal with
local echo. Note that of the control characters only bell, backspace, local echo. Note that of the control characters only bell, backspace,