# [DRAFT] Prefix-code decode VA2-Form * pcdec. RT,RA,RB,RC,once Pseudo-code: tree[0:63] <- (RB) ra_used <- 0b0 in_bits[0:63] <- (RC|0) if in_bits = 0 then in_bits[0:63] <- 1 final_in_bits <- in_bits final_ra_used <- ra_used output <- [0] * 64 out_byte <- 0 decoded[0:7] <- 1 so_bit <- 0b0 early_stop <- 0b0 do while out_byte < 8 in_bit <- in_bits[63] if in_bits = 1 then if ra_used | (_RA = 0) then early_stop <- 0b1 leave ra_used <- 0b1 in_bit <- (RA)[63] in_bits <- 0b1 || (RA)[0:62] else in_bits <- 0b0 || in_bits[0:62] # walk the binary tree in `tree` from parent to the selected child decoded <- decoded[1:7] || in_bit if decoded