From 3740c88daa5d9b70968b60599f193a90a7465da5 Mon Sep 17 00:00:00 2001 From: Erin Date: Wed, 26 Jul 2023 00:16:50 +0200 Subject: [PATCH] Added warning --- hbbytecode/src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hbbytecode/src/lib.rs b/hbbytecode/src/lib.rs index 0c896730..6ea444f7 100644 --- a/hbbytecode/src/lib.rs +++ b/hbbytecode/src/lib.rs @@ -34,6 +34,13 @@ macro_rules! constmod { /// - I: Immediate (implements [`crate::Imm`] trait) /// - L: Memory load / store size (u16) /// - Other types are identity-mapped +/// +/// # BRC special-case +/// BRC's 3rd operand is plain byte, not a register. Encoding is the same, but for some cases it may matter. +/// +/// Please, if you distinguish in your API between byte and register, special case this one. +/// +/// Sorry for that :( #[macro_export] macro_rules! invoke_with_def { ($macro:path) => {