1 ! Copyright (C) 2007 Chris Double.
\r
2 ! See http://factorcode.org/license.txt for BSD license.
\r
3 USING: help.markup help.syntax sequences strings ;
\r
7 { $values { "filename" string } { "cpu" cpu } }
\r
9 "Read the ROM file into the cpu's memory starting at address 0000. "
\r
10 "The filename is relative to the path stored in the " { $link rom-root }
\r
11 " variable. An exception is thrown if this variable is not set."
\r
13 { $see-also load-rom* } ;
\r
16 { $values { "seq" sequence } { "cpu" cpu } }
\r
18 "Loads one or more ROM files into the cpu's memory. Each file is "
\r
19 "loaded at a particular starting address. 'seq' is a sequence of "
\r
20 "2 element arrays. The first element is the address and the second "
\r
21 "element is the file to load at that address." $nl
\r
22 "The filenames are relative to the path stored in the " { $link rom-root }
\r
23 " variable. An exception is thrown if this variable is not set."
\r
26 { $code "{ { HEX: 0000 \"invaders.rom\" } } <cpu> load-rom*" }
\r
28 { $see-also load-rom } ;
\r
32 "Holds the path where the ROM files are stored. Used for expanding "
\r
33 "the relative filenames passed to " { $link load-rom } " and "
\r
34 { $link load-rom* } "."
\r
36 { $see-also load-rom load-rom* } ;
\r
38 ARTICLE: { "cpu-8080" "cpu-8080" } "Intel 8080 CPU Emulator"
\r
39 "The cpu-8080 library provides an emulator for the Intel 8080 CPU"
\r
40 " instruction set. It is complete enough to emulate some 8080"
\r
41 " based arcade games." $nl
\r
42 "The emulated CPU can load 'ROM' files from disk using the "
\r
43 { $link load-rom } " and " { $link load-rom* } " words. These expect "
\r
44 "the " { $link rom-root } " variable to be set to the path "
\r
45 "containing the ROM file's." ;
\r
47 ABOUT: { "cpu-8080" "cpu-8080" }
\r