IWM: Some Undocumented Features M A, April 10, 1984 Durinc the course C·f cebu:ioinc the ha.rdwa.re and firrr.·...·a.re for the LIF.;JN contro-1ler, we !"1ave cc.me across -t,,·o a.spects of the ope:-a.tion of the IWM abc:..:t v.:h1ch v.·ere unaware. This q:.i1rl-: irwc·he: ·..vr:ti:-.g data. ::i fast, C..5/i;Chrc.riOW5 IT::·je with tt"1e e502. T.~e w·hen ·....,.rit:n; data t.:i the IWM. ~.-oblerr, a.:-is~:; Durin; a:;1 r,chrc•r1c·ws ·.•:r:tes, trie :1-·1ft r.:~ister is lca.c:!=d frc·m t:-,e ·~;ritE la:::-, e.'Hf tr"te time. Fer 9 FCLK per:::s after the shift r~;::ter lead, v:rites t;:. "::-1e t,,·rite !.itch a.re di:o.~l~c. r•a.ta. cc. ..., be •..,·riti:en and re-.... ;1-:::t!rn to tt'le la.tc:-. a.•:er t~a t tr-.e and up u:;til t:-. e: r11:;: t sh! '"t :--e :is ter load. .. .~ .. . - On t:-.e .t..':ii:le 11 &I le it is custC:mar.,. to a.cc:ess the IWM ir1 ar1 e::ample: 20EO: J87 I 20EO:AG CE (2) 1BB ldy #14 ;F1red II o~ :dfS 2GE2:E SC CO (4) 189 rd:,3 1da 16c 1r, x j If bytt' r~a::o, grab it 20E5:lC FB 21i£2(3) 190 bpl rdh3 20E7:~~ JO 03 (5) 191 sta se ndbuf, y 20£;: 88 (2) 192 de y 20Eo:lC F5 20£2(3) ;9:; bpl rdh3 2QED: 194 f 2GED: 195 * L:ait fo~ /e;.~ t () ge> ] 1)1; 20ED: J 96 f 20EC1: E:C· ED CO 2GFG :E:· EE CO \4) 197 (• " ~I . l c:5 r dr·4 lda Jc.sft,x 1da ~7clr 1 x 2CjF2:2C FB 20F0".3J J99 00 I rdti4 !r1 tt-,:s e:;c.l'\",ple, ci n ..!mber cf b/tes a.re rec..d f:"orn the Ii./~! (2.:·:•..;r.-e that L7 c;.r1d L6 1 c.re cle:.red ~-evio~:ly), and then tt-ie ser.se line is pollec ur-:til i-: :: lcv.., It is net !X·:s:t:le to c'".,:..nge ~::1e 19::: C.mdcrlinedl to a LDA lc:.set,:: , evEn t~;:·.Jgh t'"1E setting cf Le c.r,d L7 a.re ~-::stt..!::.e-d. .~ read from t(e sta. tus register ~1wsi: a.l.,..;a.ys be- frc~. liG.F. :r s:::.rre ct'ie:- clear ~o:c.tion. T'i:s tehavicr, ·.,,•t-1ic:-: is r1.;mc·red to a.lso a.ppea.r in the c::e-ratior; of the disK JC. pc·ses ric prc:·lem5; it is simply something the programmc:r shoulc t"e aware of.