Skip to content

Commit

Permalink
Version 1.0.7 - changes by Nick
Browse files Browse the repository at this point in the history
- fixed disk emulation bug (sense write protect entered write mode)
- now honour diskWritable parameter (but writing is not implemented)
- support meta tag for volume number in disk filename eg: Vol2_Meta_DV2.dsk
- added isPaddleEnabled parameter
- exposed setPaddleEnabled(boolean value), setPaddleInverted(boolean value)
- paddle values are now 255 at startup (ie. correct if disabled/not present)
- minor AppleSpeaker fix (SourceDataLine.class) thanks to William Halliburton
  • Loading branch information
sicklittlemonkey committed Aug 1, 2015
1 parent 912d6c3 commit af1cec2
Show file tree
Hide file tree
Showing 7 changed files with 215 additions and 76 deletions.
16 changes: 8 additions & 8 deletions Source/AppleDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@ private void refreshDisplay() {
boolean isDoubleTextMode = ((graphicsMode & EmAppleII.GR_80CHAR) == EmAppleII.GR_80CHAR);
boolean isDoubleGraphicsMode = ((graphicsMode & (EmAppleII.GR_80CHAR | EmAppleII.GR_DHIRES)) == (EmAppleII.GR_80CHAR | EmAppleII.GR_DHIRES));

int baseAddressText = isPage2 ? apple.MEM_MAIN_RAM2 : apple.MEM_MAIN_TEXT;
int baseAddressHires = isPage2 ? apple.MEM_MAIN_RAM3 : apple.MEM_MAIN_HIRES;
int baseAddressText = isPage2 ? EmAppleII.MEM_MAIN_RAM2 : EmAppleII.MEM_MAIN_TEXT;
int baseAddressHires = isPage2 ? EmAppleII.MEM_MAIN_RAM3 : EmAppleII.MEM_MAIN_HIRES;

// Set char map
if (isCharsetUpdateRequested) {
Expand Down Expand Up @@ -769,7 +769,7 @@ private final void renderTextCharacter(int destOffset, int sourceOffset) {
}
private void renderText(int baseAddress, boolean isMixedMode) {
int screenCharY, screenCharYStart = isMixedMode ? 20 : 0;
int displayOffset, sourceOffset;
int displayOffset;
int address, addressEnd, addressStart;

displayOffset = screenCharYStart * DISPLAY_CHAR_SIZE_Y * DISPLAY_SIZE_X;
Expand Down Expand Up @@ -820,7 +820,7 @@ private final void renderDoubleTextCharacter(int destOffset, int sourceOffset) {
}
private void renderDoubleText(int baseAddress, boolean isMixedMode) {
int screenCharY, screenCharYStart = isMixedMode ? 20 : 0;
int displayOffset, sourceOffset;
int displayOffset;
int address, addressEnd, addressStart;

displayOffset = screenCharYStart * DISPLAY_CHAR_SIZE_Y * DISPLAY_SIZE_X;
Expand Down Expand Up @@ -873,7 +873,7 @@ private final void renderLoresBlock(int destOffset, int colorTop, int colorBotto
}
private void renderLores(int baseAddress, boolean isMixedMode) {
int screenCharY, screenCharYEnd = isMixedMode ? 20 : 24;
int displayOffset, sourceOffset;
int displayOffset;
int address, addressEnd, addressStart;

displayOffset = 0;
Expand Down Expand Up @@ -904,7 +904,7 @@ private void renderLores(int baseAddress, boolean isMixedMode) {
*/
private void renderDoubleLores(int baseAddress, boolean isMixedMode) {
int screenCharY, screenCharYEnd = isMixedMode ? 20 : 24;
int displayOffset, sourceOffset;
int displayOffset;
int address, addressEnd, addressStart;

displayOffset = 0;
Expand Down Expand Up @@ -998,7 +998,7 @@ private final void calcNextHiresWords(int address) {
}
private void renderHires(int baseAddress, boolean isMixedMode) {
int screenCharY, screenCharYEnd = isMixedMode ? 20 : 24;
int displayOffset, sourceOffset;
int displayOffset;
int address, addressEnd, addressStart;

displayOffset = 0;
Expand Down Expand Up @@ -1089,7 +1089,7 @@ private final void calcNextDoubleHiresWords(int address) {
}
private void renderDoubleHires(int baseAddress, boolean isMixedMode) {
int screenCharY, screenCharYEnd = isMixedMode ? 20 : 24;
int displayOffset, sourceOffset;
int displayOffset;
int address, addressEnd, addressStart;

displayOffset = 0;
Expand Down
Loading

0 comments on commit af1cec2

Please sign in to comment.