78
K
A
DAK
AMX Timing Control
The Timer Procedure can be coded in assembler as a FAR procedure as follows:TMR_CODE SEGMENT BYTE 'CODE'
;
; The Timer Procedure is located in user program memory
;ASSUME CS:TMR_CODE
;
TRUSER PROC FAR
MOV DX,WORD PTR [BP] ;DX = timer id
LES BX,DWORD PTR [BP+2] ;ES:BX = 32-bit timer parameter
:
:
Timer Procedure code goes here
:
:
RET
;
TRUSER ENDP
;
TMR_CODE ENDS