Skip to content

Commit

Permalink
fix undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
BartmanAbyss committed Sep 28, 2022
1 parent 677116f commit dad4119
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ diff -ruN gcc-12.1.0 gcc-12.1.0-barto > gcc-barto.patch

### Gfx Debugger
* blitter doesn't get pointers if not explicitly written by CPU (e.g. reusing pointers after blit)
* TODO: correctly show blits over 2 frames (second frame is missing blitbox)
* TODO: show source blitter-rects
* TODO: show 2 resources
* TODO: tooltips for blitter-rects?
Expand Down
2 changes: 2 additions & 0 deletions src/client/screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ export function getScreen(scale: number, model: IProfileModel, freezeModel: IPro
const maxCycle = CpuCyclesToDmaCycles(time);
for(let cycle = 0; cycle < maxCycle; cycle++) {
const dmaRecord = model.amiga.dmaRecords[cycle];
if(dmaRecord.addr === undefined)
continue;
if(dmaRecord.addr >= 0 && dmaRecord.addr < lastUpdate.byteLength) {
if((dmaRecord.reg & 0x1100) === 0x1100) { // CPU write
const color = dmaTypes.get(DmaTypes.CPU).subtypes.get(DmaSubTypes.CPU_DATA).color;
Expand Down

0 comments on commit dad4119

Please sign in to comment.