Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions docs/2025.4/ch376_file_erase/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,19 +383,18 @@ <h2 id="ch376_file_erase">ch376_file_erase</h2>
<p>Erase file</p>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>
<p>Accumulator * X Register From ch376_wait_response_call<em> Y Register From ch376_wait_response_call
</em><strong>Returns</strong>*</p>
</li>
<li>
<p>Accumulator : ch376 status value</p>
</li>
<li>Accumulator * X Register From ch376_wait_response_call* Y Register From ch376_wait_response_call</li>
</ul>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status value</li>
</ul>
<p>jsr ch376_file_erase
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> jsr ch376_file_erase
; Check accumulator here :
; Ch376_wait_response had been launched
; By ch376_file_erase
```</p>
</code></pre>



Expand Down
17 changes: 8 additions & 9 deletions docs/2025.4/ch376_ic_get_ver/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,17 +383,16 @@ <h2 id="ch376_ic_get_ver">ch376_ic_get_ver</h2>
<p>Get ch376 firmware version</p>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>
<p>Accumulator
<strong><em>Returns</em></strong></p>
</li>
<li>
<p>Accumulator : ch376 firmware version</p>
</li>
<li>Accumulator </li>
</ul>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 firmware version</li>
</ul>
<p>jsr ch376_ic_get_ver
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> jsr ch376_ic_get_ver
; check accumulator for Version (integer value)
```</p>
</code></pre>



Expand Down
17 changes: 8 additions & 9 deletions docs/2025.4/ch376_issue_token_x/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,20 +388,19 @@ <h2 id="ch376_issue_token_x">ch376_issue_token_x</h2>
</ul>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>
<p>Accumulator * X Register * Y Register From ch376_wait_response
<strong><em>Returns</em></strong></p>
</li>
<li>
<p>Accumulator : ch376 status</p>
</li>
<li>Accumulator * X Register * Y Register From ch376_wait_response</li>
</ul>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status</li>
</ul>
<p>lda #$80
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> lda #$80
ldx #$19
jsr ch376_issue_token_x
rts
; check accumulator for ch376 status
```</p>
</code></pre>



Expand Down
17 changes: 8 additions & 9 deletions docs/2025.4/ch376_lib_version/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,14 @@ <h2 id="ch376_lib_version">ch376_lib_version</h2>
<p>Get lib version</p>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>
<p>Accumulator
<strong><em>Returns</em></strong></p>
</li>
<li>
<p>Accumulator : ch376 lib version</p>
</li>
<li>Accumulator </li>
</ul>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 lib version</li>
</ul>
<p>jsr ch376_lib_version
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> jsr ch376_lib_version
cmp #CH376_LIB_VERSION_2024_2
beq @right_version
; Wrong version
Expand All @@ -400,7 +399,7 @@ <h2 id="ch376_lib_version">ch376_lib_version</h2>
@right_version:
...
rts
```</p>
</code></pre>



Expand Down
5 changes: 3 additions & 2 deletions docs/2025.4/ch376_rd_usb_data0/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,11 @@ <h2 id="ch376_rd_usb_data0">ch376_rd_usb_data0</h2>
<li>X Register : X position</li>
<li>Y Register : Button </li>
</ul>
<p>jsr ch376_rd_usb_data0
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> jsr ch376_rd_usb_data0
Read registers
rts
```</p>
</code></pre>



Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_reset_all/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,11 @@ <h2 id="ch376_reset_all">ch376_reset_all</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>Accumulator * X Register * Y Register
jsr ch376_reset_all
rts
```</li>
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> jsr ch376_reset_all
rts
</code></pre>



Expand Down
17 changes: 8 additions & 9 deletions docs/2025.4/ch376_seek_file/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,22 +390,21 @@ <h2 id="ch376_seek_file">ch376_seek_file</h2>
</ul>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>
<p>Accumulator * X Register from ch376_wait_response call<em> Y Register from ch376_wait_response call
</em><strong>Returns</strong>*</p>
</li>
<li>
<p>Accumulator : ch376 status values</p>
</li>
<li>Accumulator * X Register from ch376_wait_response call* Y Register from ch376_wait_response call</li>
</ul>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : ch376 status values</li>
</ul>
<p>lda #$04
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> lda #$04
sta RES
lda #$01
ldy #$02
ldx #$03
jsr ch376_seek_file
; check accumulator here ch376_wait_response had been launched by ch376_seek_file
```</p>
</code></pre>
<div class="admonition note">
<p class="admonition-title">Not tested</p>
</div>
Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_set_bytes_read/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,11 +398,12 @@ <h2 id="ch376_set_bytes_read">ch376_set_bytes_read</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>X Register * Accumulator
lda #$02
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> lda #$02
ldy #$10
jsr ch376_set_bytes_read
```</li>
</ul>
</code></pre>
<hr/>
<h2 id="ch376_write_entry_point">ch376_write_entry_point</h2>

Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_set_bytes_write/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,12 @@ <h2 id="ch376_set_bytes_write">ch376_set_bytes_write</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>X Register * Accumulator
lda #$02
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> lda #$02
ldy #$10
jsr ch376_set_bytes_write
```</li>
</ul>
</code></pre>



Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_set_config/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,11 @@ <h2 id="ch376_set_config">ch376_set_config</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>X Register
lda #$02
jsr ch376_set_config
```</li>
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> lda #$02
jsr ch376_set_config
</code></pre>



