I hereby claim:
- I am sam-falvo on github.
- I am saf2 (https://keybase.io/saf2) on keybase.
- I have a public key whose fingerprint is 07B8 1461 A0DE C658 D4F3 ED4C 62C5 0196 16AF 1914
To claim this, I am signing this object:
| (defun expand-test (name actual-expr fn expected-expr setup-form teardown-form) | |
| `(progn | |
| (defun ,name () | |
| (unwind-protect | |
| (progn | |
| ,setup-form | |
| (let ((expected ,expected-expr) | |
| (actual ,actual-expr)) | |
| (unless (,fn actual expected) | |
| (error "~A: Expected ~A; got ~A" (string ',name) expected actual)))) |
| GET "libhdr" | |
| // Define the message selectors for our "object-oriented" interface. | |
| MANIFEST { | |
| MSG_INIT = 1; MSG_FREE; | |
| MSG_TICK; | |
| MSG_GET_COUNT; | |
| MSG_GO_DOWN; | |
| MSG_GO_UP; |
| `define NTB(name)\ | |
| `"name``_tb`" | |
| `define DEFASSERT(name,msb)\ | |
| task assert_``name``;\ | |
| input [``msb``:0] expected;\ | |
| begin\ | |
| if(expected !== ``name``_tb) begin\ | |
| $display("@E %03X %s Expected %X, got %X", story_tb, `NTB(name), expected, ``name``_tb);\ | |
| $stop;\ |
| extern crate sdl2; | |
| extern crate gemini; | |
| use gemini::{vdi, font}; | |
| use std::string; | |
| static SDCARD_IOR : [u16; 16] = [ | |
| 0b0000000000000000, |
| `timescale 1ns / 1ps | |
| // This module implements a subset of the Kestrel-3 computer in a | |
| // configuration reasonable for use with Verilator simulation. | |
| module computer( | |
| output [17:1] ram_adr_i, | |
| output [15:0] ram_dat_i, | |
| output [1:0] ram_sel_i, | |
| output ram_wen_i, |
| The first thing we need to do when invoking SIE is save the current thread state. | |
| The invokING thread called us via an ECALL, so some of this state is in mstatus and mepc. | |
| So, save it. | |
| _SIE: ; A0 -> SIEBK to invoke. | |
| csrrw t0, mscratch, x0 ; mscratch = t0, t0 = pointer to current SIEBK. | |
| sd x1, _X1(t0) | |
| sd x2, _X2(t0) | |
| ... | |
| sd x31, _X31(t0) |
| Intel Decodes CISC to RISC, | |
| Can We Decode RISC-V to MISC? | |
| Samuel A. Falvo II | |
| 2016-Aug-27 | |
| 500000 constant //dataset | |
| //dataset value /dataset | |
| : /dataset-1 | |
| /dataset 1 cells - ; | |
| create unsorted ( rely on random contents from ASLR ) | |
| 16 , 15 , 14 , 13 , 12 , 11 , 10 , 9 , 8 , 7 , 6 , 5 , 4 , 3 , 2 , 1 , | |
| //dataset allot |
| align 8 | |
| dword $0E00000000000000 | |
| emit: | |
| ld x16 , 0(dsp) | |
| addi dsp, dsp, 8 | |
| LGP1 : | |
| auipc gp, 0 | |
| ld x17 , (emit-LGP1 )-8 (gp) | |
| sb x16 , 0(x17 ) | |
| jalr x0, 0(ra) |
I hereby claim:
To claim this, I am signing this object: