Unimportant part of the post
Hello, all! Some of you probably remember me from way back in December 2014. I had a busy life after that, and was forced to cease all programming projects. However, with the end of the school year, I can now resume.
I have decided to abandon the fake reset program, perhaps to be continued at some later date. In addition, I have decided to keep the password program as it is, without automatically running when the calculator is turned off, which would involve turning the program into an app. However, the password program will eventually be posted on Cemetech archives.
In addition, I no longer use Spasm, but rather the online assembler that Kerm made.
Important part of the post
To get familiar once again with Z80 ASM for the TI-84+CSE, I am making a program that changes the background/foreground color of text on the home screen. I have already done this with the Hello World program; the problem is not the color change itself.
The program should work by reading Ans, which will be a string. The first character will be 0-E, colors for the foreground (based on the color menu on the TI-84+CSE). The second character will be 0-E, colors for the background (also based on the menu).
Thus, in a TI-BASIC program, to display green text on the screen, one would do:
"5A":Asm(prgmCOLOR
And to switch back to normal:
"3A":Asm(prgmCOLOR
My question is: how does one find Ans? I think that I can figure out how to read Ans, but not how to find it in the first place.
Hello, all! Some of you probably remember me from way back in December 2014. I had a busy life after that, and was forced to cease all programming projects. However, with the end of the school year, I can now resume.
I have decided to abandon the fake reset program, perhaps to be continued at some later date. In addition, I have decided to keep the password program as it is, without automatically running when the calculator is turned off, which would involve turning the program into an app. However, the password program will eventually be posted on Cemetech archives.
In addition, I no longer use Spasm, but rather the online assembler that Kerm made.
Important part of the post
To get familiar once again with Z80 ASM for the TI-84+CSE, I am making a program that changes the background/foreground color of text on the home screen. I have already done this with the Hello World program; the problem is not the color change itself.
The program should work by reading Ans, which will be a string. The first character will be 0-E, colors for the foreground (based on the color menu on the TI-84+CSE). The second character will be 0-E, colors for the background (also based on the menu).
Thus, in a TI-BASIC program, to display green text on the screen, one would do:
"5A":Asm(prgmCOLOR
And to switch back to normal:
"3A":Asm(prgmCOLOR
My question is: how does one find Ans? I think that I can figure out how to read Ans, but not how to find it in the first place.