83Plus:OS:Recall Queue
From WikiTI
Revision as of 04:47, 17 June 2005 by 84plusfreak (Talk | contribs)
Recall Queue
The recall queue can be used to output on the homescreen after quitting an application or inside an hook. The tokens will be inserted as soon as the homescreen becomes visible and editable for the user. If this is used in the program editor the OS crashes.
Here's how it works:
- Copy the data you want tios to recall into a saferam area that isn't erased before you return to the home screen. The data should be in the same form as they would be in a program (eg t3,tdecpt,t1,t4)
- Put the location of the first byte of data in rclQueue. You need to add one to this value if you use it inside a keyhook(I didn't test any other hooks but I guess this also applies to them) Thus if you would copy the data to appbackupscreen the code would be the following (outside a keyhook):
ld hl,appbackupscreen ld (rclQueue),hl
- Put the location of the last byte of data +1 in 86DBh. Thus if you would copy the data to appbackupscreen and the data would be two bytes large, the code would be the following:
ld hl,appbackupscreen+2 ;+1 is the location of the last byte ld (86DBh),hl
- Now you only have to set the following two flags and return/bjump back to tios.
set 7,(IY+0Eh) set 2,(IY+33h)