Quick Reference
Provided here is a list of some common API entry points. The list is inevitably subjective and incomplete. If you feel something is missing here, let us know.
The documentation generator for Bintracker is still having some hiccups at the moment, so some links may be broken or lead to missing documentation.
Procedures & Methods
Assemble the string SOURCE, returning a list of byte values. TARGET-CPU must be a symbol identifying the instruction set to use.(assemble TARGET-CPU SOURCE key: ORG EXTRA-SYMBOLS MAX-PASSES)
Assemble the string SOURCE, returning a list of byte values. TARGET-CPU must be a symbol identifying the instruction set to use.(assemble TARGET-CPU SOURCE key: ORG EXTRA-SYMBOLS MAX-PASSES)
Without arguments, retrieve the clipboard contents, returning an s-expression. Otherwise, copy CONTENTS to the clipboard.(clipboard ['put CONTENTS])
Alias for (copy CONTENTS)
(clipboard 'put CONTENTS)
.
Access various components of the module interface the user is currently interacting with. WHAT must be one of:(current WHAT)
'blockview
: The current<ui-blockview>
instance.'buffer
: The current focussed buffer.'emulator
: The current emulator object.'group-fields
: The current<ui-group-fields>
instance.'mdef
: The current MDAL engine definition.'mmod
: The current MDAL module.'module-view
: The current<ui-module-view>
instance.'order-view
: The current<ui-order-view>
instance.'selected-contents
: The contents of the current block selection, or the value at cursor'selection
: A list containing the first row, first field, last row, and last field of the current block selection
Edit contents of a group field, blockview, or order-view.(edit BUFFER WHAT [VALUE])
(<ui-group-field>
)
(edit BUFFER WHERE WHAT [CONTENTS])
(<ui-basic-block-view>
)
Generate an emulator object suitable for the target system with the MDAL platform id PLATFORM.(emulate PLATFORM-ID)
Interact with an EMULATOR. Use (EMULATOR 'exec|info|pause|quit|run|unpause|start [ARGS...])
(current 'emulator)
to retrieve the emulator of the currently active module view.
Interact with the input focus controller.(focus 'assoc|add|list|next|previous|remove|resume|set|suspend|which [ARGS...])
Access the internal help system. This feature is not complete yet.(info ['kb|keybinding KEYSTROKE])
Interact with multibuffers.(multibuffer-add BUFFER CHILD-SPEC [key: BEFORE])
(multibuffer-hide CHILD-ID)
(multibuffer-delete CHILD-ID)
(multibuffer-show CHILD-ID)
Without arguments, returns the list of registered plugins. Otherwise, register the given plugin(s).(plugins ['register NAME1...])
Re-apply the latest undone edit.(redo)
Make the screen reader/text-to-speech tool say things. (say S-EXPR|'where|what)
'where
and what
will report the location of resp. value under the cursor. Any other S-EXPRession will be read out as is (with some sanitation performed).
Read or set global settings.(settings [WHICH [NEW-VALUE]])
Returns the main UI multibuffer.(ui)
Undo the latest edit.(undo)
libmdal
block-field-ref
file->mmod
inode-instance-ref
mmod-mdef
mmod-global-node
mmod->file
mod->bin
node-path
subnode-ref
UI Classes
Name | Description | Base class |
---|---|---|
<ui-element> |
Base class for most other UI classes. | none |
<ui-wrapper> |
Adapter for using raw Tk widgets like the Bintracker UI classes. | <ui-element> |
<ui-modeline> |
Modelines, aka status bars. | <ui-element> |
<ui-setting> |
Spinbox settings. | <ui-element> |
<ui-settings-group> |
Container for multiple <ui-setting> s. |
<ui-element> |
<ui-button-group> |
Container for one or more toolbar buttons. | <ui-element> |
<ui-toolbar> |
Toolbars, consisting of one or more <ui-button-group> s. |
<ui-element> |
<ui-buffer> |
Container for user content, optionally with toolbars. | <ui-element> |
<ui-multibuffer> |
Combine multiple buffers and make them resizable. | <ui-element> |
<ui-module-view> |
Top-level GUI abstraction for MDAL modules. | <ui-multibuffer> |
<ui-group> |
MDAL group node display. | <ui-multibuffer> |
<ui-subgroups> |
Container for the subgroups of an MDAL group node. | <ui-buffer> |
<ui-blocks> |
Container for the block subnodes of an MDAL group node. | <ui-buffer> |
<ui-basic-block-view> |
Display for MDAL block nodes. | <ui-buffer> |
<ui-block-view> |
Display for all MDAL block nodes except order blocks. | <ui-basic-block-view> |
<ui-order-view> |
Display for MDAL order block nodes. | <ui-basic-block-view> |
<ui-group-fields> |
Container for the field subnodes of an MDAL group node. | <ui-buffer> |
<ui-group-field> |
Display for MDAL group field nodes. | <ui-element> |
<ui-dialog> |
Simple popup dialog containers. | none |
UI Class Methods
Returns the child elements of the UI class instance BUFFER. Defined for all UI classes. Note that some UI classes bypass the children mechanism, most notably (ui-children BUFFER)
<ui-multibuffer>
.
Unmap and destroy the UI class instance BUFFER. Defined for all UI classes.(ui-destroy BUFFER)
Hide the UI class instance BUFFER. Defined for all UI classes.(ui-hide BUFFER)
Access the metastate controller of a module view or any child element thereof. Defined for all module-related UI classes.(ui-metastate BUFFER [ACTION [ARGS...]])
Recursively search the child elements of the UI class instance BUFFER for a buffer named CHILD-ID. Defined for all UI classes. Note that some UI classes bypass the children mechanism, most notably (ui-ref BUFFER CHILD-ID)
<ui-multibuffer>
.
Show the UI class instance BUFFER. Defined for all UI classes. (ui-show BUFFER)
ui-show
recursively calls ui-show
on all children of BUFFER. Note that some UI classes bypass the children mechanism, most notably <ui-multibuffer>
.
Update the display of the UI class instance BUFFER. Defined for (ui-update BUFFER)
<ui-group-fields>
, <ui-basic-block-view>
and derived classes.
Hook Sets
Miscellaneous
btdb
, the Bintracker database