Add debug function for poking ram

This commit is contained in:
Tobias Diedrich
2022-01-23 16:35:36 +01:00
parent cf89637148
commit e1c342b8e6
+11
View File
@@ -1735,6 +1735,8 @@ _setup_dispatch_table:
JMP _usb_setup_default
DW 0xc090
JMP _usb_dth_vend_read_ram
DW 0x4091
JMP _usb_htd_vend_write_ram
DW 0xc092
JMP _usb_dth_vend_read_i2c
DW 0xc094
@@ -2209,6 +2211,15 @@ _usb_dth_vend_read_ram:
B0MOV UE0R, A
RET
_usb_htd_vend_write_ram:
B0MOV A, wIndexLo
B0MOV Z, A
B0MOV A, wIndexHi
B0MOV Y, A
B0MOV A, wValueLo
B0MOV @YZ, A
JMP _usb_write_ep0
_usb_dth_vend_read_code:
MOV A, #0
B0MOV UDP0, A