Skip to content

Instantly share code, notes, and snippets.

@BillBai
BillBai / riscv.md
Created March 2, 2023 06:18 — forked from cb372/riscv.md
Writing an OS in Rust to run on RISC-V

(This is a translation of the original article in Japanese by moratorium08.)

(UPDATE (22/3/2019): Added some corrections provided by the original author.)

Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.

@BillBai
BillBai / 词性标记.md
Created April 9, 2016 12:32 — forked from luw2007/词性标记.md
词性标记: 包含 ICTPOS3.0词性标记集、ICTCLAS 汉语词性标注集、jieba 字典中出现的词性、simhash 中可以忽略的部分词性

词的分类

  • 实词:名词、动词、形容词、状态词、区别词、数词、量词、代词
  • 虚词:副词、介词、连词、助词、拟声词、叹词。

ICTPOS3.0词性标记集

n 名词

nr 人名

org 0000h
ajmp start ; entrance of the program
org 0003h ; set up external interruption 0 vector
ajmp jint0
org 000bh ; set up timer 0 interruption vector
ajmp t0int
org 0013h ; set up external interruption 1 vector
ajmp jint1
org 0030h
class Btree
def initialize(node)
@node = node
@lchild = nil
@rchild = nil
end
attr_accessor :lchild, :rchild, :node
end
@BillBai
BillBai / c51hw.asm
Last active February 23, 2016 06:11
c51homework
org 0000h
ajmp start
org 0003h
ajmp jint0
org 000bh
ajmp t0int
org 0013h
ajmp jint1
org 0030h