List of commands
This is a list of all commands Asar supports, linking to the manual chapter explaining them. In addition to these, Asar accepts assembly instructions, the list of which depends on the currently active architecture (65816, spc700, superfx).
arch {name}: Architecturesspcblock {target_address} [{engine_type}]: Architecturesendspcblock [execute {execution_address}]: Architectureslorom: Mapping Modeshirom: Mapping Modesexlorom: Mapping Modesexhirom: Mapping Modessa1rom [num, num, num, num]: Mapping Modesfullsa1rom: Mapping Modessfxrom: Mapping Modesnorom: Mapping Modesasar {ver}: Compatibility Settingsnamespace nested {on/off}: Compatibility Settings{: Code Formatting and Syntax}: Code Formatting and Syntaxorg {snes_address}: Program Counterbase {snes_address/off}: Program Counterskip {num_bytes}: Program Counterskip align {alignment} [offset {offset}]: Program Counterbank {data_bank/noassume/auto}: Program Counterdpbase {snes_address}: Program Counteroptimize dp {none/ram/always}: Program Counteroptimize address {default/ram/mirrors}: Program Counterpushpc: Program Counterpullpc: Program Counterpushbase: Program Counterpullbase: Program Counterstruct {identifier} {snes_address}: Structsendstruct [align {num}]: Structsstruct {identifier} extends {identifier}: Structsnamespace {identifier}: Namespacesnamespace off: Namespacespushns: Namespacespullns: Namespacesglobal [#]{identifier}:: Namespaces!{identifier} = {value}: Defines!{identifier} = "{value}": Definesundef "{identifier}": Definesmacro {identifier}(...): Macrosendmacro: Macrosfunction {identifier}(...) = {math}: Functionsif {condition}: Conditionals and Loopselseif {condition}: Conditionals and Loopselse: Conditionals and Loopsendif: Conditionals and Loopswhile {condition}: Conditionals and Loopsendwhile: Conditionals and Loopsfor {variable} = {start}..{end}: Conditionals and Loopsendfor: Conditionals and Loopsdb {value}[,value...]: Binary Datadw {value}[,value...]: Binary Datadl {value}[,value...]: Binary Datadd {value}[,value...]: Binary Data'{character}' = {value}: Binary Datacleartable: Binary Datapushtable: Binary Datapulltable: Binary Datafillbyte {byte}: Binary Datafill {num}: Binary Datafill align {alignment} [offset {offset}]: Binary Datafillword: Binary Datafilllong: Binary Datafilldword: Binary Datapadbyte {byte}: Binary Datapad {snes_address}: Binary Datapadword: Binary Datapadlong: Binary Datapaddword: Binary Dataincbin {filename}[:range_start..range_end]: Binary Dataincsrc {filename}: Includesinclude: Includesincludefrom {filename}: Includesincludeonce: Includesfreespace {ram/noram}[,norats][,align][,cleaned][,static][,bankcross][,bank={num}][,start={num}][,pin={label}]: Freespacefreecode [options...]: Freespacefreedata [options...]: Freespacesegment [ram/noram][,align][,bankcross][,bank={num}][,start={num}][,pin={label}]: Freespacefreespacebyte {value}: Freespacefreespace_settings {options...}: Freespaceautoclean jml/jsl/lda/cmp/.../dl {label}: Freespaceautoclean {snes_address}: Freespaceprot {label}[,label...]: Freespaceprint {text_or_math}[,text_or_math...]: Text Outputreset freespaceuse: Text Outputreset bytes: Text Outputwarn [text_or_function...]: Text Outputerror [text_or_function...]: Text Outputassert {condition}[,text_or_function...]: Text Outputcheck title "{title}": Checkscheck bankcross {off/half/full}: Checkswarnings {push/pull}: Warningswarnings {enable/disable} {name}: Warnings