diff --git a/modules/pcjs/lib/cpu.js b/modules/pcjs/lib/cpu.js index 628b2354c..64abe4ef7 100644 --- a/modules/pcjs/lib/cpu.js +++ b/modules/pcjs/lib/cpu.js @@ -399,7 +399,7 @@ CPU.prototype.updateChecksum = function(nCycles) * Get a 32-bit summation of the current CPU state and add it to our running 32-bit checksum */ var fDisplay = false; - this.aCounts.nChecksum = (this.aCounts.nChecksum + this.getChecksum()) | 0; + this.aCounts.nChecksum = (this.aCounts.nChecksum + this.getChecksum())|0; this.aCounts.nCyclesChecksumNext -= nCycles; if (this.aCounts.nCyclesChecksumNext <= 0) { this.aCounts.nCyclesChecksumNext += this.aCounts.nCyclesChecksumInterval; diff --git a/modules/pcjs/lib/x86cpu.js b/modules/pcjs/lib/x86cpu.js index b9dc6eee3..1abdae922 100644 --- a/modules/pcjs/lib/x86cpu.js +++ b/modules/pcjs/lib/x86cpu.js @@ -1468,8 +1468,8 @@ X86CPU.prototype.resetSizes = function() */ X86CPU.prototype.getChecksum = function() { - var sum = (this.regEAX + this.regEBX + this.regECX + this.regEDX + this.getSP() + this.regEBP + this.regESI + this.regEDI) | 0; - sum = (sum + this.getIP() + this.getCS() + this.getDS() + this.getSS() + this.getES() + this.getPS()) | 0; + var sum = (this.regEAX + this.regEBX + this.regECX + this.regEDX + this.getSP() + this.regEBP + this.regESI + this.regEDI)|0; + sum = (sum + this.getIP() + this.getCS() + this.getDS() + this.getSS() + this.getES() + this.getPS())|0; return sum; }; diff --git a/tests/pc/vga/L25-1.ASM b/tests/pc/vga/L25-1.ASM index 1a0517bd4..c43ee7ddf 100644 --- a/tests/pc/vga/L25-1.ASM +++ b/tests/pc/vga/L25-1.ASM @@ -50,9 +50,9 @@ start proc near ; ; Set driver to use the 8x8 font. ; - mov ah,11h ;VGA BIOS character generator function, - mov al,30h ; return info subfunction - mov bh,3;get 8x8 font pointer + mov ah,11h ;VGA BIOS character generator function, + mov al,30h ; return info subfunction + mov bh,3 ;get 8x8 font pointer int 10h call SelectFont ; @@ -129,12 +129,12 @@ DrawChar proc near pop ds mul di ;calculate offset of start of row push di ;set aside screen width - mov di,cx ;set aside the column - and cl,0111b ;keep only the column in-byte address + mov di,cx ;set aside the column + and cl,0111b;keep only the column in-byte address shr di,1 shr di,1 - shr di,1 ;divide column by 8 to make a byte address - add di,ax ;and point to byte + shr di,1 ;divide column by 8 to make a byte address + add di,ax ;and point to byte ; ; Calculate font address of character. ; @@ -142,7 +142,7 @@ DrawChar proc near shl bx,1 ;assumes 8 bytes per character; use shl bx,1 ; a multiply otherwise shl bx,1 ;offset in font of character - add si,bx ;offset in font segment of character + add si,bx ;offset in font segment of character ; ; Set up the GC rotation. ; diff --git a/tests/pc/vga/L26-1.ASM b/tests/pc/vga/L26-1.ASM index 790eaf10b..a78610e82 100644 --- a/tests/pc/vga/L26-1.ASM +++ b/tests/pc/vga/L26-1.ASM @@ -22,7 +22,7 @@ SC_MAP_MASK equ 2 ;SC map mask register index GC_INDEX equ 3ceh ;GC index register GC_SET_RESET equ 0 ;GC set/reset register index GC_ENABLE_SET_RESET equ 1 ;GC enable set/reset register index -GC_ROTATE equ 3 ;GC data rotate/logical function +GC_ROTATE equ 3 ;GC data rint 3otate/logical function ; register index GC_MODE equ 5 ;GC Mode register GC_BIT_MASK equ 8 ;GC bit mask register index