Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jsemu committed Apr 24, 2015
1 parent 0bd1577 commit a09294c
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 161 deletions.
402 changes: 252 additions & 150 deletions IodineGBA/IodineGBA/CPU/ARMInstructionSetCore.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion IodineGBA/IodineGBA/GameBoyAdvanceTimerCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* This file is part of IodineGBA
*
* Copyright (C) 2012-2014 Grant Galitz
* Copyright (C) 2012-2015 Grant Galitz
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
Expand Down
4 changes: 2 additions & 2 deletions IodineGBA/IodineGBA/memory/GameBoyAdvanceDMA0Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ GameBoyAdvanceDMA0.prototype.handleDMACopy = function () {
//Transfer Data:
if ((this.is32Bit | 0) == 4) {
//32-bit Transfer:
this.copy32(source | 0, destination | 0);
this.copy32(source & -4, destination & -4);
}
else {
//16-bit Transfer:
this.copy16(source | 0, destination | 0);
this.copy16(source & -2, destination & -2);
}
}
GameBoyAdvanceDMA0.prototype.copy16 = function (source, destination) {
Expand Down
6 changes: 3 additions & 3 deletions IodineGBA/IodineGBA/memory/GameBoyAdvanceDMA1Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,18 +263,18 @@ GameBoyAdvanceDMA1.prototype.handleDMACopy = function () {
//Transfer Data:
if ((this.enabled | 0) == 0x8) {
//32-bit Transfer:
this.copySound(source | 0);
this.copySound(source & -4);
}
else {
//Get the destination address:
var destination = this.destinationShadow | 0;
if ((this.is32Bit | 0) == 4) {
//32-bit Transfer:
this.copy32(source | 0, destination | 0);
this.copy32(source & -4, destination & -4);
}
else {
//16-bit Transfer:
this.copy16(source | 0, destination | 0);
this.copy16(source & -2, destination & -2);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions IodineGBA/IodineGBA/memory/GameBoyAdvanceDMA2Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,18 +262,18 @@ GameBoyAdvanceDMA2.prototype.handleDMACopy = function () {
//Transfer Data:
if ((this.enabled | 0) == 0x10) {
//32-bit Transfer:
this.copySound(source | 0);
this.copySound(source & -4);
}
else {
//Get the destination address:
var destination = this.destinationShadow | 0;
if ((this.is32Bit | 0) == 4) {
//32-bit Transfer:
this.copy32(source | 0, destination | 0);
this.copy32(source & -4, destination & -4);
}
else {
//16-bit Transfer:
this.copy16(source | 0, destination | 0);
this.copy16(source & -2, destination & -2);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions IodineGBA/IodineGBA/memory/GameBoyAdvanceDMA3Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ GameBoyAdvanceDMA3.prototype.handleDMACopy = function () {
//Transfer Data:
if ((this.is32Bit | 0) == 4) {
//32-bit Transfer:
this.copy32(source | 0, destination | 0);
this.copy32(source & -4, destination & -4);
}
else {
//16-bit Transfer:
this.copy16(source | 0, destination | 0);
this.copy16(source & -2, destination & -2);
}
}
GameBoyAdvanceDMA3.prototype.copy16 = function (source, destination) {
Expand Down

0 comments on commit a09294c

Please sign in to comment.