# File: copycb.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/eof/src/copycb.src"
descr  "copycb   - load circular buffer test macro"
#
# DSBQUE                ; Disable Queue
tcblock mbipldin 0x0154 
#
#=======================================================
#
#
# ; IP program to test the COPYCB instruction.
# ;
# ; Set up 16 sections in non-EDAC memory.
# ; Circular buffer can hold 3 sections => maxindex = 2
# ; do_loop 
# ;     Copy each section from of the data to a staging buffer
# ;     Use COPYCB to transfer data from staging buffer to Circular buffer
# ;     downlink circular buffer
# ; End of do_loop
# ;
#      FILLBLK  0:0x00000  4096  0  0x1111
tcblock mbipcmd 0x0091 0x0100   0x016C 0x0000 0x0000 0x1000 \
                                0x0000 0x1111 
#      FILLBLK  0:0x01000  4096  0  0x2222
tcblock mbipcmd 0x0091 0x0106   0x016C 0x1000 0x0000 0x1000 \
                                0x0000 0x2222 
#      FILLBLK  0:0x02000  4096  0  0x3333
tcblock mbipcmd 0x0091 0x010C   0x016C 0x2000 0x0000 0x1000 \
                                0x0000 0x3333 
#      FILLBLK  0:0x03000  4096  0  0x4444
tcblock mbipcmd 0x0091 0x0112   0x016C 0x3000 0x0000 0x1000 \
                                0x0000 0x4444 
#      FILLBLK  0:0x04000  4096  0  0x5555
tcblock mbipcmd 0x0091 0x0118   0x016C 0x4000 0x0000 0x1000 \
                                0x0000 0x5555 
#      FILLBLK  0:0x05000  4096  0  0x6666
tcblock mbipcmd 0x0091 0x011E   0x016C 0x5000 0x0000 0x1000 \
                                0x0000 0x6666 
#      FILLBLK  0:0x06000  4096  0  0x7777
tcblock mbipcmd 0x0091 0x0124   0x016C 0x6000 0x0000 0x1000 \
                                0x0000 0x7777 
#      FILLBLK  0:0x07000  4096  0  0x8888
tcblock mbipcmd 0x0091 0x012A   0x016C 0x7000 0x0000 0x1000 \
                                0x0000 0x8888 
#      FILLBLK  0:0x08000  4096  0  0x9999
tcblock mbipcmd 0x0091 0x0130   0x016C 0x8000 0x0000 0x1000 \
                                0x0000 0x9999 
#      FILLBLK  0:0x09000  4096  0  0xAAAA
tcblock mbipcmd 0x0091 0x0136   0x016C 0x9000 0x0000 0x1000 \
                                0x0000 0xAAAA 
#      FILLBLK  0:0x0A000  4096  0  0xBBBB
tcblock mbipcmd 0x0091 0x013C   0x016C 0xA000 0x0000 0x1000 \
                                0x0000 0xBBBB 
#      FILLBLK  0:0x0B000  4096  0  0xCCCC
tcblock mbipcmd 0x0091 0x0142   0x016C 0xB000 0x0000 0x1000 \
                                0x0000 0xCCCC 
#      FILLBLK  0:0x0C000  4096  0  0xDDDD
tcblock mbipcmd 0x0091 0x0148   0x016C 0xC000 0x0000 0x1000 \
                                0x0000 0xDDDD 
#      FILLBLK  0:0x0D000  4096  0  0xEEEE
tcblock mbipcmd 0x0091 0x014E   0x016C 0xD000 0x0000 0x1000 \
                                0x0000 0xEEEE 
#      FILLBLK  0:0x0E000  4096  0  0xFFFF
tcblock mbipcmd 0x0091 0x0154   0x016C 0xE000 0x0000 0x1000 \
                                0x0000 0xFFFF 
# ;
#      SETREGS  R800  6  0:0x00000  1:0x00000  4096L 
tcblock mbipcmd 0x0091 0x015A   0x01B2 0x0320 0x0006 0x0000 \
                                0x0000 0x0000 0x0800 0x1000 \
                                0x0000 
#      SETREGS  R808  8  1:0x00000  17:0x00000  4096 0  0  3
tcblock mbipcmd 0x0091 0x0163   0x01B2 0x0328 0x0008 0x0000 \
                                0x0800 0x0000 0x8800 0x1000 \
                                0x0000 0x0000 0x0003 
# ;
#      SETREGS  R512  2  12288L
tcblock mbipcmd 0x0091 0x016E   0x01B2 0x0200 0x0002 0x3000 \
                                0x0000 
# ;
#      SETREGS  R524  6  0:0x00000  0x4000  0  0xFFFF  0xFFA0
tcblock mbipcmd 0x0091 0x0173   0x01B2 0x020C 0x0006 0x0000 \
                                0x0000 0x4000 0x0000 0xFFFF \
                                0xFFA0 
#      HRDINIT  R524
tcblock mbipcmd 0x0091 0x017C   0x019C 0x020C 
# ;
#      SETREGS  R802  2  1:0x00000
tcblock mbipcmd 0x0091 0x017E   0x01B2 0x0322 0x0002 0x0000 \
                                0x0800 
#      MOVBLKI  R800
tcblock mbipcmd 0x0091 0x0183   0x0166 0x0320 
#      COPYCB   R808
tcblock mbipcmd 0x0091 0x0185   0x01CA 0x0328 
#      MOVBLK   17:0x00000  8:0x00226  12288L
tcblock mbipcmd 0x0091 0x0187   0x0164 0x0000 0x8800 0x0226 \
                                0x4000 0x3000 0x0000 
#      START1HR  3  0x4000  R512
tcblock mbipcmd 0x0091 0x018E   0x0174 0x0003 0x4000 0x0200 
# ;
#      ENDMAC
tcblock mbipcmd 0x0091 0x0192   0x01FC 
# 
#=======================================================
#
# ENBQUE                ; Enable Queue
tcblock mbipldin 0x0136
#
#
return
#
#=======================================================
