[Prev][Next][Index][Thread]

A92: screen size notion




the ti-92's screen size is 239x103 pixels (0-238, 0-102), and the 
ti-89's screen size is suppose to be 160x100 pixels ( 
http://www.ti.com/calc/docs/89.htm ).  if i was the one working on these 
two projects i would make a place in memory tell the programmer which 
calculator the program is running on.  i would also place screen 
maximums in there somewhere (but this is optional to me).

let's say that you had the following byte pattern:
00000000  /*byte 1*/
00000000  /*byte 2*/
00000000  /*byte 3*/
00000000  /*byte 4*/
and let's say that the screen was 8x4 pixels, this is great because the 
above now represents the screen.  now let's say that we reduced the size 
to 4x3, i would make the calculator still reserve space for the 8x4, but 
just use the 4x3 (0s are the useable area):
00001111
00001111
00001111
11111111
now the calculator will "know" where it's limits are, and to the 
programmer they can always check with the calculator type if TI used my 
method above, but if the programmer happens to go outside the range, 
this won't hurt anything, it just won't show up.

this was done with 8x4 and 4x3, why not do it with the 239x103 and 
160x100?

this was just a notion.

-Rob

p.s.  and i have no idea if i'm spelling notion correctly and/or using 
it in the correct context sorry if i'm not.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com