Addressing Capabilities
2-30 M68000 FAMILY PROGRAMMER’S REFERENCE MANUAL MOTOROLA
After a put operation, the put address register points to the last item placed in the queue; the
unchanged get address register points to the last item removed from the queue. After a get
operation, the get address register points to the last item placed in the queue.
.
To implement the queue as a circular buffer, the get or put operation should be performed
first. Then the relevant address register should be checked and adjusted, if necessary.
Adding the buffer length (in bytes) to the address register contents adjusts the address
register.
GET – (Am)
PUT – (An)
HIGH MEMORY
LOW MEMORY
LAST PUT
(FREE)
NEXT GET
LAST GET (FREE)
Commenti su questo manuale