If you have trouble logging in, try to disable JavaScript temporarily. If that doesn't work, please contact  a d m i n @ c o d e w a l r . u s  with your account nickname.

* WalrusIRC Shoutbox (Support and development thread)

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Drawing to the buffer and screen  (Read 1259 times)

0 Members and 1 Guest are viewing this topic.

Offline Ephraim Becker

  • Full User
  • Posts: 118
  • Post Rating Ratio: +0/-4
    • @UCIHxAXYLxYlNaQiv0do0bUg
    • EphraimB
    • 112/11290
    • View Profile
  • Gender: Male
Drawing to the buffer and screen
« on: April 13, 2015, 06:33:38 pm »
How do I draw to the buffer and screen without a #include file for both the ti 84 Plus and ti 84 Plus CSE? I don't believe plotSScreen works without a #include file.


  • Calculators owned: TI 84 Plus, TI 84 Plus C Silver Edition, TI 84 Plus CE, Casio FX-9750 GII
I have Aspergers Syndrome

Offline Cumred_Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Posts: 3058
  • Post Rating Ratio: +30/-1
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • View Profile
    • quantuminfinity
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #1 on: April 13, 2015, 06:37:05 pm »
No, in the include file "PlotSScreen" is linked to an address. If you want to draw with out an include you should just use the address of PlotSScreen, which is 9340h (the h for hex) for the TI 83+/84+. Then, once you've changed the pixels to your needs, you need some code to do the actual uploading to the display. I recommend using FastCopy: http://wikiti.brandonw.net/index.php?title=Z80_Routines:Graphic:Fastcopy
« Last Edit: April 13, 2015, 06:39:31 pm by Cumred_Snektron »
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline Ephraim Becker

  • Full User
  • Posts: 118
  • Post Rating Ratio: +0/-4
    • @UCIHxAXYLxYlNaQiv0do0bUg
    • EphraimB
    • 112/11290
    • View Profile
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #2 on: April 13, 2015, 06:38:45 pm »
What address is (penRow) and (penCol) linked to?
  • Calculators owned: TI 84 Plus, TI 84 Plus C Silver Edition, TI 84 Plus CE, Casio FX-9750 GII
I have Aspergers Syndrome

Offline Cumred_Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Posts: 3058
  • Post Rating Ratio: +30/-1
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • View Profile
    • quantuminfinity
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #3 on: April 13, 2015, 06:41:01 pm »
86D8h and 86D7h. You can just look it up for yourself http://wikiti.brandonw.net/index.php?title=83Plus:OS:ti83plus.inc
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Offline Ephraim Becker

  • Full User
  • Posts: 118
  • Post Rating Ratio: +0/-4
    • @UCIHxAXYLxYlNaQiv0do0bUg
    • EphraimB
    • 112/11290
    • View Profile
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #4 on: April 13, 2015, 06:48:00 pm »
Will these addresses work without a #include file?
  • Calculators owned: TI 84 Plus, TI 84 Plus C Silver Edition, TI 84 Plus CE, Casio FX-9750 GII
I have Aspergers Syndrome

Offline DarkestEx

  • Super User
  • News Editor
  • Posts: 1210
  • Post Rating Ratio: +6/-2
    • View Profile
    • My homepage
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #5 on: April 13, 2015, 06:54:52 pm »
Will these addresses work without a #include file?
I guess they will. The include file only contains some labels and preprocessor directives to make life easier.
You could even write assembly by hand without any assembler, but that wouldn't make much sense.
  • Calculators owned: TI-84+, Casio 101-S
  • Consoles, mobile devices and vintage computers owned: Hewlett-Packard 100LX, Original Commodore 64C, Yamaha PSS-470, Tektronix AWG2021
Using Adblock to block annoying avatars: http://imgur.com/a/ZouD8
<- Check out Claw if you like writing code once and having it run on most embedded devices alike :)


Avatar by Erica Wester

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Posts: 14677
  • Post Rating Ratio: +72/-7
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #6 on: April 13, 2015, 10:46:02 pm »
Wouldn't using direct addresses pose a problem in the event that TI would change the calculator hardware? Remember what happened with the Casio FX-9860GII in 2011 and the TI-84+ in 2007 (although in the latter case, only programs using the extra RAM pages were affected).
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX, HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline DarkestEx

  • Super User
  • News Editor
  • Posts: 1210
  • Post Rating Ratio: +6/-2
    • View Profile
    • My homepage
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #7 on: April 13, 2015, 10:48:46 pm »
Wouldn't using direct addresses pose a problem in the event that TI would change the calculator hardware? Remember what happened with the Casio FX-9860GII in 2011 and the TI-84+ in 2007 (although in the latter case, only programs using the extra RAM pages were affected).
Yeah, you would lose alot of flexibility. But basically it is possible, but not recommended.
  • Calculators owned: TI-84+, Casio 101-S
  • Consoles, mobile devices and vintage computers owned: Hewlett-Packard 100LX, Original Commodore 64C, Yamaha PSS-470, Tektronix AWG2021
