1
0
mirror of https://github.com/fadden/6502bench.git synced 2025-07-30 00:24:08 +00:00

Data Bank Register management, part 5

Update documentation.  Add some information about OMF relocation
data as well.

Fix bug in B=K handling.
This commit is contained in:
Andy McFadden
2020-07-10 13:29:36 -07:00
parent 0929077fda
commit 2a2aadffec
7 changed files with 115 additions and 7 deletions

View File

@@ -1335,7 +1335,7 @@ namespace SourceGen {
int bank;
if (curVal == DbrValue.USE_PBR) {
bank = mAnattribs[offset].Address >> 16;
bank = mAnattribs[offset].Address & 0x00ff0000;
} else {
Debug.Assert(curVal >= 0 && curVal < 256);
bank = curVal << 16;