This commit is contained in:
Erin 2023-07-22 02:27:03 +02:00 committed by ondra05
parent ce323fc2f7
commit ee5a972921

View file

@ -67,8 +67,9 @@ impl Assembler {
// //
// Newly created `UN` (as UNreachable) was chosen as // Newly created `UN` (as UNreachable) was chosen as
// - It was a good idea to add some equivalent to `ud2` anyways // - It was a good idea to add some equivalent to `ud2` anyways
// - Its zeroes // - It was chosen to be zero
// - What if you somehow reached that code, it will appropriately bail :) // - What if you somehow reached that code, it will appropriately bail :)
// - (yes, originally NOP was considered)
// //
// Why 12 bytes? That's the size of largest instruction parameter part. // Why 12 bytes? That's the size of largest instruction parameter part.
self.buf.extend([0; 12]); self.buf.extend([0; 12]);