Jump to content

StupidEggplantThatNeverPosts

New Members
  • Content Count

    6
  • Joined

  • Last visited

Posts posted by StupidEggplantThatNeverPosts


  1. On 6/12/2019 at 11:16 PM, willymanilly said:

    I doubt it's the emulator. Sounds like the compiled code is hitting one of the 6502 JAM instructions which effectively kills the cpu from fetching new instructions. http://forum.6502.org/viewtopic.php?f=1&t=1409&view=previous

     

    The only way to restore the cpu to a valid state once it's jammed on real hardware is sending a reset signal to the cpu. The error message you are seeing is alerting you to the fact the cpu has attempted to execute one of the JAM instructions and is now in an unresponsive state.

     

    VICE actually has test programs to ensure once a JAM instruction is executed the cpu indeed remains frozen. These test programs show that jam instructions can be compiled with no issues. https://sourceforge.net/p/vice-emu/code/HEAD/tree/testprogs/CPU/cpujam/

    And how do I fix the issue with these programs?


  2. 2 minutes ago, Random Terrain said:

    What's that stuff after bank 2?

     

    I copied some code from a mini kernel leaving that behind because I couldn't figure out how to use a mini kernel. That was the problem. Thx!

    • Like 1

  3. I'm having a syntax error and I cant figure out whats wrong.

    Heres the code:

     rem Generated 6/29/2019 7:26:11 PM by Visual bB Version 1.0.0.568
     rem **********************************
     rem *<filename>                      *
     rem *<description>                   *
     rem *<author>                        *
     rem *<contact info>                  *
     rem *<license>                       *
     rem **********************************
    
     
    
     set romsize 16k
    
     dim gamenumber=a
    
     dim swdebounce=b
    
     const scorefade=1
    
     scorecolor=$1a
    
     swdebounce=0
     gamenumber=1
    
    titlepage
     gosub titledrawscreen bank2
     if gamenumber=1+switchreset then goto gamestart1
     if !switchselect then swdebounce=0
     if swdebounce>0  then swdebounce=swdebounce-1: goto titlepage
     if switchselect then swdebounce=30: gamenumber=gamenumber+1
     if gamenumber=7 then gamenumber=1
     goto titlepage
    
    gamestart1
    
     playfield:
     ................................
     ............XX.XX.XX............
     ....XXX.XXX.XX.XX.XX.XXX.XXX....
     ....X.X..X..XX.XX.XX.X.X..X.....
     ....XXX..X..XX.XX.XX.XXX..X.....
     ....X.X..X..XX.XX.XX.XX...X.....
     ....X.X..X..XX.XX.XX.X.X.XXX....
     ...........XX..XX..XX...........
     ..........XX...XX...XX..........
     .........XX....XX....XX.........
     ................................
    end
    
     COLUBK = $08
     COLUPF = $46
    
    draw_loop
     drawscreen
     goto draw_loop
    
    
    
     bank 2
     asm
     incl

    Does anyone notice whats wrong?


  4. I'm trying to make a home console port of Space Race using visual batari basic. (Its my first time coding a game). I'm coding my game. Everything is going fine, but when I compile and then attempt to test the game with Stella, an error message appears in Stella.

     

    Fatal Error

    Invalid Instruction.

     

    So I tried it with Z26. But when I compile and open the game, instead of opening the game, it opens to a black screen with the word jammed at the bottom.

    Please help me. I looked everywhere but I haven't found a way to fix this.

×
×
  • Create New...