[stella] CMP Wizard

Subject: [stella] CMP Wizard
From: Glenn Saunders <cybpunks2@xxxxxxxxxxxxx>
Date: Sat, 27 Oct 2001 20:39:47 -0700
When comparing, you need to know which type of branch to use in order to test for equality.

I've developed this chart and I want to make sure it's correct.

Please comment.

; CMP BRANCH WIZARD ;--------------------------------------- ;A = M - use BEQ ; N=0,*Z=1, C=1 ;A > M - use BCS ; N=0, Z=0,*C=1 ;A < M - use BMI ; *N=1, Z=0, C=0 ;A >= M - use BPL*; *N=0, C=1 ; ; * No need to set carry ahead of time -

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

Current Thread