Jump to content

Sheddy

Members
  • Posts

    855
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Sheddy

  1. On 2/20/2024 at 6:57 PM, MrFish said:

     

    I'm getting the following error when I attempt to use the color remap batch file from RastaSlide 4.2.

     

    rastaslide42error.thumb.png.7f8e23a431e6d41d76e5f12915b43b30.png

     

     

    Ok, thanks. that's interesting. The GO runtime itself is crashing. Were you able to run it OK on the 4.1 version of the color converter? I'm guessing it is crashing when it tries to open the Windows file selector GUI?

    Feel free to PM me the details

    Kind regards

    Chris

     

     

     

    On 2/20/2024 at 6:57 PM, MrFish said:

     

    [Edit]

    I should note here, I'm running Windows 7 64-bit.

     

  2. Possibly of use, but only for the 8mbit carts. There will be equivalent for 1mbit presumably.

    From an Email with Steve Tucker:

     

    > At some point I'd like to try adding a high score saving function as

    > well, so it'd be good to know the proper way of flashing the cart

    > without relying on my interpretation of a disassembly (and potentially

    > wrecking my cart!)

     

    Hi Chris,

     

    Here is the code I used to save game states for Summer Games. The stuff

      at the end is game specific and probably no useful, but the other routines are

      general purpose calls for erasing a bank and writing from a block of memory

      into the erased area.

     

    If you need any help just yell. :)

     

    Thanks

     

    Steve

    --

    ;;

    ;; XL/XE Equates

    ;;

    inter .equ $3FA ;; Shadow of cartridge interlock

    cartop .equ $BFFF ;; Last byte of cartridge

    trig3 .equ $D013 ;; Wired to cartridge on XL/XE

    random .equ $D20A ;;

    zerobank .equ $D500 ;; Zero bank

     

    ;;

    ;; Flash program registers

    ;;

    copysrc .equ $30 ;; Source pointer

    copydst .equ $32 ;; Destination pointer

    cursec .equ $34 ;; Current sector base

    curbank .equ $35 ;; Current absolute cart bank

    count .equ $36 ;; 16-bit count of data to read/write

    pollsame .equ $39 ;; Write polling scratch register

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Set bank to the base of a 64k 'sector' in flash cartridge

    ;;

    ;; Valid sectors are 8-15 for an 8mbit cartridge, passed in A

    ;;

     

    setsec sta cursec

    and #$0F

    clc

    rol A

    rol A

    rol A

    tax

    sta zerobank,x

    sta curbank

    rts

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Erase a 64k sector of an 8mbit flash cartridge

    ;;

    ;; Valid sectors are 8-15, passed in A

    ;;

     

    erasebk pha

    _ebc1 jsr cmd_unlock

    lda #$80

    jsr wr5555

    jsr cmd_unlock

    pla

    jsr setsec

    lda #$30

    sta carbase

    jsr poll_write

    rts

    .export erasebk

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Increment the source pointer, dec the 16-bit byte counter, carry will be clear if it turns over

    ;;

     

    decctr inc copysrc ;; Increment the source pointer

    bne _dcdst

    inc copysrc+1

    _dcdst inc copydst

    bne _dccmp

    inc copydst+1

    _dccmp lda copydst+1

    cmp #hi(cartop+1)

    bne _decby

    inc curbank

    lda #hi(carbase)

    sta copydst+1

    _decby sec

    lda count

    sbc #$01

    sta count

    lda count+1

    sbc #$00

    sta count+1

    rts

     

             ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

             ;;

             ;; Program upto 64k into a sector of the flash cartridge.

             ;;

             ;; copysrc should be set to the start of data to program.

             ;; count should be set to the total number of bytes to write (0 based)

             ;; sector to write to should be passed in A

    ;;

             ;; you should call erasebk with the sector to erase before programming

             ;;

     

    prgsec jsr setsec

     

    _prgnw lda #lo(carbase)

    sta copydst

    lda #hi(carbase)

    sta copydst+1

     

    _prg1 jsr cmd_unlock

    lda #$A0

    jsr wr5555

    ldx curbank

    sta zerobank,x

    ldy #$00

    lda (copysrc),y

    sta (copydst),y

    jsr decctr

    bcs _prg1

     

    _prgerr rts

    .export prgsec

     

             ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

             ;;

             ;; Program Initalization and Cleanup

             ;;

     

    init lda #$00

    sta nmien

    sta wsync

    rts

     

             ;;

             ;; Cleanup routines

             ;;

     

    cleanup sta cartoff

    sta wsync

    lda trig3

    sta inter

    lda #$40

    sta nmien

             rts

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Poll for flash write operation to complete

    ;;

     

    poll_write lda #$00

    sta pollsame

    _poll_again lda carbase

    cmp carbase

    bne poll_write

    cmp carbase

    bne poll_write

    cmp carbase

    bne poll_write

    inc pollsame

    bne _poll_again

    rts

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Send unlock sequence

    ;;

     

    cmd_unlock lda #$AA

    jsr wr5555

    lda #$55

    jmp wr2AAA

     

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Shortcut to write a few commonly used 17-bit addresses

    ;;

     

    wr5555 sta $d542

    sta $b555

    rts

    wr2AAA sta $d541

    sta $aaaa

    rts

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Write @ sector 2ce from $6320, 2 sector

    ;;

    wr2ce jsr init ;; c4a -> cea9 -> pos 4da

    lda #$08 ;; flash sector 8

    jsr erasebk ;; 02 sectors from 6320 to sector 2CE/2CF

     

    lda #$20

    sta copysrc

    lda #$63

    sta copysrc+1

     

    lda #$FF

    sta count

    lda #$00

    sta count+1

     

    lda #$08

    jsr prgsec

    jsr cleanup

    rts

    .export wr2ce

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Shared memory copy routine. Pass table offset in X

    ;;

    memcpy lda #$00

    sta copysrc

    lda #$A0

    sta copysrc+1

    lda readtab,x

    sta copydst

    inx

    lda readtab,x

    sta copydst+1

    inx

    lda readtab,x

    sta count

    inx

    lda readtab,x

    sta count+1

    inx

    lda readtab,x

    tax

    sta zerobank,x

    _cpsec ldy #$00

    lda (copysrc),y

    sta (copydst),y

    jsr decctr

    bcs _cpsec

    rts

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Flash reads

    ;;

    ;; dest pointer count (zero based) bank flash sector disk sector

    readtab .byte $20, $63, $FF, $00, $40 ;; 8 2CE/2CF

     

     

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    ;;

    ;; Read entry points

    ;;

     

    rd2ce ldx #$00 ;; c09 -> cf02 -> pos 499

    jsr init

    jsr memcpy

    jsr cleanup

    rts

    .export rd2ce

     

    .end

    --

    --

    FREE SHIPPING SALE: http://www.atarimax.com/freeshippingsale/

    --

         * * * Author of Imagic and APE - The Atari Peripheral Emulator! * * *

         * * * Turn your 8-bit Atari into a p

    owerhouse with APE! * * *

        * * * Ape Homepage: http://www.atarimax.com/ * * *

      * * ********************************************************* * *

    !! Request my *FOR SALE* LISTING OF CLASSIC VIDEO GAME STUFF -- 2000+ Items !!

    • Like 1
  3. RastaSlide 4.2.zipRastaSlide 4.2 - RastaConverter Slide Show Maker and Tools

    Changes in version 4.2
    - Reduced Colour Mapping Tool mapping failures by checking deeper upcoming changes @MrFish
    - Fixed truncated slide name display when using many International characters 
    - Fixed corruption on RastaConverter pics extracted from pre-version 4 slide shows
    - Fixed slide names containing full stops not being recognised 
    - Fixed ini problems when re-adding very sparse over-optimized extracted pictures
    - Added support for Windows shortcuts when adding slides
    - RastaConverter pics can now be directly extracted from slide files
    - Changed to zopfli 1.03 as some pictures taking abnormally long compressing
    - Higher default compression settings in zoplfi.ini file --i900 instead of --i150

     

    sheddy_aqua_the_boo_buddy_fish.png

    sheddy_aqua_the_boo_buddy_fish.xex

    • Like 13
    • Thanks 3
  4. On 1/4/2024 at 4:07 PM, zzip said:

    Programmers only optimize when forced.   Since memory upgrades and emulators are widely available,  there's no real incentive to make it all fit in a stock 48K or 64K system, like there would have been for C64 retail releases of these games BITD.

    You'll notice there are nowhere near as many graphic and audio assets on the C64 as on the arcade version, as there's no way they'll fit in a single 64K load. Quick cash in port on all home computer versions back in the day sadly. But you can't really blame them for not wanting to release it on 10 disks

    • Like 3
    • Haha 1
  5. RastaConverter kernels definitely stuff 8-bit, 256 colour values into colour registers. It takes advantage of shared colour and hpos values, but  whether they are more accurate colours also or just a side effect, I don't know.  But they will look different in that special Sophia mode. 

    • Thanks 1
  6. RastaSlide 4.zip

    RastaSlide 4

    - New tool to add high resolution text to the bottom of RastaConverter pictures
    - International character set used for picture name during loading if needed
    - New RastaSlide file format for those features. No longer backward compatible   
    - NTSC/PAL colour mapping tools reinstated in a general colour mapping tool

    image.png.02f1f20086dfa67ceeec1199e7ec7197.png

    An example of the text tool with Amarok's fabulous snowman picture

     

    Please feel free to message me about bugs, questions or suggestions.

     

    Happy Holidays

    Sheddy

    amarok_snowman_'merry_christmas'.xex

    • Like 8
    • Thanks 5
  7. 10 hours ago, Beeblebrox said:

    @Sheddy ok, weird. Given I am still running the conversion for that same image, I dumped another XEX out after a few hours more and that xex runs fine with 3.4. I'll still pop over the version of the image that caused issues but at least 3.4 HPOS tool isn't corrupted. (Quite why the bad xex version worked with 3.3 Hpos I don't know).

     

    I had a glaring HPOS line error in the latest xex dump and you Hpos tool removed it - looks great. Will be posing it tmrw.

     

    :)

    Please, if you could. It looks like the tool failed to undo a move of a HPOS write which didn't fit in the kernel. That is a bad bug as it relies on that function a lot to know what will work or not.

  8. I'm suspecting there's not much. Lack of native GUI support with GO means not many end user programs like PM graphics editors, for example - You'd have to write browser code for the interface and wouldn't need GO at all if someone could already do that. 

    I have code that reads an ATR and XEX but not in a separate package. Other things I've done seem to not be so useful for Atari in general - too low level and specific to use in other projects.

    • Like 1
  9. 36 minutes ago, Beeblebrox said:

    Hi Sheddy 

    Thanks, meant to link to 3.4 the other day. :)

     

    Any news re 3.5 release with text functions? :)

     

    Atari8man2004 is certainly converting some great images. :)

    Taking longer than expected. The story of my life. There's a bunch of issues putting back the NTSC and PAL colour converter which I thought I'd quickly do for MrFish.

    • Like 1
  10. On 8/20/2023 at 11:14 PM, Sheddy said:

    RastaSlide - RastaConverter Slide Show Maker and Tools - version 3.4

     

    some improvements to the "try to fix HPOS artefacts" tool. Some artefacts will always be impossible to fix though.

    RastaSlide 3.4.zip 4.92 MB · 31 downloads sheddy_cute_panda.png.8502fa5723c3ccf8228ea9c6dec4619f.png sheddy_cute_panda.xex 22.2 kB · 20 downloads

    On 10/25/2023 at 7:00 PM, Beeblebrox said:

    No worries. 

    See here as I explain how Sheddy's Hpos error removal tool works Iirc, and there is a link to Sheddy's 3.3 version in there also. Sheddy is working on 3.4 which he alluded to a couple of weeks ago. Gonna have some enhancements. 

     

     

     

    Definitely would recommend to use latest RastaSlide 3.4 Fix Tool rather than the one from 3.3. It was the only change worth sharing for now, but I wanted to get it out there for you guys.

    Here's the difference it can make on one of my old (more rubbish that I'd hoped for) pictures I shared:

     

    image.png.2d0a4b5ae38b94b620d5c82642072fe9.pngimage.png.130407b81dfa6beb08acec1b548da80c.png

     

    There are still HPOS error lines that will be impossible to fix though where RastaConverter needs the Atari to respond more quickly that the real hardware can actually do (and it seems a really hard fix for new people with good C++ knowledge coming at the RastaConverter code unfortunately)

     

    @Atari8man2004 you are on a roll! thanks for sharing - great stuff

     

     

     

    RastaSlide 3.4.zip

    • Like 2
    • Thanks 4
  11. 1 hour ago, Beeblebrox said:

    Fantastic!!! Thanks so much. 

     

    Have a look at what Fox kindly did as a one off for one of my bladerunner slides where he added text. 

     

    To have it as an option for your slideshow tools would be amazing. :)

     

    Will it be possible to implement all of those text functions I'd suggested, or just one? 😉

     

     

     

    Yep, started out using Fox example, thanks. will PM you at some point. Won't be getting a GUI any time soon though as there's a lot of learning involved on my side for that to be possible 

    • Thanks 1
  12. On 10/9/2023 at 4:58 PM, _The Doctor__ said:

    The results seem to work best using NTSC and then batch files to PAL. It seems to keep a higher color count that way. Is that because PAL has less color to begin with and it loses some more during conversion where as NTSC has more and the batch process has a better source to start system conversion with?

    Should be fairly random chances on colour mapping success. Interesting if that holds true is all cases.

  13. On 10/8/2023 at 9:52 AM, MrFish said:

    Nope... if you go into the generator folder of RastaSlide, you'll find PAL->NTSC and NTSC->PAL batch files that will remap colors. Only downside is that everything can't be mapped, due to the way in which RastaConverter reuses some color information. For the most part, it does a good enough job. I won't point out any missed colors in my conversions. ;)

     

    You may have found the only picture where it has done a reasonable job!

     

    I ripped it out of the latest version in disgust. It makes sense that "easier" pictures have a better chance of a good result, so perhaps I should put it back in.

     

    The colour mapping was very basic. But with minimal work it could be made a bit smarter and prioritize the most visible  colour differences between PAL and NTSC. What do you guys think those are though?

    I'm thinking maybe very dark or very bright colours might not be very noticable different between PAL and NTSC?

    Hmm, except skin tones will stand out in a face.

    What about the red greens and blues. between the systems. Which of those are most noticeably different?

     

    Also, It may surprise @Beeblebrox to hear, but I am actually trying to implement his request for making slides with text at the bottom of pictures in a usable/compatible manner. Hopefully will have something to share in the not too distant future.

     

    🫥

    • Like 1
    • Thanks 1
  14. 16 hours ago, Atari8man2004 said:

    I have many pc the one I'm using is 8 cores 16 threads at 4ghz . I been converting 4 or 5 images at a time and it puts a load on the processor almost like crypto mining at temps of 70c.   I was wondering if a processor with AVX512 would shorten the converion time. 

    the attached was uploaded here... way back, somwhere. It has a AVX512 "fastpath" compiled version in there. If you replace "RastaConverter.exe" with the program in there called "RastaConverterBeta7.icl17.AVX512.exe" (copy and rename to RastaConverter.exe" after moving the original RastaConverter.exe" it may do something. Not sure I ever had an AVX512 capable processor to try it on, and I struggled to compile anything, not being familiar with C++ but it might be interesting to see. The AVX2 version also in there made not the slightest difference to speed that I could tell though.

    RastaConverterBeta7-icl17.zip

    • Like 2
    • Thanks 1
  15. 20 hours ago, Rybags said:

    Has anyone created an "RC animator" yet?

    16K frames would probably allow a narrow DMA mode with 100, maybe more scanlines with the remainder to do the kernal.

    Though from looking at some RC binaries a fair while back, there is a fair bit of wasted space in there with long strings of NOPs that could be reduced by using other instructions for same cycle consumption but less memory.

    Well there is this https://github.com/lybrown/RastaMovie

    from way back when RastaConverter was new. @Xuel based it on RastaConverter beta3. Up to 64 frames. 

    • Like 1
  16. On 8/17/2023 at 9:15 AM, Beeblebrox said:

    I am beginning to suspect that the entire universe of the show is a dream :  r/disenchantment 

     

    :D

     

    @Sheddy  Nice! 

    EDIT: Any more advances on your tool suite in terms of the slideshow and text wizardry we may have talked about in the past? (No pressure, just curious). :)

     

    Hey, with regards to the previous post from the The Doc re his question about dual format RC images, etc - any thoughts?

    Nothing much, sorry

     

    The experimental tool in RastaSlide 3.3 to attempt conversions between NTSC and PAL colours was not a great success.

     

    It is quite amazing how often RastaConverter manages to find solutions which share the same value for a colour and horizontal player position - even in a single picture there are many. Changing a colour to something else means finding more time in the kernel to load that value.

     

    By optimizing out the junk filler code RastaConverter leaves in the kernel as part of its process and reducing to 128 colours I thought the tool had a fair chance of being able to convert most colours in a picture. Unfortunately I was wrong about that

    • Like 1
    • Thanks 3
  17. On 8/15/2023 at 6:34 PM, Beeblebrox said:

     

    @Sheddy any more updates with the tool suite since ver 3.3 BTW

    Maybe you are psychic! I do have an improved fixer tool I was going to share with you guys, probably in a few days. There's still some bugs to squish

    • Like 4
  18. On 12/23/2022 at 4:17 PM, andyhants said:

    ok thanks - can I ask - what did you use to create a many automated slide xex ? Is that done in Windows & then you just run the final XEX on the A8?

     

    @Sheddy - would really appreciate your views on my original question about collating & running a multi XEX slideshow from within an SDX environment - thanks.

    @andyhants

    I think the guys are right that there's too many problems with trying to collate them using the Atari itself. RastaSlide can make an XEX slideshow that contains as many RastaConverter pictures as you can get your hands on though, which is probably your best bet for running on real hardware.

     

    Some really great pictures here recently. Hope everyone has happy holidays.

     

    • Like 2
×
×
  • Create New...