This commit is contained in:
Jonathan Campbell
2017-11-28 17:58:47 -08:00
parent 8420ce356e
commit 442acf4c0f
3 changed files with 1030 additions and 1026 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -115,12 +115,15 @@ for ($y=0;$y < 1024;$y++) {
$rawbase = 0xFFFFFF;
}
$comma = ',';
$comma = ' ' if $y == 1023;
if (($y*$pagesize) >= $codebase) {
print "\t".sprintf("0x%04x",$rawbase)." /* ".sprintf("0x%04x-0x%04X",$codebase,$codebase+$pagesize-1)." */\n";
print "\t".sprintf("0x%04x",$rawbase)."$comma /* ".sprintf("0x%04x-0x%04X",$codebase,$codebase+$pagesize-1)." */\n";
$t++;
}
else {
print "\t".sprintf("0x%04x",0xFFFF)." /* ".sprintf("0x%04x-0x%04X",$y*$pagesize,$y*$pagesize+$pagesize-1)." NOT PRESENT */\n";
print "\t".sprintf("0x%04x",0xFFFF)."$comma /* ".sprintf("0x%04x-0x%04X",$y*$pagesize,$y*$pagesize+$pagesize-1)." NOT PRESENT */\n";
}
}
print "};\n";

View File

@@ -58,6 +58,7 @@ private:
};
#include "cp437_uni.h"
#include "cp932_uni.h"
static char cpcnv_temp[4096];