Professional Documents
Culture Documents
;
;
;
INCLUDE "TrainData.txt"
Start:
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
LoopCounter
EQU
; We use the CJNE instruction to exit from the loop once our
; LoopCounter reaches the value of 64 since there are only 64
; columns of train data in the TrainData.txt file.
Loop:
MOV LoopCounter,#0
MOV A,LoopCounter
;
;
;
;
;
;
;
;
;
;
;
MOVC A,@A+DPTR
MOV P0,A
INC LoopCounter
MOV A,LoopCounter
CJNE A,#64,Loop
Done:
SJMP Done