005A Protocol - Record Key Processing Vector for S3C8+
Posted: Mon Mar 06, 2023 12:14 pm
I've been using RMPB to review existing protocols and have been focused on the NEC 005A since it has applicability to one of the issues that brought me back here in the first place.
Anyway, I looked at an old doc that Rob did commenting on the 005A protocol for the SC38, and I think I notice a difference between that code and what is being used today.
Here is an excerpt from Rob's commented code:
Notice the CALL 0120H related to the vector for checking if the record key is pressed.
Here is the disassembled code from importing the current 005A protocol using RMPB (the same result came from importing the Hex into PB)
This is for the S3C8+ instead of the SC38 so the vectors are different, but note that the Call is to 0146H which is the IR Engine vector not the Check Record Key vector (which is supposed to be 0133H?). Is that right? This is UEI code from what I understand, but it seems like something has changed since Rob commented on the code for the S3C8.
I have no idea how often the Record Key mode is used, so in most cases this wouldn't present a problem, or maybe I'm not reading this right.
Anyway, I looked at an old doc that Rob did commenting on the 005A protocol for the SC38, and I think I notice a difference between that code and what is being used today.
Here is an excerpt from Rob's commented code:
Code: Select all
L17: INC R01 ; skip control byte
LD RC0, R03 ; load control byte to C0
BTJRF L33, RC0.2 ; if bit2=0, jump to main
; *** 04/05/24 processing ***
CALL 0120H ; record key pressed?
JRNC L33 ; no, skip to main
BTJRT L2D, RC0.5 ; if bit5=1, jump
LD R04, R05 ; copy dev2 to dev1
COM R05 ; comp dev2
JR L3B ; jump back in
Notice the CALL 0120H related to the vector for checking if the record key is pressed.
Here is the disassembled code from importing the current 005A protocol using RMPB (the same result came from importing the Hex into PB)
Code: Select all
L0: INC R01
LD W0, R03
BTJRF L2, W0.2
CALL 0146H
JR NC, L2
BTJRT L1, W0.5
LD R04, R05
COM R05
JR L3
I have no idea how often the Record Key mode is used, so in most cases this wouldn't present a problem, or maybe I'm not reading this right.