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}
: Architectures
spcblock {target_address} [{engine_type}]
: Architectures
endspcblock [execute {execution_address}]
: Architectures
lorom
: Mapping Modes
hirom
: Mapping Modes
exlorom
: Mapping Modes
exhirom
: Mapping Modes
sa1rom [num, num, num, num]
: Mapping Modes
fullsa1rom
: Mapping Modes
sfxrom
: Mapping Modes
norom
: Mapping Modes
asar {ver}
: Compatibility Settings
namespace nested {on/off}
: Compatibility Settings
{
: Code Formatting and Syntax
}
: Code Formatting and Syntax
org {snes_address}
: Program Counter
base {snes_address/off}
: Program Counter
skip {num_bytes}
: Program Counter
skip align {alignment} [offset {offset}]
: Program Counter
bank {data_bank/noassume/auto}
: Program Counter
dpbase {snes_address}
: Program Counter
optimize dp {none/ram/always}
: Program Counter
optimize address {default/ram/mirrors}
: Program Counter
pushpc
: Program Counter
pullpc
: Program Counter
pushbase
: Program Counter
pullbase
: Program Counter
struct {identifier} {snes_address}
: Structs
endstruct [align {num}]
: Structs
struct {identifier} extends {identifier}
: Structs
namespace {identifier}
: Namespaces
namespace off
: Namespaces
pushns
: Namespaces
pullns
: Namespaces
global [#]{identifier}:
: Namespaces
!{identifier} = {value}
: Defines
!{identifier} = "{value}"
: Defines
undef "{identifier}"
: Defines
macro {identifier}(...)
: Macros
endmacro
: Macros
function {identifier}(...) = {math}
: Functions
if {condition}
: Conditionals and Loops
elseif {condition}
: Conditionals and Loops
else
: Conditionals and Loops
endif
: Conditionals and Loops
while {condition}
: Conditionals and Loops
endwhile
: Conditionals and Loops
for {variable} = {start}..{end}
: Conditionals and Loops
endfor
: Conditionals and Loops
db {value}[,value...]
: Binary Data
dw {value}[,value...]
: Binary Data
dl {value}[,value...]
: Binary Data
dd {value}[,value...]
: Binary Data
'{character}' = {value}
: Binary Data
cleartable
: Binary Data
pushtable
: Binary Data
pulltable
: Binary Data
fillbyte {byte}
: Binary Data
fill {num}
: Binary Data
fill align {alignment} [offset {offset}]
: Binary Data
fillword
: Binary Data
filllong
: Binary Data
filldword
: Binary Data
padbyte {byte}
: Binary Data
pad {snes_address}
: Binary Data
padword
: Binary Data
padlong
: Binary Data
paddword
: Binary Data
incbin {filename}[:range_start..range_end]
: Binary Data
incsrc {filename}
: Includes
include
: Includes
includefrom {filename}
: Includes
includeonce
: Includes
freespace {ram/noram}[,norats][,align][,cleaned][,static][,bankcross][,bank={num}][,start={num}][,pin={label}]
: Freespace
freecode [options...]
: Freespace
freedata [options...]
: Freespace
segment [ram/noram][,align][,bankcross][,bank={num}][,start={num}][,pin={label}]
: Freespace
freespacebyte {value}
: Freespace
freespace_settings {options...}
: Freespace
autoclean jml/jsl/lda/cmp/.../dl {label}
: Freespace
autoclean {snes_address}
: Freespace
prot {label}[,label...]
: Freespace
print {text_or_function}[,text_or_function...]
: Text Output
reset freespaceuse
: Text Output
reset bytes
: Text Output
warn [text_or_function...]
: Text Output
error [text_or_function...]
: Text Output
assert {condition}[,text_or_function...]
: Text Output
check title "{title}"
: Checks
check bankcross {off/half/full}
: Checks
warnings {push/pull}
: Warnings
warnings {enable/disable} {name}
: Warnings