Expand Down
8 changes: 5 additions & 3 deletions docs/2025.4/ch376_set_file_name/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,15 @@ <h2 id="ch376_set_file_name">ch376_set_file_name</h2>
<ul>
<li>RES</li>
<li>Accumulator * Y Register
lda #<myfile #="" ldy="">myfile
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> lda #&lt;myfile
ldy #&gt;myfile
jsr ch376_set_file_name
rts
myfile:
.byte "hello.txt"
```</myfile></li>
</ul>
</code></pre>



Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_set_register/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,14 @@ <h2 id="ch376_set_register">ch376_set_register</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>Accumulator
lda #$0B
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> lda #$0B
ldx #$17
ldy #$D8
jsr ch376_set_register
rts
```</li>
</ul>
</code></pre>



Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_set_usb_addr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,13 @@ <h2 id="ch376_set_usb_addr">ch376_set_usb_addr</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>X Register
; Set usb addr
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm">; Set usb addr
lda #$02
jsr ch376_set_usb_addr
rts
```</li>
</ul>
</code></pre>



Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_set_usb_mode/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,12 @@ <h2 id="ch376_set_usb_mode">ch376_set_usb_mode</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>X Register
lda #CH376_USB_MODE_HOST_RESET
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> lda #CH376_USB_MODE_HOST_RESET
jsr ch376_set_usb_mode
rts
```</li>
</ul>
</code></pre>



Expand Down
7 changes: 4 additions & 3 deletions docs/2025.4/ch376_set_usb_speed/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,12 @@ <h2 id="ch376_set_usb_speed">ch376_set_usb_speed</h2>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>X Register
lda #$02
<strong><em>Example</em></strong></li>
</ul>
<pre><code class="language-asm"> lda #$02
jsr ch376_set_usb_speed
rts
```</li>
</ul>
</code></pre>



Expand Down
17 changes: 8 additions & 9 deletions docs/2025.4/ch376_wait_response/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,17 +383,16 @@ <h2 id="ch376_wait_response">ch376_wait_response</h2>
<p>Perform wait_response. It's not needed to call because some commands already perform ch376_wait_response</p>
<p><strong><em>Modify</em></strong></p>
<ul>
<li>
<p>Accumulator * X Register * Y Register
<strong><em>Returns</em></strong></p>
</li>
<li>
<p>Accumulator : "ch376 status" value (or return 1 if usb controller does not respond)</p>
</li>
<li>Accumulator * X Register * Y Register </li>
</ul>
<p><strong><em>Returns</em></strong></p>
<ul>
<li>Accumulator : "ch376 status" value (or return 1 if usb controller does not respond)</li>
</ul>
<p>jsr ch376_wait_response
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> jsr ch376_wait_response
rts
```</p>
</code></pre>



Expand Down
6 changes: 4 additions & 2 deletions docs/2025.4/ch376_wr_usb_data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,15 @@ <h2 id="ch376_wr_usb_data">ch376_wr_usb_data</h2>
<ul>
<li>Accumulator * Y Register * X Register * RESUsed</li>
</ul>
<p>lda #<data #="" ldx="">data
<p><strong><em>Example</em></strong></p>
<pre><code class="language-asm"> lda #&lt;data
ldx #&gt;data
jsr ch376_wr_usb_data
rts
data:
; length, set port feature, set feature, port_power,0, Id port, 0, 0, 0
.byte 8,$23,3,8,0,1,0,0
```</data></p>
</code></pre>



Expand Down
2 changes: 1 addition & 1 deletion docs/search/search_index.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions mkdocs/docs/2025.4/ch376_file_erase.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ Erase file
***Modify***

* Accumulator * X Register From ch376_wait_response_call* Y Register From ch376_wait_response_call

***Returns***

* Accumulator : ch376 status value

***Example***

```asm
jsr ch376_file_erase
; Check accumulator here :
; Ch376_wait_response had been launched
Expand Down
4 changes: 4 additions & 0 deletions mkdocs/docs/2025.4/ch376_ic_get_ver.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ Get ch376 firmware version
***Modify***

* Accumulator

***Returns***

* Accumulator : ch376 firmware version

***Example***

```asm
jsr ch376_ic_get_ver
; check accumulator for Version (integer value)
```
Expand Down
4 changes: 4 additions & 0 deletions mkdocs/docs/2025.4/ch376_issue_token_x.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ Send Token for control transfert
***Modify***

* Accumulator * X Register * Y Register From ch376_wait_response

***Returns***

* Accumulator : ch376 status

***Example***

```asm
lda #$80
ldx #$19
jsr ch376_issue_token_x
Expand Down
Loading