1/*
2 * gomacro - A Go interpreter with Lisp-like macros
3 *
4 * Copyright (C) 2018-2019 Massimiliano Ghilardi
5 *
6 *     This Source Code Form is subject to the terms of the Mozilla Public
7 *     License, v. 2.0. If a copy of the MPL was not distributed with this
8 *     file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 *
10 *
11 * set.go
12 *
13 *  Created on May 20, 2018
14 *      Author Massimiliano Ghilardi
15 */
16
17package jit
18
19func (asm *Asm) Load(dst Reg, src Arg) *Asm {
20	return asm.load(asm.reg(dst), src)
21}
22
23func (asm *Asm) LoadConst(dst Reg, val int64) *Asm {
24	return asm.loadConst(asm.reg(dst), val)
25}
26
27func (asm *Asm) Store(dst *Var, src Arg) *Asm {
28	return asm.store(dst, src)
29}
30
31func (asm *Asm) Zero(dst *Var) *Asm {
32	return asm.store(dst, Int64(0))
33}
34