Author Topic: System Monitor / Context Vectors  (Read 6059 times)

0 Members and 1 Guest are viewing this topic.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
System Monitor / Context Vectors
« on: November 14, 2010, 06:11:15 pm »
I want to improve solver so that it works like this. A = B. Instead of 0=B-A. And to do this, I am going to have to screw with the system monitor and solver's context vectors. I know almost nothing about these because there isn't much information released about them. But I know that people have the information. So basically, I just need to be filled in.

The sdk, was slightly helpful, along with wikiti. But what I've gathered so far is this. cxMain and the 6 vectors after it are basically a call table. When an event happens, one of the vectors is followed and the code is executed. But each one of those vectors appears to have it's own guidelines just like the hooks do. I can probably figure out the usage with enough debugging, but some notes would be greatly appreciated.

Edit:
    So I'm starting to figure some of it out. It looks like for cxMain, it gives you A = key, and you return the new key to be pressed in A with NZ set if it should be used.

The main thing I'm trying to figure out now is how the screen get's drawn. It doesn't look like cxRedisp ever gets called.
« Last Edit: November 14, 2010, 06:37:18 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline FloppusMaximus

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +57/-5
    • View Profile
Re: System Monitor / Context Vectors
« Reply #1 on: November 14, 2010, 10:10:04 pm »
Keep in mind that a lot of TI's display routines are painfully slow, and even the large-font routines can flicker noticeably.  So the built-in apps are very lazy about updating the screen.

cxMain is the only thing called after most keypresses; it's expected to do incremental updates to the screen.  (For instance, by calling InsDisp.)  cxRedisp is called to redraw the whole screen, after the user opens and closes a full-screen menu.  cxSizeWind and cxErrorEP are presumably expected to do their own redrawing as well, if need be.

Have you read Dan E's system monitor documentation?  It used to be hosted in the "Unsupported Info" section on ti.com, then after that was taken down, Dan hosted it himself somewhere on denglend.net, and now I can't seem to find it anywhere on the Web.  I've probably still got copies of the files somewhere - I'll see if I can dig them up...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: System Monitor / Context Vectors
« Reply #2 on: November 15, 2010, 02:44:13 am »
Do you remember the URL to that unsupported info section of TI website by any chance? I am curious if archive.org might have some stuff there...

Offline FloppusMaximus

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +57/-5
    • View Profile
Re: System Monitor / Context Vectors
« Reply #3 on: November 15, 2010, 10:24:50 pm »
I don't have the URL.  But I did find the files (or most of them, anyway; I'm not sure that this is everything):
Code: [Select]
AppInit.pdf
BufClear.pdf
BufDelete.pdf
BufInsert.pdf
BufLeft.pdf
BufReplace.pdf
BufRight.pdf
CloseEditEqu.pdf
ClrWindow.pdf
CursorDown.pdf
CursorLeft.pdf
DispEOW.pdf
DispForward.pdf
DispHead.pdf
DispTail.pdf
EraseEOW.pdf
GetPrevTok.pdf
HomeUp.pdf
InsDisp.pdf
IsA2ByteTok.pdf
IsAtBtm.pdf
IsAtTop.pdf
IsEditEmpty.pdf
LdHLInd.pdf
Mon.pdf
NewLine.pdf
PutAway.pdf
SetEmptyEditPtr.pdf
editbuf.pdf
extraequ.inc
monitor.pdf
sysinput.asm

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: System Monitor / Context Vectors
« Reply #4 on: November 15, 2010, 10:29:15 pm »
Ah ok thanks, because SirCmpwn asked TI for USB doc a few times before to no avail, and I was wondering if it was located there before.

Offline FloppusMaximus

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +57/-5
    • View Profile
Re: System Monitor / Context Vectors
« Reply #5 on: November 15, 2010, 10:33:52 pm »
I don't think so.  I never heard of any USB documentation being released by TI; as far as I'm aware, everything we know about it was reverse-engineered by Dan and a few other clever people.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: System Monitor / Context Vectors
« Reply #6 on: November 15, 2010, 11:06:00 pm »
Thank you so much. This answers almost all of the questions I have been having for about a year. It seemed like there was all this knowledge that was out there, but it wasn't written anywhere. This finally fills a huge void in my understanding.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

SirCmpwn

  • Guest
Re: System Monitor / Context Vectors
« Reply #7 on: November 16, 2010, 12:23:43 am »
I don't think so.  I never heard of any USB documentation being released by TI; as far as I'm aware, everything we know about it was reverse-engineered by Dan and a few other clever people.
According to BrandonWilson, they have the docs but won't release them.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: System Monitor / Context Vectors
« Reply #8 on: November 16, 2010, 08:17:37 am »
@FloppusMaximus: Perhaps you should add those to wikiti. They'll be much more accessible there. ;)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: System Monitor / Context Vectors
« Reply #9 on: April 20, 2011, 08:33:34 pm »
Do you remember the URL to that unsupported info section of TI website by any chance? I am curious if archive.org might have some stuff there...

http://web.archive.org/*/http://education.ti.com/us/resources/developer/* ;)

Specifically http://replay.web.archive.org/20050410221541/http://education.ti.com/us/resources/developer/83/download/unsupported.html.

The PDFs have never been archived by WayBack though.
« Last Edit: April 21, 2011, 07:42:05 pm by Deep Thought »