Docs: for cpu.x86.* words
parent
6a8336047d
commit
d074f1a9c9
|
@ -0,0 +1,11 @@
|
|||
USING: help.markup help.syntax math ;
|
||||
IN: cpu.x86.64
|
||||
|
||||
HELP: vm-reg
|
||||
{ $description
|
||||
"Symbol of the machine register that holds the address of the virtual machine."
|
||||
} ;
|
||||
|
||||
HELP: param-reg
|
||||
{ $values { "n" number } { "reg" "a register symbol" } }
|
||||
{ $description "Symbol of the machine register for the nth function parameter (0-based)." } ;
|
|
@ -0,0 +1,37 @@
|
|||
USING: help.markup help.syntax ;
|
||||
IN: cpu.x86
|
||||
|
||||
HELP: stack-reg
|
||||
{ $description
|
||||
"Symbol of the machine register that holds the (cpu) stack address."
|
||||
} ;
|
||||
|
||||
HELP: ds-reg
|
||||
{ $description
|
||||
"Symbol of the machine register that holds the address to the data stack's location."
|
||||
} ;
|
||||
|
||||
HELP: (%inc)
|
||||
{ $description
|
||||
"Generates machine code for increasing or decreasing the given register a number of cell sizes bytes."
|
||||
}
|
||||
{ $examples
|
||||
{ $unchecked-example
|
||||
"USING: cpu.x86 make prettyprint ;"
|
||||
"[ 8 ECX (%inc) ] B{ } make disassemble"
|
||||
"00000000615e5140: 83c140 add ecx, 0x40"
|
||||
}
|
||||
} ;
|
||||
|
||||
HELP: load-zone-offset
|
||||
{ $values { "nursery-ptr" "a register symbol" } }
|
||||
{ $description
|
||||
"Generates machine code for loading the address to the nursery into the machine register."
|
||||
}
|
||||
{ $examples
|
||||
{ $unchecked-example
|
||||
"USING: cpu.x86 make prettyprint ;"
|
||||
"[ RCX load-zone-offset ] B{ } make disassemble"
|
||||
"0000000001b48f80: 498d4d10 lea rcx, [r13+0x10]"
|
||||
}
|
||||
} ;
|
Loading…
Reference in New Issue