Emit the truncated immediate into the code sink.
(self, sink: &mut impl CodeSink)
| 227 | |
| 228 | /// Emit the truncated immediate into the code sink. |
| 229 | pub fn emit(self, sink: &mut impl CodeSink) { |
| 230 | match self { |
| 231 | Disp::None => {} |
| 232 | Disp::Imm8(n) => sink.put1(n as u8), |
| 233 | Disp::Imm32(n) => sink.put4(n as u32), |
| 234 | } |
| 235 | } |
| 236 | } |
no test coverage detected