Whitespace
This commit is contained in:
parent
e50a9fe91d
commit
dea84bc0ee
4 changed files with 12 additions and 12 deletions
|
|
@ -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
|
* Get a 32-bit summation of the current CPU state and add it to our running 32-bit checksum
|
||||||
*/
|
*/
|
||||||
var fDisplay = false;
|
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;
|
this.aCounts.nCyclesChecksumNext -= nCycles;
|
||||||
if (this.aCounts.nCyclesChecksumNext <= 0) {
|
if (this.aCounts.nCyclesChecksumNext <= 0) {
|
||||||
this.aCounts.nCyclesChecksumNext += this.aCounts.nCyclesChecksumInterval;
|
this.aCounts.nCyclesChecksumNext += this.aCounts.nCyclesChecksumInterval;
|
||||||
|
|
|
||||||
|
|
@ -1468,8 +1468,8 @@ X86CPU.prototype.resetSizes = function()
|
||||||
*/
|
*/
|
||||||
X86CPU.prototype.getChecksum = function()
|
X86CPU.prototype.getChecksum = function()
|
||||||
{
|
{
|
||||||
var sum = (this.regEAX + this.regEBX + this.regECX + this.regEDX + this.getSP() + this.regEBP + this.regESI + this.regEDI) | 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;
|
sum = (sum + this.getIP() + this.getCS() + this.getDS() + this.getSS() + this.getES() + this.getPS())|0;
|
||||||
return sum;
|
return sum;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,9 +50,9 @@ start proc near
|
||||||
;
|
;
|
||||||
; Set driver to use the 8x8 font.
|
; Set driver to use the 8x8 font.
|
||||||
;
|
;
|
||||||
mov ah,11h ;VGA BIOS character generator function,
|
mov ah,11h ;VGA BIOS character generator function,
|
||||||
mov al,30h ; return info subfunction
|
mov al,30h ; return info subfunction
|
||||||
mov bh,3;get 8x8 font pointer
|
mov bh,3 ;get 8x8 font pointer
|
||||||
int 10h
|
int 10h
|
||||||
call SelectFont
|
call SelectFont
|
||||||
;
|
;
|
||||||
|
|
@ -129,12 +129,12 @@ DrawChar proc near
|
||||||
pop ds
|
pop ds
|
||||||
mul di ;calculate offset of start of row
|
mul di ;calculate offset of start of row
|
||||||
push di ;set aside screen width
|
push di ;set aside screen width
|
||||||
mov di,cx ;set aside the column
|
mov di,cx ;set aside the column
|
||||||
and cl,0111b ;keep only the column in-byte address
|
and cl,0111b;keep only the column in-byte address
|
||||||
shr di,1
|
shr di,1
|
||||||
shr di,1
|
shr di,1
|
||||||
shr di,1 ;divide column by 8 to make a byte address
|
shr di,1 ;divide column by 8 to make a byte address
|
||||||
add di,ax ;and point to byte
|
add di,ax ;and point to byte
|
||||||
;
|
;
|
||||||
; Calculate font address of character.
|
; Calculate font address of character.
|
||||||
;
|
;
|
||||||
|
|
@ -142,7 +142,7 @@ DrawChar proc near
|
||||||
shl bx,1 ;assumes 8 bytes per character; use
|
shl bx,1 ;assumes 8 bytes per character; use
|
||||||
shl bx,1 ; a multiply otherwise
|
shl bx,1 ; a multiply otherwise
|
||||||
shl bx,1 ;offset in font of character
|
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.
|
; Set up the GC rotation.
|
||||||
;
|
;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ SC_MAP_MASK equ 2 ;SC map mask register index
|
||||||
GC_INDEX equ 3ceh ;GC index register
|
GC_INDEX equ 3ceh ;GC index register
|
||||||
GC_SET_RESET equ 0 ;GC set/reset register index
|
GC_SET_RESET equ 0 ;GC set/reset register index
|
||||||
GC_ENABLE_SET_RESET equ 1 ;GC enable 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
|
; register index
|
||||||
GC_MODE equ 5 ;GC Mode register
|
GC_MODE equ 5 ;GC Mode register
|
||||||
GC_BIT_MASK equ 8 ;GC bit mask register index
|
GC_BIT_MASK equ 8 ;GC bit mask register index
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue