%%%off % Copyright: This file is part of the MMIX Supplement package (c) Martin Ruckert 2014 % File: 5.3.1/ex28a.mms % Author: M. Ruckert % Title: Exercise 28, long version % Following the text page 183 to 184 % using the sequence: load, test and branch, store K IS $0 Parameter, Address of five octabytes a IS $1 b IS $2 c IS $3 d IS $4 e IS $5 t IS $6 %%%on :Sort LDB a,K,0 1 & LDB b,K,1 1 & LDB c,K,2 1 & LDB d,K,3 1 & LDB e,K,4 1 & CMP t,a,b 1 & BP t,0F 1\bg{0.5} & $a