View Single Post
  #9   Report Post  
Posted to alt.binaries.schematics.electronic
John Larkin John Larkin is offline
external usenet poster
 
Posts: 1,420
Default 8 bit PRSG for John Larkin - 8BITPRSG.EXE

On Fri, 07 Sep 2007 13:16:50 -0400, John Popelish
wrote:

John Fields wrote:
(snip)
nor = q1 OR q2 OR q3 OR q4 OR q5 OR q6 OR q7
IF nor = 0 THEN nor = 1 ELSE nor = 0


Couldn't you replace that last line with an inversion of nor?


NOT 1 is usually -2! BASICs seldom have boolean types.

Given that the first line can only yield 0 or 1, you could say

nor = nor XOR 1


John