Moved opcode table from &b000 to &c000

This commit is contained in:
Simon Owen 2008-09-05 16:48:07 +00:00
parent c571f7dd59
commit 2382ddd7bb
1 changed files with 3 additions and 5 deletions

View File

@ -7,7 +7,7 @@
# http://simonowen.com/sam/apple1emu/
$source = 'apple1emu.asm';
$codeend = 0xc000;
$codeend = 0xd000;
# Assemble, outputting the symbols containing opcode implementation lengths
$_ = `pyz80.py -s op_.*_len $source`;
@ -44,7 +44,7 @@ foreach $op (@todo)
{
MSB:
# Work up through MSB values until we find a space
for ($msb = 0; ; $msb++)
for ($msb = 0 ; ; $msb++)
{
# Determine the extent of the opcode in the current MSB
my $start = ($msb << 8) | $op;
@ -78,9 +78,7 @@ $base = $codeend - (($size + 0xff) & ~0xff);
print "Size = $size, used = $used, slack = ", $size-$used, "\n";
# Output sorted list of calculated positions
foreach (sort { $a <=> $b } @todo)
{
my $offset = $base + $off{$_};
foreach (sort { $a <=> $b } @todo) {
printf FILE "op_%02x: equ &%04x ; +$len{$_}\n", $_, $base+$off{$_};
}