Using Adblock to block annoying avatars: http://imgur.com/a/ZouD8
<- Check out Claw if you like writing code once and having it run on most embedded devices alike :)


Avatar by Erica Wester

Offline Ephraim Becker

  • Full User
  • Posts: 118
  • Post Rating Ratio: +0/-4
    • @UCIHxAXYLxYlNaQiv0do0bUg
    • EphraimB
    • 112/11290
    • View Profile
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #8 on: April 13, 2015, 11:01:05 pm »
Then what's the best way of drawing to the screen and buffer without a #include file?
  • Calculators owned: TI 84 Plus, TI 84 Plus C Silver Edition, TI 84 Plus CE, Casio FX-9750 GII
I have Aspergers Syndrome

Offline pimathbrainiac

  • Full User
  • Original 5
  • News Editor
  • Posts: 375
  • Post Rating Ratio: +2/-1
  • Formerly Banned CW Co-Founder Turned News Editor
    • pimathbrainiac
    • View Profile
  • Gender: Other
Re: Drawing to the buffer and screen
« Reply #9 on: April 13, 2015, 11:03:34 pm »
How do I draw to the buffer and screen without a #include file for both the ti 84 Plus and ti 84 Plus CSE? I don't believe plotSScreen works without a #include file.
Then what's the best way of drawing to the screen and buffer without a #include file?
You literally asked the same question twice... <_<

Will these addresses work without a #include file?
Yes. addresses are not dependent on #include files.
Well, I'm bach here too!

Offline Ephraim Becker

  • Full User
  • Posts: 118
  • Post Rating Ratio: +0/-4
    • @UCIHxAXYLxYlNaQiv0do0bUg
    • EphraimB
    • 112/11290
    • View Profile
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #10 on: April 13, 2015, 11:08:35 pm »
Then what's the difference of using addresses and using the port $10 and port $11?
  • Calculators owned: TI 84 Plus, TI 84 Plus C Silver Edition, TI 84 Plus CE, Casio FX-9750 GII
I have Aspergers Syndrome

Offline Ephraim Becker

  • Full User
  • Posts: 118
  • Post Rating Ratio: +0/-4
    • @UCIHxAXYLxYlNaQiv0do0bUg
    • EphraimB
    • 112/11290
    • View Profile
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #11 on: April 14, 2015, 12:44:19 am »
Is there any tutorials on the Toshiba T6A04 (the TI 83\84 Plus LCD Driver)?
  • Calculators owned: TI 84 Plus, TI 84 Plus C Silver Edition, TI 84 Plus CE, Casio FX-9750 GII
I have Aspergers Syndrome

Offline tr1p1ea

  • Full User
  • Posts: 155
  • Post Rating Ratio: +3/-1
    • View Profile
Re: Drawing to the buffer and screen
« Reply #12 on: April 14, 2015, 02:23:47 am »
Drawing on the TI-84+ and TI-84+CSE is different considering that one is b&w and the other is colour.

Here is a tutorial for the 83/84+: http://tutorials.eeems.ca/ASMin28Days/lesson/day26.html

It is recommended that you work through the entire tutorial chronologically however.

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #13 on: April 14, 2015, 10:38:42 am »
COuld you please avoid double posting? there is two edit buttons with that icon . Double (or more) posting increases clutter and makes more things messy, okay? ^^

EDit : If you want more explanations, double posting is tolerated when last post was posted more than 24hours befores or when you are in your own project's topic and giving news, releases, etc.
  • Calculators owned: A lot.

Offline Ephraim Becker

  • Full User
  • Posts: 118
  • Post Rating Ratio: +0/-4
    • @UCIHxAXYLxYlNaQiv0do0bUg
    • EphraimB
    • 112/11290
    • View Profile
  • Gender: Male
Re: Drawing to the buffer and screen
« Reply #14 on: April 19, 2015, 03:35:00 pm »
Quote from: z80 heaven
Writing to a Buffer (good)

Now, we will introduce the best way to draw pictures. This involves a buffer. A buffer is an array of data. How it's structured and what the data means in the buffer is programmer defined (what the program does with it), but be careful because if you want to allocate (not use for any other purpose) a section of memory for a buffer that's structured 20*20, because z80 doesn't recognize "variables", you can inadvertently use it as a 4*100 buffer. Of course, then, your data would make no sense until you used it as a 20*20 buffer again. Here are some good tips on using buffers:

    Create variables that point to:
        Top of buffer (first byte)
        End of buffer (or define the length)
        Pointer (where you are looking at in the buffer)
    Define the buffer in a safe location of memory
        In a saferam area (appbackupscreen, etc.)
        In the program itself (if you're willing to sacrifice space)
        In a location of memory that the calculator already uses for your purposes (plotsscreen for picture buffer)


I don't really understand this so well. Can someone please explain this to me better?
  • Calculators owned: TI 84 Plus, TI 84 Plus C Silver Edition, TI 84 Plus CE, Casio FX-9750 GII
I have Aspergers Syndrome

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games