mirror of
https://github.com/mi57730/a2d.git
synced 2025-03-13 14:31:49 +00:00
Update MGTK.md
This commit is contained in:
parent
18d6762cae
commit
1e047523f4
8
MGTK.md
8
MGTK.md
@ -10,7 +10,13 @@ This is a complex API library written by Apple circa 1985. It consists of:
|
||||
* [Commands](#commands-1)
|
||||
* [More](#more)
|
||||
|
||||
For the purposes of DeskTop, the entry point is fixed at $4000 AUX, called MLI-style (JSR followed by command type and address of param block).
|
||||
For the purposes of DeskTop, the entry point is fixed at $4000 AUX, called MLI-style:
|
||||
```
|
||||
JSR $4000
|
||||
.byte call
|
||||
.addr params
|
||||
```
|
||||
Result will be in A, with Z bit set, 0 indicating success (so `BNE error` works).
|
||||
|
||||
ca65 syntax is used for primitives: `.byte`, `.word` (interpreted as 16-bit signed integer), `.addr` (16-bit address), `.res N` (N byte buffer)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user