So I’m trying to do a list as the map that will be 20x20 (might make bigger later)
Problem 1: I input a matrix into the program by doing 2nd, rcl, matrix then got rid of all of the brackets so it’s one list. When I try to compile it, it says “you have an invalid “)”,”,”,(“,”)”,”}” or “]””. When I go into the program and delete one number (and “,”) at the end, everything works. It’s a tiny list that is only 400 bytes while an ICE list can go to 2000 bytes. The list is only made up of 1s and 0s
Problem 2: when I keep the last number deleted and run the compiled program, it doesn’t display what the matrix is. Here is the code that I did:
Code: iAA3DCOMP //defines name
det(0 //starts graphics
CopyData(L₁,1,1,1,1,1,1,1,1,1,0,0... // defines the list. The number after L₁ s how many bytes per piece of data (1 byte so there is only 400/2000 bytes in this list)
det(2,0 //sets color of pixel to black
For(Y,0,19
For(X,0,19
If *{L₁+(X+20Y)} //this is what I think is wrong but I’ve tried everything (checks if there is a 1 at x,y but it’s not a matrix
det(6,X,Y //makes a black pixel at x,y
End
End
End
Pause //lets me see the printed thing before ending the program
det(1 //ends program
Edit: I think problem 2 is working now but problem 1 has gotten bigger
when I run the compiled program, it switches what is printed: 3 random pixels, 3 horizontal lines, or some weird squiggly. my list is supposed to be a box. I’m doing the same thing as I have always done with lists (and they have always worked) so I’m not sure. If this isn’t fixed by when I get home I’ll send a screenshot of what’s happening because it’s a bit weird.
Edit 2: I tried doing a 10X10 list instead of 20X20 and for some reason the program was bigger by around 100 bytes???? And it worked perfectly. I’m so confused.
Edit 3: highest I can get my list to is a 15X15 which is still 225/2000 bytes. Now that I think of it, 225 bytes is just under 2000 bits. Does the documentation on lists mean to say the maximum a list can go up to is 2000 bits?