Re: [stella] BLINT: Branch, Conditional Lint

Subject: Re: [stella] BLINT: Branch, Conditional Lint
From: Thomas Jentzsch <tjentzsch@xxxxxx>
Date: Thu, 17 Oct 2002 09:22:19 +0200
That's a great tool!

Maybe somebody is still interested in the macro I'm using for
checking page misses.

  MAC CHECKPAGE
    IF >. != >{1}
      ECHO ""
      ECHO "ERROR: different pages! (", {1}, ",", ., ")"
      ECHO ""
      ERR
    ENDIF
  ENDM

It can be used a bit more generally, e.g. I'm using it to check, if a
table crosses a page boudary. I think it's not 100% perfect, but it does
the job for me.

Two short examples:

wait:
  dey
  bpl wait
  CHECKPAGE wait
  sta RESP0

Tbl:
  .byte %10010101
  ...
  .byte %11110000
  CHECKPAGE Tbl

Have fun!
Thomas                            
_______________________________________________________
Thomas Jentzsch         | *** Every bit is sacred ! ***
tjentzsch at web dot de |

----------------------------------------------------------------------------------------------
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/


Current Thread