Basic constructor macro for instr-jal structures.
(make-instr-jal [:rd <rd>] [:imm <imm>])
This is the usual way to construct instr-jal structures. It simply conses together a structure with the specified fields.
This macro generates a new instr-jal structure from scratch. See also change-instr-jal, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-instr-jal (&rest args) (std::make-aggregate 'instr-jal args '((:rd) (:imm)) 'make-instr-jal nil))
Function:
(defun instr-jal (rd imm) (declare (xargs :guard (and (ubyte5p rd) (ubyte20p imm)))) (declare (xargs :guard t)) (let ((__function__ 'instr-jal)) (declare (ignorable __function__)) (b* ((rd (mbe :logic (ubyte5-fix rd) :exec rd)) (imm (mbe :logic (ubyte20-fix imm) :exec imm))) (cons :jal (list rd imm)))))