Revision 1.0
DMA
99
Figure 4-3
DMA Wait Example
############################################
# Procedure to do DMA waits.
#
# Registers:
#
# $11 used as tmp
#
.name tmp, $11
DMAwait:
# request DMA access: (get semaphore)
mfc0 tmp, SP_RESERVED
bne tmp, zero, DMAwait
# note delay slot
WaitSpin:
mfc0 tmp, DMA_BUSY
bne tmp, zero, WaitSpin
nop
jr return
# clear semaphore, delay slot
mtc0 zero, SP_RESERVED
.unname tmp
#
#
#############################################
Summary of Contents for Ultra64
Page 2: ...2 ...
Page 10: ...10 ...
Page 12: ...12 Figure 6 2 buildtask Operation 137 ...
Page 14: ...14 ...
Page 80: ...80 Vector Unit Instructions vmadm dres_int dres_int vconst 3 vmadn dres_frac vconst vconst 0 ...
Page 104: ...104 RSP Coprocessor 0 ...
Page 150: ...150 Advanced Information ...
Page 155: ...Revision 1 0 155 ...
Page 248: ...248 Exceptions None ...
Page 251: ...Revision 1 0 251 Exceptions None ...
Page 254: ...254 Exceptions None ...
Page 257: ...Revision 1 0 257 Exceptions None ...
Page 293: ...Revision 1 0 293 Exceptions None ...
Page 316: ...316 Exceptions None ...