Comments (5)
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.
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.
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.
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.
works for me . thanks
from 6502.net.
Related Issues (15)
- Symbol definition issues - Case sensitivity in macro parameters, assigning address type variables HOT 8
- Cannot use the +/- anonymous labels preceding a macro call HOT 4
- Underscore labels not working in macro arguments HOT 2
- Sixty502DotNetParser symbol not found? HOT 2
- Something I really miss: A simple way to assemble from string to byte[] HOT 3
- Incorrect assembly for the Z80 HOT 2
- Is there any way to relate the program counter to the line in the code? HOT 2
- Assigning a label broke recently HOT 19
- Crash with the functions HOT 4
- Negative numbers not supported HOT 1
- Cannot 'lda' with the 'least significant' operator for certain negative numbers HOT 2
- [Request] Custom Args HOT 2
- Build Errors HOT 2
- Has concatenating macro arguments changed? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 6502.net.