Skip to content

Memory contention

Manuel Sainz de Baranda y Goñi edited this page Oct 12, 2022 · 19 revisions
Assembly T-states prefix M1 M1 M2 M3 M4 M5
ld J,K 4 fetch(pc)
ld O,P 44 fetch(pc) fetch(pc+1)
ld J,BYTE 43 fetch(pc) read(pc+1)
ld O,BYTE 443 fetch(pc) fetch(pc+1) read(pc+2)
ld J,(hl) 43 fetch(pc) read(hl)
ld J,(XY+OFFSET) 44353 fetch(pc) fetch(pc+1) read(pc+2) %:5 read(EA)
ld (hl),K 43 fetch(pc) write(hl)
ld (XY+OFFSET),K 44353 fetch(pc) fetch(pc+1) read(pc+2) %:5 write(EA)
ld (hl),BYTE 433 fetch(pc) read(pc+1) write(hl)
ld (XY+OFFSET),BYTE 44353 fetch(pc) fetch(pc+1) read(pc+2) read(pc+3):2 write(EA)
ld a,(bc) 3 fetch(pc) read(bc)
ld a,(de) 3 fetch(pc) read(de)
ld a,(WORD) 4333 fetch(pc) read(pc+1) read(pc+2) read(WORD)
ld (bc),a 43 fetch(pc) write(bc)
ld (de),a 43 fetch(pc) write(de)
ld (WORD),a 4333 fetch(pc) read(pc+1) read(pc+2) write(WORD)
ld a,i 45 fetch(pc) fetch(pc):1
ld a,r 45 fetch(pc) fetch(pc):1
ld i,a 45 fetch(pc) fetch(pc):1
ld r,a 45 fetch(pc) fetch(pc):1
ld SS,WORD 433 fetch(pc) read(pc+1) read(pc+2)
ld XY,WORD 4433 fetch(pc) fetch(pc+1) read(pc+2) read(pc+3)
ld hl,(WORD) 43333 fetch(pc) read(pc+1) read(pc+2) read(WORD) read(WORD+1)
ld SS,(WORD) 443333 fetch(pc) fetch(pc+1) read(pc+2) read(pc+3) read(WORD) read(WORD+1)
ld XY,(WORD) 443333 fetch(pc) fetch(pc+1) read(pc+2) read(pc+3) read(WORD) read(WORD+1)
ld (WORD),hl 43333 fetch(pc) read(pc+1) read(pc+2) write(WORD) write(WORD+1)
ld (WORD),SS 443333 fetch(pc) fetch(pc+1) read(pc+2) read(pc+3) write(WORD) write(WORD+1)
ld (WORD),XY 443333 fetch(pc) fetch(pc+1) read(pc+2) read(pc+3) write(WORD) write(WORD+1)
ld sp,hl 6 fetch(pc):2
ld sp,XY 46 fetch(pc) fetch(pc+1):2
push TT 533 fetch(pc):1 write(sp-1) write(sp-2)
push XY 4533 fetch(pc) fetch(pc+1):1 write(sp-1) write(sp-2)
pop TT 433 fetch(pc) read(sp) read(sp+1)
pop XY 4433 fetch(pc) fetch(pc+1) read(sp) read(sp+1)
ex de,hl 4 fetch(pc)
ex af,af' 4 fetch(pc)
exx 4 fetch(pc)
ex (sp),hl 43435 fetch(pc) read(sp) read(sp+1):1 write(sp+1) write(sp):2
ex (sp),XY 443435 fetch(pc) fetch(pc+1) read(sp) read(sp+1):1 write(sp+1) write(sp):2
ldX 4435 fetch(pc) fetch(pc+1) read(hl) write(de):2
ldXr 44355 fetch(pc) fetch(pc+1) read(hl) write(de):2 %:5
ldXr (false) 4435 fetch(pc) fetch(pc+1) read(hl) write(de):2
cpX 4435 fetch(pc) fetch(pc+1) read(hl) %:5
cpXr 44355 fetch(pc) fetch(pc+1) read(hl) %:5 %:5
cpXr (false) 4435 fetch(pc) fetch(pc+1) read(hl) %:5
Clone this wiki locally