%save-context ( temp1 temp2 -- )


Vocabulary
cpu.architecture

Inputs and outputs
temp1a register symbol
temp2a register symbol


Word description
Emits machine code for saving pointers to the callstack, datastack and retainstack in the current context field struct.

Examples

USING: cpu.architecture make ; [ RAX RBX %save-context ] B{ } make disassemble 0000000000e63ab0: 498b4500 mov rax, [r13] 0000000000e63ab4: 488d5c24f8 lea rbx, [rsp-0x8] 0000000000e63ab9: 488918 mov [rax], rbx 0000000000e63abc: 4c897010 mov [rax+0x10], r14 0000000000e63ac0: 4c897818 mov [rax+0x18], r15


Definition


Methods