Skip to content

Quick Reference

Chysn edited this page Jan 27, 2022 · 17 revisions

Disassemble from Address

.D [from] [to] ; Official 6502 instructions
.E [from] [to] ; Plus Undocumented instructions

Assemble at Address

.A addr mne [operand] [;comment]
.A addr "string"
.A addr :nn [nn] [nn] [nn]
.A addr %bbbbbbbb

Symbol Management

.* addr      ; Set Command Pointer
.@           ; Show symbol table
.@-          ; Clear symbol table
.@name value ; Set symbol value (8- or 16-bit)

Memory Display

.M [from] [to] ; Hex
.% [from] [to] ; Binary
.I [from] [to] ; Text

Register Management

.R    ; Display registers
;ac [xr] [yr] [pr]

Execute Subroutine

.G addr ; Left-arrow
.G      ; Continue after BRK

Breakpoint Management

.B addr        ; Set breakpoint, enable wAx BRK trapping
.B             ; Clear breakpoint, enable wAx BRK trapping
STOP/RESTORE   ; Disable wAx BRK trapping

Disk/Tape/SD Storage

.S start end+1 ["filename"] ; Save
.L ["filename"]             ; Load
.F                          ; Show all files
.F ["partial filename"]     ; Show selected files
.A:00BA device              ; Set device number (as hex)

Transfer and Pattern Fill

.T start end target  ; Copy
.A start "pattern"   ; Pattern Fill
.T start end *       ; ,,

Compare

.T [start1] [end1] [start2]

Search

.H addr:nn [nn] [nn] [nn] [nn] [nn] [nn] [nn]
.H addr "string" ; Up to 16 characters
.H addr mne [operand]

Assertion Tester

.= addr nn [nn] [nn] [nn] [nn] [nn] [nn] [nn]

Numeric Conversion

.$ hh[hh]  ; Hex to base-10
.# number  ; Base-10 to Hex

BASIC Stage

.↑ start-page [end-page] [NEW]  ; Set stage address
.↑                              ; Show stage address range (in pages)
Clone this wiki locally