Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: yunhua98 on July 18, 2011, 03:37:54 pm

Title: Nibbles problem
Post by: yunhua98 on July 18, 2011, 03:37:54 pm
EDIT: problem fixed by runer on IRC

This code is supposed to display a 4x4 black box for every 1, and nothing for every 0, but its inverted instead...  And any number other than 1 shows up as black.  ???

Code: [Select]
:.TELEPORT
:
:DiagnosticOff
:ClrHome
:ClrDraw
:
:[0000000000000000]->Pic0
:[F0F0F0F000000000]
:
:
:[111111111111111111111111]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[100000000000000000000001]
:[111111111111111111111111]
:
:Repeat getKey(15)
:sub(MAP)
:DispGraph
:End
:
:
:Lbl MAP
:ClrDraw
:For(B,0,15
:For(A,0,11
:{B*12+A+GDB1}->Z
:Pt-On(8*A-4, 4*B, nib{GDB1+Z*2}*8+Pic0
:Pt-On(8*A, 4*B, nib{GDB1+Z*2+1}*8+Pic0
:End
:End
Title: Re: Nibbles problem
Post by: jnesselr on July 19, 2011, 11:42:59 am
Is it supposed to be GDB1+Z*2? Because isn't that the same thing as (GDB1+Z)*2?

Also, to debug, try doing A050A05000000000 instead of F0F0F0F0.
Title: Re: Nibbles problem
Post by: yunhua98 on July 19, 2011, 12:46:20 pm
GDB1+Z*2, it was supposed to be that, but I added GDB1 twice.  ;)