mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-07-03 17:29:46 +00:00
Add hi-bit so that the color mask doesn't get set with funky values and make the title screen look weird.
This commit is contained in:
parent
76c97b4978
commit
107a7b7ed9
|
@ -83,23 +83,23 @@ public class LawlessComputer extends Apple2e {
|
|||
if (i < 0x02000) {
|
||||
next = (framebuffer[i] & 1) << 6;
|
||||
}
|
||||
Byte b1 = (byte) ((framebuffer[i + 0x02000] & 0x07f) >> 1 | next);
|
||||
ram.getAuxMemory().writeByte(0x02000 + i, (byte) (b1 & i1));
|
||||
Byte b1 = (byte) ((framebuffer[i + 0x02000] & 0x07f) >> 1 | next );
|
||||
ram.getAuxMemory().writeByte(0x02000 + i, (byte) (b1 & i1 | 0x080));
|
||||
if (i < 0x01FFF) {
|
||||
next = (framebuffer[i + 0x02001] & 1) << 6;
|
||||
}
|
||||
Byte b2 = (byte) ((framebuffer[i] & 0x07f) >> 1 | next);
|
||||
ram.getMainMemory().writeByte(0x02000 + i, (byte) (b2 & i2));
|
||||
ram.getMainMemory().writeByte(0x02000 + i, (byte) (b2 & i2 | 0x080));
|
||||
if (i < 0x01FFF) {
|
||||
next = (framebuffer[i + 1] & 1) << 6;
|
||||
}
|
||||
Byte b3 = (byte) ((framebuffer[i + 0x02001] & 0x07f) >> 1 | next);
|
||||
ram.getAuxMemory().writeByte(0x02001 + i, (byte) (b3 & i3));
|
||||
ram.getAuxMemory().writeByte(0x02001 + i, (byte) (b3 & i3 | 0x080));
|
||||
if (i < 0x01FFE) {
|
||||
next = (framebuffer[i + 0x02002] & 1) << 6;
|
||||
}
|
||||
Byte b4 = (byte) ((framebuffer[i + 1] & 0x07f) >> 1 | next);
|
||||
ram.getMainMemory().writeByte(0x02001 + i, (byte) (b4 & i4));
|
||||
ram.getMainMemory().writeByte(0x02001 + i, (byte) (b4 & i4 | 0x080));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user