17.05.2015 Views

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction<br />

Some example assembler code for turning the cache off follows:<br />

CacheOut MACRO index, value<br />

MOV<br />

AL, index<br />

OUT<br />

22h, AL<br />

MOV<br />

AL, value<br />

OUT<br />

23h, AL<br />

ENDM<br />

CLI<br />

MOV<br />

EAX, CRO<br />

OR EAX, 40000000h set bit 30, turn off cache<br />

MOV<br />

CRO, EAX<br />

WBINVD<br />

for external cache coherency<br />

CacheOut OCOh, OOh<br />

CacheOut OClh, OOh<br />

CacheOut OC4h, OOh<br />

CacheOut OC5h, OOh<br />

CacheOut OC6h, OFh<br />

CacheOut OC7h, OOh<br />

CacheOut OC8h, OOh<br />

CacheOut OC9h, OOh<br />

CacheOut OCAh, OOh<br />

CacheOut OCBh, OOh<br />

CacheOut OCCh, OOh<br />

CacheOut OCDh, OOh<br />

CacheOut OCEh, OOh<br />

CacheOut OCFh, OOh<br />

WBINVD<br />

MOV<br />

EAX, CRO<br />

AND EAX, OBFFFFFFFh<br />

MOV<br />

CRO, EAX<br />

STI<br />

C-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!