Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-code1234 committed Dec 23, 2023
1 parent 72c6deb commit cbb4ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ command. The module should define a main function, which is specified by boot_na
name as module. The function has signature async function(scr), where scr is canvas id, defined in index.html. It
should create and return an object with following structure:
- **cpu** \- CPU object with properties:
- **reset** \- reset CPU: function()
- **reset** \- reset CPU: function()
- **step** \- execute one step: function()
- **setInterrupt** \- request interrupt: function(level)
- **setRegisters** \- set CPU registers/flags: function(regs), where regs is string array
Expand Down Expand Up @@ -149,7 +149,7 @@ parameters for URLSearchParams:
- **keyboard** \- keyboard control: async function(key, code, value)
- **kinfo** \- keyboard info: string, optional

Every URL parameter has accompaning parameter param**_name** to specify a function name to call \(not needed if the
Every URL parameter has accompaning parameter param **_name** to specify a function name to call \(not needed if the
function name is the same as module name), while the parameter specifies a module name to load \(not needed if the
module is already loaded).

Expand Down

0 comments on commit cbb4ff8

Please sign in to comment.