1 <!-- This defines DRAFT instructions that are to be proposed for SV -->
3 <!-- This defines instructions that load from RAM to a register -->
4 <!-- Effective Address is always RA, and the usual EA is stored late in RA -->
6 <!-- Note that these pages also define equivalent store instructions, -->
7 <!-- these are described in pifixedstore.mdwn -->
11 # Load Byte and Zero with Post-Update
20 RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
25 Let the effective address (EA) be register RA. The
26 byte in storage addressed by EA is loaded into RT[56:63].
27 RT[0:55] are set to 0.
29 The sum (RA) + D is placed into register RA.
31 If RA=0 or RA=RT, the instruction form is invalid.
33 Special Registers Altered:
37 # Load Byte and Zero with Post-Update Indexed
46 RT <- ([0] * (XLEN-8)) || MEM(EA, 1)
51 Let the effective address (EA) be register RA.
52 The byte in storage addressed by EA is loaded into
53 RT[56:63]. RT[0:55] are set to 0.
55 The sum (RA) + (RB) is placed into register RA.
57 If RA=0 or RA=RT, the instruction form is invalid.
59 Special Registers Altered:
63 # Load Halfword and Zero with Post-Update
72 RT <- ([0] * (XLEN-16)) || MEM(EA, 2)
77 Let the effective address (EA) be register RA. The
78 halfword in storage addressed by EA is loaded into
79 RT[48:63]. RT[0:47] are set to 0.
81 The sum (RA) + D is placed into register RA.
83 If RA=0 or RA=RT, the instruction form is invalid.
85 Special Registers Altered:
89 # Load Halfword and Zero with Post-Update Indexed
98 RT <- ([0] * (XLEN-16)) || MEM(EA, 2)
103 Let the effective address (EA) be register RA.
104 The halfword in storage addressed by EA is loaded into
105 RT[48:63]. RT[0:47] are set to 0.
107 The sum (RA) + (RB) is placed into register RA.
109 If RA=0 or RA=RT, the instruction form is invalid.
111 Special Registers Altered:
115 # Load Halfword Algebraic with Post-Update
124 RT <- EXTS(MEM(EA, 2))
127 Special Registers Altered:
131 # Load Halfword Algebraic with Post-Update Indexed
140 RT <- EXTS(MEM(EA, 2))
143 Special Registers Altered:
147 # Load Word and Zero with Post-Update
156 RT <- [0]*32 || MEM(EA, 4)
159 Special Registers Altered:
163 # Load Word and Zero with Post-Update Indexed
172 RT <- [0] * 32 || MEM(EA, 4)
175 Special Registers Altered:
179 # Load Word Algebraic with Post-Update Indexed
188 RT <- EXTS(MEM(EA, 4))
191 Special Registers Altered:
195 # Load Doubleword with Post-Update Indexed
205 RA <- (RA) + EXTS(DS || 0b00)
207 Special Registers Altered:
211 # Load Doubleword with Post-Update Indexed
223 Special Registers Altered: