Jump to content
IGNORED

SpiceWare's Blog - SpiceC dasm usage figured out


RSS Bot

Recommended Posts

In the prior SpiceC blog post I showed what a config file would look like:

GameKernel:    INCLUDE GAME_KERNEL    INCLUDE SCORE_KERNEL OverScan:   ... 

Turns out dasm does not support constants for include files!?!?!? So I updated dasm ;)

After getting that issue resolved, I created a few dummy kernels that displayed different colors to confirm that the kernel selections were working correctly. A key part of how that works is all Score Kernels include a constant defining how many scanlines they'll use:
       ldx #192 - SCORE_SCANLINESKernelLoop:           stx WSYNC       ;        DIGITAL_AUDIO   ; 5  5        txa             ; 2  7        and #15         ; 2  9        ora #$C0        ; 2 11 green        sta COLUBK      ; 3 14        dex             ; 2 16        bne KernelLoop  ; 2 18

I do plan to allow some control for the score kernel heights - you'll be able to adjust the font size so the config file will contain something like:
SCORE_SCANLINES = 22 + SCORE_FONT_HEIGHT

I also modified the short descriptions in the kernels to show the colors to make it easier to test:



For the first test I selected the green game kernel and the 30 scanline red score kernel:




Next up, the blue game kernel without a score kernel:




Last test, the same blue game kernel with the 50 scanline white score kernel:




So now that I've figured out how the dasm side of the projects will work, I need to figure out the C side. I suspect this next part will take a month or two.







Attached thumbnail(s)
  • blogentry-3056-0-23550800-1519957580_thu
  • blogentry-3056-0-64567000-1519957584_thu
  • blogentry-3056-0-22329900-1519957621_thu
  • blogentry-3056-0-34799000-1519957624_thu
  • blogentry-3056-0-17908800-1519957662_thu
  • blogentry-3056-0-26329700-1519957668_thu
  • blogentry-3056-0-95168900-1519958269_thu


http://atariage.com/forums/blog/148/entry-14585-spicec-dasm-usage-figured-out/
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...