pcjs/modules/pcjs/bin
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2015-10-31 07:31:32 -07:00
..
.jshintrc my_modules is simply modules now 2014-11-11 08:19:48 -08:00
fptest.js v1.16.5: Getting ready for 2015 2014-12-29 23:06:28 -08:00
ibm5150.json PCjs can now connect a serial port to the console 2015-10-15 12:56:07 -07:00
pcjs PCjs can now connect a serial port to the console 2015-10-15 12:56:07 -07:00
README.md Add GitHub link to page templates 2015-06-19 17:10:21 -07:00
test386.json test386 ready to run instruction tests under both DOS and Node.js now 2015-10-16 11:26:38 -07:00
test386.txt Fixed 16-bit unsigned division overflow detection 2015-10-31 07:31:32 -07:00
x86gen.js Assorted 80386 and Debugger fixes 2015-05-01 14:21:23 -07:00

Running PCjs From The Command-Line

In this bin directory, run:

node pcjs --cmd="load ibm5150.json"

The following output should appear:

ibm5150.cpu8088 object created
ibm5150.chipset object created
ibm5150.romBASIC object created
ibm5150.romBIOS object created
ibm5150.ramLow object created
ibm5150.keyboard object created
ibm5150.videoMDA object created
ibm5150.fdcNEC object created
ibm5150.debugger object created
warning: Component type 'Panel' not found
ibm5150.pc-mda-64k object created
PCjs> ramLow: 64Kb allocated
PCjs v1.x.x
Copyright © 2012-2015 Jeff Parsons <Jeff@pcjs.org>
License: GPL version 3 or later <http://gnu.org/licenses/gpl.html>
Type ? for list of debugger commands
AX=0000 BX=0000 CX=0000 DX=0000 SP=0000 BP=0000 SI=0000 DI=0000 
SS=0000 DS=0000 ES=0000 PS=F002 V0 D0 I0 T0 S0 Z0 A0 P0 C0 
FFFF:0000 EA5BE000F0      JMP      F000:E05B

Start the machine with a g command:

g
running
false

and after about 10 seconds, dump the machine's video buffer with d b000:0:

PCjs> d b000:0
B000:0000  43 07 75 07 72 07 72 07-65 07 6E 07 74 07 20 07  C.u.r.r.e.n.t. .
B000:0010  64 07 61 07 74 07 65 07-20 07 69 07 73 07 20 07  d.a.t.e. .i.s. .
B000:0020  54 07 75 07 65 07 20 07-20 07 31 07 2D 07 30 07  T.u.e. . .1.-.0.
B000:0030  31 07 2D 07 31 07 39 07-38 07 30 07 20 07 20 07  1.-.1.9.8.0. . .
B000:0040  20 07 20 07 20 07 20 07-20 07 20 07 20 07 20 07   . . . . . . . .
B000:0050  20 07 20 07 20 07 20 07-20 07 20 07 20 07 20 07   . . . . . . . .
B000:0060  20 07 20 07 20 07 20 07-20 07 20 07 20 07 20 07   . . . . . . . .
B000:0070  20 07 20 07 20 07 20 07-20 07 20 07 20 07 20 07   . . . . . . . .
false

To destroy the machine, type quit or press CTRL-C twice.