Fixed XML config files to reflect to new file locations
This commit is contained in:
parent
985c7c76cd
commit
052c5541b5
6 changed files with 12 additions and 1258 deletions
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<serial id="serialPort" pos="left" padleft="8px">
|
||||
<control type="list" binding="listSerial">
|
||||
<item ref="/apps/c1p/6502/jeffpar/ASSEMBLER-1.json">6502 DISASSEMBLER-1 (JP)</item>
|
||||
<item ref="/apps/c1p/6502/jeffpar/ASSEMBLER-2.json">6502 DISASSEMBLER-2 (JP)</item>
|
||||
<item ref="/apps/c1p/6502/jeffpar/BASICEXT.json">6502 BASIC MODS (JP)</item>
|
||||
<item ref="/apps/c1p/6502/jeffpar/LIFE.json">6502 LIFE (JP)</item>
|
||||
<item ref="/apps/c1p/6502/jeffpar/assembler/ASSEMBLER-1.json">6502 DISASSEMBLER-1 (JP)</item>
|
||||
<item ref="/apps/c1p/6502/jeffpar/assembler/ASSEMBLER-2.json">6502 DISASSEMBLER-2 (JP)</item>
|
||||
<item ref="/apps/c1p/6502/jeffpar/basicext/BASICEXT.json">6502 BASIC MODS (JP)</item>
|
||||
<item ref="/apps/c1p/6502/jeffpar/life/LIFE.json">6502 LIFE (JP)</item>
|
||||
<item ref="/apps/c1p/6502/tests/bcd/bcd.json">6502 BCD TESTS</item>
|
||||
<item ref="/apps/c1p/6502/tests/vflag/vflag.json">6502 VFLAG TESTS</item>
|
||||
<item ref="/apps/c1p/BASIC/jeffpar/CHECKERS.BAS">CHECKERS (JP)</item>
|
||||
|
|
|
|||
|
|
@ -75,8 +75,8 @@ C1PSerialPort.prototype.reset = function()
|
|||
this.bInput = 0;
|
||||
this.cbInput = 0;
|
||||
|
||||
this.iInput = 0;
|
||||
this.sInput = "10 PRINT \"HELLO OSI #" + this.getMachineNum() + "\"\n";
|
||||
this.iInputNext = 0;
|
||||
|
||||
// this.sOutput = new Array(0);
|
||||
// this.iOutputNext = 0;
|
||||
|
|
@ -242,12 +242,12 @@ C1PSerialPort.prototype.loadFile = function(sFileName, sFileData, nResponse)
|
|||
}
|
||||
|
||||
this.autoLoad = 0;
|
||||
this.iInputNext = 0;
|
||||
this.iInput = 0;
|
||||
this.sInput = sFileData;
|
||||
|
||||
/*
|
||||
* The following code adds support for loading "65V" files encoded as JSON, which is a cleaner
|
||||
* way to deliver those files when they contain binary (non-ASCII) data.
|
||||
* way to store and deliver those files when they contain binary (non-ASCII) data.
|
||||
*
|
||||
* For example, my 6502 ASSEMBLER/DISASSEMBLER program starts with a conventional "65V" loading
|
||||
* sequence, which loads and launches a small program loader that loads the rest of the program
|
||||
|
|
@ -335,7 +335,7 @@ C1PSerialPort.prototype.getByte = function(addr, addrFrom)
|
|||
* An EVEN address implies they're looking, so if we have a fresh buffer,
|
||||
* then prime the pump.
|
||||
*/
|
||||
if (this.sInput && !this.iInputNext)
|
||||
if (this.sInput && !this.iInput)
|
||||
this.advanceInput();
|
||||
} else {
|
||||
/*
|
||||
|
|
@ -374,14 +374,16 @@ C1PSerialPort.prototype.advanceInput = function()
|
|||
if (this.sInput !== undefined) {
|
||||
this.bInput = 0;
|
||||
this.cbInput = 0;
|
||||
if (this.iInputNext < this.sInput.length) {
|
||||
var b = this.sInput.charCodeAt(this.iInputNext++) & 0xff;
|
||||
if (this.iInput < this.sInput.length) {
|
||||
var b = this.sInput.charCodeAt(this.iInput++) & 0xff;
|
||||
if (b == 0x0a) b = 0x0d;
|
||||
this.bInput = b;
|
||||
this.cbInput = 1;
|
||||
// if (DEBUG) this.log("advanceInput(" + str.toHexByte(b) + ")");
|
||||
}
|
||||
else {
|
||||
this.sInput = "";
|
||||
this.iInput = 0;
|
||||
if (DEBUG) this.log("advanceInput(): out of data");
|
||||
if (this.autoLoad == 1 && this.kbd) {
|
||||
this.kbd.injectKeys(" \nRUN\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue