From d8129bd643b9b28174f29abd64b6e37915a90263 Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 26 Mar 2024 18:53:34 -0700 Subject: [PATCH] ppcexec: Add comments for macros. --- cpu/ppc/ppcexec.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpu/ppc/ppcexec.cpp b/cpu/ppc/ppcexec.cpp index dbf5eb9..a58e4a9 100644 --- a/cpu/ppc/ppcexec.cpp +++ b/cpu/ppc/ppcexec.cpp @@ -580,6 +580,16 @@ void ppc_exec_dbg(volatile uint32_t start_addr, volatile uint32_t size) } } +/* +Opcode table macros: +- d is for dot (RC). +- o is for overflow (OV). +- c is for carry CARRY0/CARRY1. It also works for other options: + SHFT0/SHFT1, RIGHT0/LEFT1, uint8_t/uint16_t/uint32_t, and int8_t/int16_t. +- t is for two. It's like d for dot but for when the function used for Rc=0 and Rc=1 + is the same (usually for illegal_op). + */ + #define OP(opcode, subopcode, fn) \ SubOpcode ## opcode ## Grabber[((subopcode)<<1)] = fn;