1.1--- a/draft/a-bit-of-risc.org Sun Jun 16 01:43:41 2024 -0400
1.2+++ b/draft/a-bit-of-risc.org Sat Jun 22 23:54:39 2024 -0400
1.3@@ -127,7 +127,7 @@
1.4 (:import-from :sb-vm :immediate-constant :registers :zero :ea))
1.5 (in-package :hakmem)
1.6 ;; (in-package :sb-x86-64-asm)
1.7- (in-readtable :std)
1.8+ ;; (in-readtable :std)
1.9 (declaim (optimize (speed 3) (safety 1)))
1.10 (defconstant +word-size+ 32 "default word size and register length.")
1.11 #+end_src
1.12@@ -292,20 +292,20 @@
1.13
1.14 #+RESULTS: instruction-list
1.15 #+begin_example
1.16-((XOR . #<FUNCTION (LAMBDA ()) {100E4ED81B}>)
1.17- (OR . #<FUNCTION (LAMBDA ()) {100E4ED84B}>)
1.18- (AND . #<FUNCTION (LAMBDA ()) {100E4ED87B}>)
1.19- (MULI . #<FUNCTION (LAMBDA (I)) {100E4ED8AB}>)
1.20- (ADDI . #<FUNCTION (LAMBDA (I)) {100E4ED8DB}>)
1.21- (CMPGE . #<FUNCTION (LAMBDA ()) {100E4ED90B}>)
1.22- (CMPGT . #<FUNCTION (LAMBDA ()) {100E4ED93B}>)
1.23- (CMPLE . #<FUNCTION (LAMBDA ()) {100E4ED96B}>)
1.24- (CMPLT . #<FUNCTION (LAMBDA ()) {100E4ED99B}>)
1.25- (CMPNE . #<FUNCTION (LAMBDA ()) {100E4ED9CB}>)
1.26- (CMPEQ . #<FUNCTION (LAMBDA ()) {100E4ED9FB}>)
1.27- (REM . #<FUNCTION (LAMBDA ()) {100E4EDA2B}>)
1.28- (DIV . #<FUNCTION (LAMBDA ()) {100E4EDA7B}>)
1.29- (MUL . #<FUNCTION (LAMBDA ()) {100E4EDABB}>)
1.30- (SUB . #<FUNCTION (LAMBDA ()) {100E4EDAEB}>)
1.31- (ADD . #<FUNCTION (LAMBDA ()) {100E4EDB1B}>))
1.32+((XOR . #<FUNCTION (LAMBDA ()) {101CF0367B}>)
1.33+ (OR . #<FUNCTION (LAMBDA ()) {101CF036AB}>)
1.34+ (AND . #<FUNCTION (LAMBDA ()) {101CF036DB}>)
1.35+ (MULI . #<FUNCTION (LAMBDA (I)) {101CF0370B}>)
1.36+ (ADDI . #<FUNCTION (LAMBDA (I)) {101CF0373B}>)
1.37+ (CMPGE . #<FUNCTION (LAMBDA ()) {101CF0376B}>)
1.38+ (CMPGT . #<FUNCTION (LAMBDA ()) {101CF0379B}>)
1.39+ (CMPLE . #<FUNCTION (LAMBDA ()) {101CF037CB}>)
1.40+ (CMPLT . #<FUNCTION (LAMBDA ()) {101CF037FB}>)
1.41+ (CMPNE . #<FUNCTION (LAMBDA ()) {101CF0382B}>)
1.42+ (CMPEQ . #<FUNCTION (LAMBDA ()) {101CF0385B}>)
1.43+ (REM . #<FUNCTION (LAMBDA ()) {101CF0388B}>)
1.44+ (DIV . #<FUNCTION (LAMBDA ()) {101CF038DB}>)
1.45+ (MUL . #<FUNCTION (LAMBDA ()) {101CF0391B}>)
1.46+ (SUB . #<FUNCTION (LAMBDA ()) {101CF0394B}>)
1.47+ (ADD . #<FUNCTION (LAMBDA ()) {101CF0397B}>))
1.48 #+end_example