Difference between revisions of "83Plus:BCALLs:4C99"

From WikiTI
Jump to: navigation, search
 
(No difference)

Latest revision as of 04:11, 27 May 2007

Synopsis

Unofficial Name: AppSetup

BCALL Address: 4C99

Cleans up flags and hooks before running a Flash application.

Inputs

  • Set bit in iy+37h, iy+38h, and iy+39h corresponding to iy+34h, iy+35h, and iy+36h hook to uninstall that hook

Outputs

  • bufferOnly,(iy+plotFlag3) reset
  • appRunning,(iy+APIFlg) reset
  • textFlags, APIFlg, apiFlg2, apiFlg3, apiFlg4, iy+37h/38h/39h all zeroed out

Destroys

  • All

Example

Run Flash application "MyApp" without the GetCSC hook:

    set 0,(iy+37h) ;0,(iy+34h) is GetCSC hook active flag
    ld hl,sMyApp
    ld de,progToEdit
    ld bc,8
    ldir
    B_CALL AppSetup
    B_CALL ExecuteApp
sMyApp:
    DB "MyApp   "