GithubHelp home page GithubHelp logo

Comments (5)

informedcitizenry avatar informedcitizenry commented on May 23, 2024 1

Okay thanks. Yes, currently the output buffer is static 64KiB byte array, so this would require a rework, which I have been thinking about anyway, since an 65816 can conceivably support 16MiB program. I'll mark this as an enhancement to track and hopefully can include this in a couple releases.

from 6502.net.

informedcitizenry avatar informedcitizenry commented on May 23, 2024

The .bank directive is currently only available for 65816 assembly to support long addressing (>64Kb). If we had a way to do what you are asking, do you have sample code demonstrating how it might be used?

from 6502.net.

JettMonstersGoBoom avatar JettMonstersGoBoom commented on May 23, 2024

for example i'd suggest only allowing one size specification like
.banksize=$4000
.bank 0
.relocate $8000
some code
set second code bank to 2 ( depends on hardware )
NES for example has two pagable rom banks for code individually selectable.
.endbank
.bank 1
.relocate $c000
more code
.endbank
.bank 2
.relocate $c000
more code
.endbank
.bank 3
.relocate $c000
more code
.endbank
.bank 4
.binclude "chars.chr"
.endbank
.bank 5
.binclude "sprites.chr"
.endbank

expected result is a file $18000 bytes

from 6502.net.

informedcitizenry avatar informedcitizenry commented on May 23, 2024

The latest release should address what you are wanting to do (if I understand correctly the intent). You will need to pass the --long-addressing option. The sample code you wrote above would be like this:

		* = $8000

bank0     lda #$00
		tax
		jsr $c000
		// more code
		.fill $4000 - (* - bank0)

bank1      nop
		// more code
		.fill $4000 - (* - bank1), 0

bank2      nop
		// more code
		.fill $4000 - (* - bank2), 0

bank3      nop
		// more code
		.fill $4000 - (* - bank3), 0

               // etc....

from 6502.net.

JettMonstersGoBoom avatar JettMonstersGoBoom commented on May 23, 2024

works for me . thanks

from 6502.net.

Related Issues (15)

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.