From: lkcl Date: Wed, 21 Sep 2022 23:27:16 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~333 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=773f732c057b68b023afeb586f4b8440fe3b6293;p=libreriscv.git --- diff --git a/openpower/prefix_codes.mdwn b/openpower/prefix_codes.mdwn index 8b07425c4..40c905451 100644 --- a/openpower/prefix_codes.mdwn +++ b/openpower/prefix_codes.mdwn @@ -10,6 +10,11 @@ This is useful for Huffman codes, and other prefix-codes, which are used a lot i * Brotli * etc. +Links: + +* +* + # Prefix-code decode description `pcdec RT,RA,RB,RC,imm` @@ -62,6 +67,7 @@ Pseudo-code: overflow <- 0 do while in_pos =u 64 then @@ -72,6 +78,7 @@ Pseudo-code: output[56 - 8 * out_byte:63 - 8 * out_byte] <- decoded decoded <- 1 out_byte <- out_byte + 1 + # XXX if one? if "imm"? if one | (out_byte >=u 8) then break RT <- output @@ -83,4 +90,4 @@ Special Registers Altered: # [DRAFT] Prefix-code encode -TODO \ No newline at end of file +TODO