From cbb4ff8cf4907c623d1bd3b71610c4812bfbd8b6 Mon Sep 17 00:00:00 2001 From: alex-code1234 Date: Fri, 22 Dec 2023 21:31:54 -0500 Subject: [PATCH] add documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c093d6..bf148df 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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).