From: Luke Kenneth Casson Leighton Date: Fri, 22 Jan 2021 20:04:31 +0000 (+0000) Subject: add example on how to access regs list for cmp X-Git-Tag: 24jan2021_ls180~16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d9c652367d84ec23e182f7634314fa0d414278ea;p=soc.git add example on how to access regs list for cmp --- diff --git a/src/soc/decoder/pseudo/pagereader.py b/src/soc/decoder/pseudo/pagereader.py index 8583bf4b..a5d05cc5 100644 --- a/src/soc/decoder/pseudo/pagereader.py +++ b/src/soc/decoder/pseudo/pagereader.py @@ -284,3 +284,5 @@ class ISA: if __name__ == '__main__': isa = ISA() isa.pprint_ops() + # example on how to access cmp regs: + print ("cmp regs:", isa.instr["cmp"].regs)