Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support caches #9

Open
mras0 opened this issue Aug 22, 2022 · 0 comments
Open

Support caches #9

mras0 opened this issue Aug 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mras0
Copy link

mras0 commented Aug 22, 2022

Ref: dirkwhoffmann/vAmiga#730 #8

Long term it might be an idea to support caches properly as it's observable to programs. Attached is such an evil Amiga program (verified on a 68EC020). On a real 020 (Note: NOT later version) it should show a black screen. A blue screen is shown otherwise. (The test could be improved in many ways and assumes instruction cache is enabled).

cache.zip

Source:

start:
        move.w  #$7fff,$dff09a
        move.w  #$7fff,$dff096
        lea     $dff180,a0
        moveq   #0,d0
        move.b  #$0f,d1
        lea     .sup(pc),a1
        move.w  #$f00,(a0)
        lea     .inst+1(pc),a2
        move.l  a1,32.w
        moveq   #0,d2
        move.w  #$2000,sr
.sup
        tst.l   d2
        bne.b   .loop
        addq.l  #1,d2
        cnop    0,4
.loop:
        move.w  d0,(a0)
.inst   moveq   #0,d0
        move.b  d1,(a2)
        bra     .loop

@dirkwhoffmann dirkwhoffmann added the enhancement New feature or request label Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants