home *** CD-ROM | disk | FTP | other *** search
/ Commodore 64 Scene Diskmags Assortment / DMBBS_Bi-Monthly_Magazine_5_1990-06-01_Sledge.d64 / 8.2 < prev    next >
Text File  |  2023-02-26  |  1KB  |  52 lines

  1.  
  2.  
  3.  
  4.  
  5. Hex Notation.
  6.  
  7.    Hex or base 16 is simple another 
  8. base of counting. It is what you need 
  9. to understand to use a ml monitor 
  10. effectively and here I will explain.
  11.  
  12.    You don't necessarily need to 
  13. understand it, you just need to be 
  14. able to use it. As you may have 
  15. guessed, unlike our decimal system 
  16. which uses tens, hex uses sixteens. 
  17. (0-f) Her e is how to convert a decimal 
  18. number to a hex number.
  19.  
  20. Say you wanted to convert 53280 to 
  21. hex. You would start by making a chart 
  22. like this.
  23.  
  24. 4096    256    16    1
  25. {SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
  26.  
  27. Then, you take the first number-4096 
  28. and figure out how many times 53280 
  29. will go into it evenly.
  30.  
  31. It goes into it 14 time, or d in hex. 
  32. So put a d on the chart.
  33.  
  34. 4096    256    16    1
  35. {SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}{SHIFT-*}
  36.    d
  37.  
  38. Now proceed to do the same with the 
  39. remaining three until you have the 
  40. correct number.
  41.  
  42. 256=0
  43. 16=2
  44. 1=0
  45.  
  46. Finish off your chart and whammo! For 
  47. further info refer to the Commodore 64 
  48. Programmers Reference Manual. pg. 
  49. 216-17.
  50.  
  51. Latah!
  52.