GithubHelp home page GithubHelp logo

Comments (5)

lydon42 avatar lydon42 commented on July 19, 2024

Reset all mappings:

;; remove megabyte maps (setting them to 0 again)
lda #$00
ldx #$0f
ldy #$00
ldz #$0f
map
;; now zero all registers and remove all maps
tax
tay
taz
map
eom

from mega65-user-guide.

dansanderson avatar dansanderson commented on July 19, 2024

@lydon42 Is the issue that the upper bytes of the MAP register are not reset when you do a <1MB MAP setting, or that they are? You're mentioning the zeroing sequence as if that needs emphasis, which suggests the former.

from mega65-user-guide.

lydon42 avatar lydon42 commented on July 19, 2024

Full notes from @ki-bo (discord), emphasis mine:

Note also that if you enable >1MB mapping with

lda #$ff
ldx #$0f
ldy #$00
ldz #$00
map

then you won't disable the MB part with setting A,X,Y,Z to zero. The MB part will still stay. You need to disable MB mapping like this, too:

lda #$00
ldx #$0f
ldy #$00
ldz #$0f
map

So, to be really sure all mappings are reset, you can do this:

lda #$00
ldx #$0f
ldy #$00
ldz #$0f
map
tax
tay
taz
map
eom

from mega65-user-guide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.