add example on how to access regs list for cmp
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Jan 2021 20:04:31 +0000 (20:04 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Jan 2021 20:04:31 +0000 (20:04 +0000)
src/soc/decoder/pseudo/pagereader.py

index 8583bf4b85a067b5c54df43c7e3ec8c180b5910a..a5d05cc53eb51fdc4a63263bf2181f164d416282 100644 (file)
@@ -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)