@@ -247,35 +247,27 @@ impl<'a> BlockAsm<'a> {
247247 }
248248
249249 pub fn load_u8 ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > ) {
250- self . transfer_read ( op0, op1, op2, false , MemoryAmount :: Byte )
250+ self . transfer ( BlockTransferOp :: Read , op0, op1, op2, false , MemoryAmount :: Byte )
251251 }
252252
253253 pub fn store_u8 ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > ) {
254- self . transfer_write ( op0, op1, op2, false , MemoryAmount :: Byte )
254+ self . transfer ( BlockTransferOp :: Write , op0, op1, op2, false , MemoryAmount :: Byte )
255255 }
256256
257257 pub fn load_u16 ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > ) {
258- self . transfer_read ( op0, op1, op2, false , MemoryAmount :: Half )
258+ self . transfer ( BlockTransferOp :: Read , op0, op1, op2, false , MemoryAmount :: Half )
259259 }
260260
261261 pub fn store_u16 ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > ) {
262- self . transfer_write ( op0, op1, op2, false , MemoryAmount :: Half )
262+ self . transfer ( BlockTransferOp :: Write , op0, op1, op2, false , MemoryAmount :: Half )
263263 }
264264
265265 pub fn load_u32 ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > ) {
266- self . transfer_read ( op0, op1, op2, false , MemoryAmount :: Word )
266+ self . transfer ( BlockTransferOp :: Read , op0, op1, op2, false , MemoryAmount :: Word )
267267 }
268268
269269 pub fn store_u32 ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > ) {
270- self . transfer_write ( op0, op1, op2, false , MemoryAmount :: Word )
271- }
272-
273- pub fn transfer_read ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > , signed : bool , amount : MemoryAmount ) {
274- self . transfer ( BlockTransferOp :: Read , op0, op1, op2, signed, amount)
275- }
276-
277- pub fn transfer_write ( & mut self , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > , signed : bool , amount : MemoryAmount ) {
278- self . transfer ( BlockTransferOp :: Write , op0, op1, op2, signed, amount)
270+ self . transfer ( BlockTransferOp :: Write , op0, op1, op2, false , MemoryAmount :: Word )
279271 }
280272
281273 fn transfer ( & mut self , op : BlockTransferOp , op0 : impl Into < BlockReg > , op1 : impl Into < BlockReg > , op2 : impl Into < BlockOperandShift > , signed : bool , amount : MemoryAmount ) {
0 commit comments