Skip to content

Commit

Permalink
#2 Use the internal registers directly
Browse files Browse the repository at this point in the history
  • Loading branch information
hagronnestad committed Mar 30, 2020
1 parent 4e47577 commit e35e896
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ComputerSystems/Commodore64/Vic/VicIi.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Drawing;
using Commodore64.Vic.Enums;
using Extensions.Byte;
Expand Down Expand Up @@ -262,7 +262,7 @@ private bool IsInDisplay(Point p) {
}

public int getScreenMemoryPointer() {
var bit4to7 = C64.Memory.Read(0xD018) >> 4 & 0b00001111;
var bit4to7 = this[Register.REGISTER_0x18_MEMORY_POINTERS] >> 4 & 0b00001111;

switch (bit4to7) {
case 0b0000:
Expand Down Expand Up @@ -304,7 +304,7 @@ public int getScreenMemoryPointer() {
}

public int getCharacterMemoryPointer() {
var bit1to3 = C64.Memory.Read(0xD018) >> 1 & 0b00000111;
var bit1to3 = this[Register.REGISTER_0x18_MEMORY_POINTERS] >> 1 & 0b00000111;

switch (bit1to3) {
case 0b000:
Expand Down

0 comments on commit e35e896

Please sign in to comment.