Giter Site home page Giter Site logo

Comments (8)

GeorgRottensteiner avatar GeorgRottensteiner commented on May 26, 2024

Is there anything after this line?
What is before that line?

That line by itself only sets the start address of anything after it. If there was something before any memory between that location and $3f00 should be filled with zeroes (is that what isn't happening?)

from c64studio.

mwedmark avatar mwedmark commented on May 26, 2024

from c64studio.

GeorgRottensteiner avatar GeorgRottensteiner commented on May 26, 2024

from c64studio.

mwedmark avatar mwedmark commented on May 26, 2024

Ah sorry, It's a bug in my Hexviewer (in Notepad++).
But for example
*=$2500+10

gives a file with size: 7 435 bytes ( $1D0B)

There's something weird going on..

from c64studio.

GeorgRottensteiner avatar GeorgRottensteiner commented on May 26, 2024

I think I've fixed it with commit fa8291a. Can you please try with the WIP build unter https://www.georg-rottensteiner.de/webmisc/C64StudioRelease.zip?

from c64studio.

mwedmark avatar mwedmark commented on May 26, 2024

Or actually sorry again. because of two labels, one from the original program and one from the data I think I'm wrong!

Because the first * is $0801 and last * is $250A the total size if just between these:

$250A - $0801 = 1D09 and adding the last lda#00 instruction => $1D0B

Sorry for the inconvenience!! Such a GREAT tool, especially when using it with my new cart Kung Fu Flash. I've added a "Download to C64" which works 100%.

Here's the example:

!to "sidasm.prg", cbm
!cpu 6510
!ct pet

;SIDLoad = $11c0 ; found in the 125th/126th byte of the PSID header (7C bytes in)
;!!!NOTE!!! this is a C64 load address and therefore in low/high order.
;SIDInit = $11c0 ; found in the 11th/12th byte of the PSID header (10 bytes in)
;SIDUpdate = $11e7 ; found in the 13th/14th byte of the PSID header (12 bytes in)
;PSIDHeaderSize = $7c ; v2 ie size found at the 8th byte of the PSID header (7 bytes in)

TrackIndex = 0 ; check 15th/16th byte to see how many tracks are
; in the file and hence how high you can
; make this value.

ZPProcessorPortDDR = $00
ProcessorPortDDRDefault = %101111
ZPProcessorPort = $01
ProcessorPortAllRAMWithIO = %100101

CIA1InterruptControl = $dc0d
CIA2InterruptControl = $dd0d

VIC2ScreenControlV = $d011
VIC2Raster = $d012
VIC2InteruptStatus = $d019
VIC2InteruptControl = $d01a
VIC2BorderColour = $d020
VIC2ScreenColour = $d021

VIC2Colour_White = 1
VIC2Colour_LBlue = $e

KERNALIRQServiceRoutineLo = $fffe
KERNALIRQServiceRoutineHi = $ffff

!macro AckRasterIRQ {
lda #1
sta VIC2InteruptStatus
}

!macro AckAllIRQs {
lda CIA1InterruptControl
lda CIA2InterruptControl
lda #$ff
sta VIC2InteruptStatus
}

*= $0801
!byte $0b,$08,$01,$00,$9e ; Line 1 SYS2061
!convtab pet
!tx "2061"
!byte $00,$00,$00

!zn
; EXTRA CODE HERE

!align 1, 0 ; wait for even address
SIDLoadAddr !word
SIDInitAddr !word
SIDUpdateAddr !word

*= $250A ;$1f00+2000 ;1530
StartOfSID
lda #00

from c64studio.

GeorgRottensteiner avatar GeorgRottensteiner commented on May 26, 2024

I think in that case the fix should help with that issue. Have you tried it?

Hint: The BASIC start line can be shortened to

  • = $0801
    !basic

!zn

from c64studio.

mwedmark avatar mwedmark commented on May 26, 2024

Thanks for the tip. I'll check that. Sorry to say, I have no known bug to test. Everything was User faults. But thanks to your quick support I've found my current bug. I'm trying to add SID player to Kung Fu Flash cartridge. Combination of C64 assembler and STM32 C code.

from c64studio.

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.