Difference between revisions of "Talk:83Plus:BCALLs:80AB"

From WikiTI
Jump to: navigation, search
(Finding an app's name)
(No difference)

Revision as of 15:15, 14 August 2007

Finding an app's name

One, the page states "NZ set if not found". That is ... confusing, to say the least. Does it mean Z is reset if not found, or something else?

Two, it took me some experimenting to figure out how to find an app's name. The examples are somewhat misleading as to what values you provide when searching an app. Here's the code I use to find an app's name given its basepage:

  ; a is the app's basepage
  push af
  ld hl,$4000
  ld de,$8040			; app name field
  bcall(_FindOSHeaderSubField)
  ; technically the name could not be found but that will not happen
  pop af
  ; a:hl points to the name

Andy Janata 15:15, 14 August 2007 (PDT)