kann ich im ASM irgendwo kontrollieren, das der Schedler auch in diese Process-Routine springt?
Wenn ich richtig sehe, ist auch der Process im ">> Process Queue and Scheduler Init <<":
Code
; >> Process Queue and Scheduler Init <<
LDI _ACCALO, 0A5h
LDI _ACCAHI, 05Ah
STS SYSTEM.$Main_stk_chk, _ACCALO
STS SYSTEM.$Main_stk_chk+1, _ACCAHI
STS SYSTEM.$Main_frm_chk, _ACCALO
STS SYSTEM.$Main_frm_chk+1, _ACCAHI
LDI _ACCB, SYSTEM.PP_MAIN_PROC AND 0FFh
LDI _ACCA, SYSTEM.PP_MAIN_PROC SHRB 8
MOVW $_CurProcess, _ACCB
.DEB $_CurProcIni
LDI _ACCA, 08h
STS SYSTEM.PP_MAIN_PROC+0, _ACCA
LDI _ACCA, 5
STS SYSTEM.PP_MAIN_PROC+1, _ACCA
STS SYSTEM.PP_MAIN_PROC+2, _ACCA
LDI _ACCB, SYSTEM.$Main_reg AND 0FFh
LDI _ACCA, SYSTEM.$Main_reg SHRB 8
STS SYSTEM.PP_MAIN_PROC+11, _ACCA
STS SYSTEM.PP_MAIN_PROC+10, _ACCB
LDI _ACCB, SYSTEM.PP_LCD_Displ AND 0FFh
LDI _ACCA, SYSTEM.PP_LCD_Displ SHRB 8
STS SYSTEM.PP_MAIN_PROC+15, _ACCA
STS SYSTEM.PP_MAIN_PROC+14, _ACCB
LDI _ACCA, 0
STS SYSTEM.PP_MAIN_PROC+5, _ACCA
.DEB $_CurProcIni_X
LDI _ACCALO, 0A5h
LDI _ACCAHI, 05Ah
STS PVS2018.$LCD_Displ_stk_chk, _ACCALO
STS PVS2018.$LCD_Displ_stk_chk+1, _ACCAHI
STS PVS2018.$LCD_Displ_frm_chk, _ACCALO
STS PVS2018.$LCD_Displ_frm_chk+1, _ACCAHI
LDI _ACCA, 10h
STS SYSTEM.PP_LCD_Displ+0, _ACCA
LDI _ACCA, 5
STS SYSTEM.PP_LCD_Displ+1, _ACCA
STS SYSTEM.PP_LCD_Displ+2, _ACCA
LDI _ACCB, PVS2018.$LCD_Displ_frame_e AND 0FFh
LDI _ACCA, PVS2018.$LCD_Displ_frame_e SHRB 8
STS SYSTEM.PP_LCD_Displ+9, _ACCA
STS SYSTEM.PP_LCD_Displ+8, _ACCB
LDI _ACCB, PVS2018.$LCD_Displ_stk_e AND 0FFh
LDI _ACCA, PVS2018.$LCD_Displ_stk_e SHRB 8
SUBI _ACCB, 005h
SBCI _ACCA, 000h
MOVW _ACCCLO, _ACCB
STS SYSTEM.PP_LCD_Displ+7, _ACCA
STS SYSTEM.PP_LCD_Displ+6, _ACCB
LDI _ACCB, PVS2018.$LCD_Displ_reg AND 0FFh
LDI _ACCA, PVS2018.$LCD_Displ_reg SHRB 8
STS SYSTEM.PP_LCD_Displ+11, _ACCA
STS SYSTEM.PP_LCD_Displ+10, _ACCB
LDI _ACCB, SYSTEM.PP_USB_RxTx AND 0FFh
LDI _ACCA, SYSTEM.PP_USB_RxTx SHRB 8
STS SYSTEM.PP_LCD_Displ+15, _ACCA
STS SYSTEM.PP_LCD_Displ+14, _ACCB
LDI _ACCA, 001h
STS SYSTEM.PP_LCD_Displ+5, _ACCA
LDI _ACCA, 80h
ST Z+, _ACCA
CLR _ACCB
ST Z+, _ACCB
ST Z+, _ACCA
LDI _ACCB, PVS2018.LCD_Displ SHRB 1
LDI _ACCA, PVS2018.LCD_Displ SHRB 9
LDI _ACCALO, PVS2018.LCD_Displ SHRB 17
ST Z+, _ACCALO
ST Z+, _ACCA
ST Z, _ACCB
LDI _ACCALO, 0A5h
LDI _ACCAHI, 05Ah
STS PVS2018.$USB_RxTx_stk_chk, _ACCALO
STS PVS2018.$USB_RxTx_stk_chk+1, _ACCAHI
STS PVS2018.$USB_RxTx_frm_chk, _ACCALO
STS PVS2018.$USB_RxTx_frm_chk+1, _ACCAHI
LDI _ACCA, 10h
STS SYSTEM.PP_USB_RxTx+0, _ACCA
LDI _ACCA, 3
STS SYSTEM.PP_USB_RxTx+1, _ACCA
STS SYSTEM.PP_USB_RxTx+2, _ACCA
LDI _ACCB, PVS2018.$USB_RxTx_frame_e AND 0FFh
LDI _ACCA, PVS2018.$USB_RxTx_frame_e SHRB 8
STS SYSTEM.PP_USB_RxTx+9, _ACCA
STS SYSTEM.PP_USB_RxTx+8, _ACCB
LDI _ACCB, PVS2018.$USB_RxTx_stk_e AND 0FFh
LDI _ACCA, PVS2018.$USB_RxTx_stk_e SHRB 8
SUBI _ACCB, 005h
SBCI _ACCA, 000h
MOVW _ACCCLO, _ACCB
STS SYSTEM.PP_USB_RxTx+7, _ACCA
STS SYSTEM.PP_USB_RxTx+6, _ACCB
LDI _ACCB, PVS2018.$USB_RxTx_reg AND 0FFh
LDI _ACCA, PVS2018.$USB_RxTx_reg SHRB 8
STS SYSTEM.PP_USB_RxTx+11, _ACCA
STS SYSTEM.PP_USB_RxTx+10, _ACCB
LDI _ACCB, SYSTEM.PP_ReadZKS AND 0FFh
LDI _ACCA, SYSTEM.PP_ReadZKS SHRB 8
STS SYSTEM.PP_USB_RxTx+15, _ACCA
STS SYSTEM.PP_USB_RxTx+14, _ACCB
LDI _ACCA, 003h
STS SYSTEM.PP_USB_RxTx+5, _ACCA
LDI _ACCA, 80h
ST Z+, _ACCA
CLR _ACCB
ST Z+, _ACCB
ST Z+, _ACCA
LDI _ACCB, PVS2018.USB_RxTx SHRB 1
LDI _ACCA, PVS2018.USB_RxTx SHRB 9
LDI _ACCALO, PVS2018.USB_RxTx SHRB 17
ST Z+, _ACCALO
ST Z+, _ACCA
ST Z, _ACCB
LDI _ACCALO, 0A5h
LDI _ACCAHI, 05Ah
STS PVS2018.$ReadZKS_stk_chk, _ACCALO
STS PVS2018.$ReadZKS_stk_chk+1, _ACCAHI
STS PVS2018.$ReadZKS_frm_chk, _ACCALO
STS PVS2018.$ReadZKS_frm_chk+1, _ACCAHI
LDI _ACCA, 10h
STS SYSTEM.PP_ReadZKS+0, _ACCA
LDI _ACCA, 4
STS SYSTEM.PP_ReadZKS+1, _ACCA
STS SYSTEM.PP_ReadZKS+2, _ACCA
LDI _ACCB, PVS2018.$ReadZKS_frame_e AND 0FFh
LDI _ACCA, PVS2018.$ReadZKS_frame_e SHRB 8
STS SYSTEM.PP_ReadZKS+9, _ACCA
STS SYSTEM.PP_ReadZKS+8, _ACCB
LDI _ACCB, PVS2018.$ReadZKS_stk_e AND 0FFh
LDI _ACCA, PVS2018.$ReadZKS_stk_e SHRB 8
SUBI _ACCB, 005h
SBCI _ACCA, 000h
MOVW _ACCCLO, _ACCB
STS SYSTEM.PP_ReadZKS+7, _ACCA
STS SYSTEM.PP_ReadZKS+6, _ACCB
LDI _ACCB, PVS2018.$ReadZKS_reg AND 0FFh
LDI _ACCA, PVS2018.$ReadZKS_reg SHRB 8
STS SYSTEM.PP_ReadZKS+11, _ACCA
STS SYSTEM.PP_ReadZKS+10, _ACCB
LDI _ACCB, SYSTEM.PP_MAIN_PROC AND 0FFh
LDI _ACCA, SYSTEM.PP_MAIN_PROC SHRB 8
STS SYSTEM.PP_ReadZKS+15, _ACCA
STS SYSTEM.PP_ReadZKS+14, _ACCB
LDI _ACCA, 004h
STS SYSTEM.PP_ReadZKS+5, _ACCA
LDI _ACCA, 80h
ST Z+, _ACCA
CLR _ACCB
ST Z+, _ACCB
ST Z+, _ACCA
LDI _ACCB, PVS2018.ReadZKS SHRB 1
LDI _ACCA, PVS2018.ReadZKS SHRB 9
LDI _ACCALO, PVS2018.ReadZKS SHRB 17
ST Z+, _ACCALO
ST Z+, _ACCA
ST Z, _ACCB
LDI _ACCALO, 0A5h
LDI _ACCAHI, 05Ah
STS $TASKS_stk_chk, _ACCALO
STS $TASKS_stk_chk+1, _ACCAHI
STS $TASKS_frm_chk, _ACCALO
STS $TASKS_frm_chk+1, _ACCAHI
LDI _ACCA, 10h
STS SYSTEM.TT_ControlJob+0, _ACCA
LDI _ACCA, 5
STS SYSTEM.TT_ControlJob+1, _ACCA
STS SYSTEM.TT_ControlJob+2, _ACCA
LDI _ACCA, 002h
STS SYSTEM.TT_ControlJob+5, _ACCA
Ich werde mal schauen ob ich den Process mal per Hand starten kann. Sollte zwar auf Autostart sein, aber ich habe sonst keine Ahnung wo ich hingreifen kann.
Laut GetProcessState ist der Process in Idle, aber er springt ja noch nicht mal da rein