Re: LZ: display hex


[Prev][Next][Index][Thread]

Re: LZ: display hex



Not sure if this is what you want to know but..


create an array that holds:
'0','1','2','3','4','5','6','7','8',9','A','B','C','D','E','F'


where B = the byte to convert
      S = the output string.
      A = the array
S = A[B SHR 4] + A[B and $0F] 


I didn't write in a specific langauge, but I can show it to you in 
8086-asm, Z80, Pascal, TI-Basic, HP-RPL, C or Basic.
		- OrangeTide <jmayo@mail.alliance.net>


On Wed, 24 Jul 1996, David Kristensen wrote:


> Could anyone tell me the best way to display hex numbers? I'm going to look
> through the source to hexview and popchar. I was just wondering if anyone
> knew a better or shorter way to display a single 8-bit hex number.
> 
> David Kristensen at the University of Missouri - Kansas City
> dkristensen@cctr.umkc.edu
> 
> The Mind conquers All...
> 
> 


References: