From 3baba53df8b153c0441497dc1fc21d2cbc768f7e Mon Sep 17 00:00:00 2001 From: jede Date: Sat, 27 Jan 2024 23:27:20 +0100 Subject: [PATCH] fix --- src/_ch376_set_bytes_read.s | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/_ch376_set_bytes_read.s b/src/_ch376_set_bytes_read.s index 7ec0d9a..7a1ee90 100644 --- a/src/_ch376_set_bytes_read.s +++ b/src/_ch376_set_bytes_read.s @@ -9,19 +9,7 @@ .import _ch376_wait_response -.proc ch376_set_bytes_write - ;;@brief Set bytes to write. Manage only 16 bits. Others bytes are set to 0 to provide 32 bits integer to ch376 chip - ;;@inputA Low value - ;;@inputY High value - ;;@modifyX - ;;@modifyA - ;;@```ca65 - ;;@` lda #$02 - ;;@` ldy #$10 - ;;@` jsr ch376_set_bytes_write - ;;@``` - jmp ch376_set_bytes_read::write_entry_point -.endproc + .proc _ch376_set_bytes_write ;;@proto void ch376_set_bytes_write(unsigned int nb); @@ -69,3 +57,16 @@ write_entry_point: +.proc ch376_set_bytes_write + ;;@brief Set bytes to write. Manage only 16 bits. Others bytes are set to 0 to provide 32 bits integer to ch376 chip + ;;@inputA Low value + ;;@inputY High value + ;;@modifyX + ;;@modifyA + ;;@```ca65 + ;;@` lda #$02 + ;;@` ldy #$10 + ;;@` jsr ch376_set_bytes_write + ;;@``` + jmp ch376_set_bytes_read::write_entry_point +.endproc