less CPU demanding InputStrobing

This commit is contained in:
minjaesong
2023-01-16 04:31:31 +09:00
parent af03ab23aa
commit 5b86e88779
6 changed files with 19 additions and 4 deletions

View File

@@ -557,13 +557,16 @@ Address & RW & Description \\
-39 & RW & Text Input Stream control. Write nonzero value to open it. The Keyboard Input Buffer will be cleared whenever the Input Stream is opened. \\
-40 & WO & Latch Keyboard and Mouse input \\
-41..-48 & RO & List of pressed keys (latched by -40) \\
-49 & RO & System Flags A (code{0b r000 000t}, where r: RESET button held, t: STOP button held) \\
-49 & RO & System Flags A (\code{0b r000 000t}, where r: RESET button held, t: STOP button held) \\
-50..-52 & RO & Unused System Flags \\
-65..-68 & RO & Size of the Scratchpad Memory \\
-69 & WO & Counter Latch (\code{0b01}--Uptime, \code{0b10}--RTC) \\
-73..-80 & RO & System Uptime in nanoseconds (latched by -69) \\
-81..-88 & RO & RTC in nanoseconds (latched by -69) \\
-89 & RW & ROM Mapping \\
-90 & RW & Power Management Flags (\code{0b P000 b0ca}), where P: CPU halted, b: the device is battery-operated, c: a battery is detected, a: the battery is charging \\
-91 & RO & BMS Battery Percentage \\
-92 & RO & BMS Battery Voltage multiplied by 10 \\
-1025..-2048 & RW & Reserved for the integrated peripherals \\
-4077..-20480 & $ \ast $ & See \ref{comm-mmio} \\
-65537..-131072 & RO & Contents in the mapped ROM

View File

@@ -82,11 +82,17 @@ This chapter will only briefly list and describe the applications.
\1\dossynopsis{edit}[file]{The interactive full-screen text editor.}
\1\dossynopsis{encodeipf}[1/2 imagefile ipffile]{Encodes the given image file (.jpg, .png, .bmp, .tga) to the IPF format using the graphics hardware.}
\1\dossynopsis{false}{Returns errorlevel 1 upon execution.}
\1\dossynopsis{geturl}[url]{Reads contents on the web address and store it to the disk. Requires Internet adapter.}
\1\dossynopsis{hexdump}[file]{Prints out the contents of a file in hexadecimal view. Supports pipe.}
\1\dossynopsis{less}[file]{Allows user to read the long text, even if they are wider and/or taller than the screen. Supports pipe.}
\1\dossynopsis{playmov}[file]{Plays tsvmmov-formatted video. Use /i flag for playback control.}
\1\dossynopsis{playmp2}[file]{Plays MP2 (MPEG-1 Audio Layer II) formatted audio. Use /i flag for playback control.}
\1\dossynopsis{playpcm}[file]{Plays raw PCM audio. Use /i flag for playback control.}
\1\dossynopsis{playwav}[file]{Plays linear PCM/ADPCM audio. Use /i flag for playback control.}
\1\dossynopsis{printfile}[file]{Prints out the contents of a textfile with line numbers. Useful for making descriptive screenshots.}
\1\dossynopsis{touch}[file]{Updates a file's modification date. New file will be created if the specified file does not exist.}
\1\dossynopsis{true}{Returns errorlevel 0 upon execution.}
\1\dossynopsis{zfm}{Z File Manager. A two-panel graphical user interface to navigate the system using arrow keys. Hit Z to switch panels.}
\end{outline}