...
Code Block |
---|
language | none |
---|
title | NQ_Ain ($8600), Application enquiry (system use only) |
---|
|
IN:
BC = NQ_Ain
IX = application handle from OS_Poll
OUT, if call successful:
Fc = 0
BHL = pointer to application name (null-terminated)
BDE = pointer to application DOR
A = CLI-related attributes
C = preferred code letter.
OUT, if call failed:
Fc = 1
A = RC_HAND
Registers changed after return:
......../IXIY same
AFBCDEHL/.... different |
Notes
CLI-related attributes refers to Application Type Byte 1 in application DOR.
NQ_Khn
Code Block |
---|
language | none |
---|
title | NQ_Khn ($8603), Read keyboard handle |
---|
|
IN: BC = NQ_Khn
OUT: IX = keyboard handle
Registers changed after return:
A.BCDEHL/..IY same
.F....../IX.. different |
Use ":INP" device instead.
...
Code Block |
---|
language | none |
---|
title | NQ_Shn ($8606), Read screen handle |
---|
|
IN: BC = NQ_Shn
OUT: IX = screen handle
Registers changed after return:
A.BCDEHL/..IY same
.F....../IX.. different |
Use ":SCR" device instead.
...
Code Block |
---|
language | none |
---|
title | NQ_Nhn ($860C), Read null handle |
---|
|
IN: BC = NQ_Hhn
OUT: IX = null handle
Registers changed after return:
A.BCDEHL/..IY same
.F....../IX.. different |
Use ":NUL" device instead
...
Code Block |
---|
language | none |
---|
title | NQ_Wai ($860F), Who am I? (system use only) |
---|
|
IN: BC = NQ_Wai
OUT: IX = static process handle
C = dynamic process handle (PID)
B = 0
Registers changed after return:
A...DEHL/..IY same
.FBC..../IX.. different |
- Static process handle is unique to each application. It follows slot number and application order in slot (1-31 for internal slot, 32-63 for slot 1, 64-95 for slot 2, 96-127 for slot 3, 128-255 for installed applications). Index handle is always 1, Pipedream handle is 3...
- Dynamic process handle (PID equivalent) is unique to each suspended or running process (range 2-127, Index PID is always number 1).
...
Code Block |
---|
language | none |
---|
title | NQ_Com ($8612), Read comms handle |
---|
|
IN: BC = NQ_Com
OUT: IX = comms handle
Registers changed after return:
A.BCDEHL/..IY same
.F....../IX.. different |
Use ":COM" device instead.
...
Code Block |
---|
language | none |
---|
title | NQ_Ihn ($8615), Read IN handle |
---|
|
IN: BC = NQ_Ihn
OUT: IX = IN handle
Registers changed after return:
A.BCDEHL/..IY same
.F....../IX.. different |
Use ":INP" device instead.
...
Code Block |
---|
language | none |
---|
title | NQ_Ohn ($8618), Read OUT handle |
---|
|
IN: BC = NQ_Ohn
OUT: IX = OUT handle
Registers changed after return:
A.BCDEHL/..IY same
.F....../IX.. different |
Use ":OUT" device instead.
...