Minor changes
This commit is contained in:
parent
e5030cd33f
commit
1e8a355572
|
@ -125,8 +125,6 @@ FS.prototype.OnJSONLoaded = function(fs)
|
|||
{
|
||||
throw "The filesystem JSON format has changed. " +
|
||||
"Please update your fs2json (https://github.com/copy/fs2json) and recreate the filesystem JSON.";
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var fsroot = fsdata["fsroot"];
|
||||
|
@ -424,7 +422,7 @@ FS.prototype.CloseInode = function(id) {
|
|||
var inode = this.GetInode(id);
|
||||
if (inode.status == STATUS_UNLINKED) {
|
||||
//message.Debug("Filesystem: Delete unlinked file");
|
||||
inode.status == STATUS_INVALID;
|
||||
inode.status = STATUS_INVALID;
|
||||
delete this.inodedata[id];
|
||||
inode.size = 0;
|
||||
}
|
||||
|
|
14
src/arith.js
14
src/arith.js
|
@ -71,16 +71,6 @@ CPU.prototype.adc = function(dest_operand, source_operand, op_size)
|
|||
return this.last_result;
|
||||
}
|
||||
|
||||
CPU.prototype.cmp = function(dest_operand, source_operand, op_size)
|
||||
{
|
||||
this.last_add_result = dest_operand;
|
||||
this.last_op2 = source_operand;
|
||||
this.last_op1 = this.last_result = dest_operand - source_operand | 0;
|
||||
|
||||
this.last_op_size = op_size;
|
||||
this.flags_changed = flags_all;
|
||||
}
|
||||
|
||||
CPU.prototype.sub = function(dest_operand, source_operand, op_size)
|
||||
{
|
||||
this.last_add_result = dest_operand;
|
||||
|
@ -416,6 +406,7 @@ CPU.prototype.div8 = function(source_operand)
|
|||
if(source_operand === 0)
|
||||
{
|
||||
this.trigger_de();
|
||||
return;
|
||||
}
|
||||
|
||||
var target_operand = this.reg16[reg_ax],
|
||||
|
@ -439,6 +430,7 @@ CPU.prototype.idiv8 = function(source_operand)
|
|||
if(source_operand === 0)
|
||||
{
|
||||
this.trigger_de();
|
||||
return;
|
||||
}
|
||||
|
||||
var target_operand = this.reg16s[reg_ax],
|
||||
|
@ -462,6 +454,7 @@ CPU.prototype.div16 = function(source_operand)
|
|||
if(source_operand === 0)
|
||||
{
|
||||
this.trigger_de();
|
||||
return;
|
||||
}
|
||||
|
||||
var
|
||||
|
@ -486,6 +479,7 @@ CPU.prototype.idiv16 = function(source_operand)
|
|||
if(source_operand === 0)
|
||||
{
|
||||
this.trigger_de();
|
||||
return;
|
||||
}
|
||||
|
||||
var target_operand = this.reg16[reg_ax] | (this.reg16[reg_dx] << 16),
|
||||
|
|
|
@ -189,10 +189,10 @@ function MouseAdapter(bus, screen_container)
|
|||
delta_y = delta_y * SPEED_FACTOR;
|
||||
}
|
||||
|
||||
if(Math.abs(delta_x) > 100 || Math.abs(delta_y) > 100)
|
||||
{
|
||||
// Large mouse delta, drop?
|
||||
}
|
||||
//if(Math.abs(delta_x) > 100 || Math.abs(delta_y) > 100)
|
||||
//{
|
||||
// // Large mouse delta, drop?
|
||||
//}
|
||||
|
||||
delta_y = -delta_y;
|
||||
|
||||
|
|
|
@ -253,8 +253,8 @@ RTC.prototype.cmos_port_write = function(data_byte)
|
|||
this.next_interrupt = Date.now();
|
||||
}
|
||||
|
||||
if(this.cmos_b & 0x20) dbg_log("Unimplemented: alarm interrupt");
|
||||
if(this.cmos_b & 0x10) dbg_log("Unimplemented: updated interrupt");
|
||||
if(this.cmos_b & 0x20) dbg_log("Unimplemented: alarm interrupt", LOG_RTC);
|
||||
if(this.cmos_b & 0x10) dbg_log("Unimplemented: updated interrupt", LOG_RTC);
|
||||
|
||||
dbg_log("cmos b=" + h(this.cmos_b, 2), LOG_RTC);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue