Author Topic: [fixed] Difficulties with "Help" in QB64 1.3  (Read 6242 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
Re: [fixed] Difficulties with "Help" in QB64 1.3
« Reply #15 on: April 10, 2019, 08:19:22 pm »
I'll be adding this shortly and let you know here, Cobalt.
« Last Edit: April 10, 2019, 08:20:44 pm by FellippeHeitor »

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Re: [fixed] Difficulties with "Help" in QB64 1.3
« Reply #16 on: April 10, 2019, 08:31:47 pm »
I see two useful new commands here:
_echo and _trim$

Now I have to go into the repository and load up again.

FellippeHeitor

  • Guest
Re: [fixed] Difficulties with "Help" in QB64 1.3
« Reply #17 on: April 10, 2019, 08:32:58 pm »

Offline Raven_Singularity

  • Forum Regular
  • Posts: 158
    • View Profile
Re: [fixed] Difficulties with "Help" in QB64 1.3
« Reply #18 on: April 10, 2019, 08:45:53 pm »
So I hadn't realised I was not using the latest version of QB64.  After updating from v1.2 to v1.3, the IDE seems to be behaving far better with my 4K display.  I still need to override Windows DPI scaling, but now I can actually put in custom screen sizing like 80x25 or 100x50 and it works.  It also seems I can also use a custom TTF now without it pixelating it from a tiny size.

Thanks a lot for all the work, devs!  Much appreciated.

FellippeHeitor

  • Guest
Re: [fixed] Difficulties with "Help" in QB64 1.3
« Reply #19 on: April 11, 2019, 10:31:53 am »
Believe these to be finished Fellippe, corrected some spelling in _SHR. You might still give them a once over to make sure it is all good.

Code: QB64: [Select]
  1. {{DISPLAYTITLE:_SHR}}{{DISPLAYTITLE:}}
  2. The [[_SHR]] function is used to shift the bits of a numerical value to the right.
  3.  
  4.  
  5. {{PageSyntax}}
  6. :{{Parameter|Numerical_value}} = [[_SHR]]({{Parameter|numericalVariable}}, {{Parameter|numericalValue}})
  7.  
  8.  
  9. {{Parameters}}
  10. * {{Parameter|numericalvariable}} is the variable to shift the bits of and can be of the following types: [[INTEGER]], [[LONG]],[[_INTEGER64]], or [[_BYTE]].
  11. * Integer values can be signed or [[_UNSIGNED]].
  12. * {{Parameter|numericalValue}} the number of places to shift the bits.
  13. * While 0 is a valid value it will have no affect on the variable being shifted.
  14.  
  15. {{PageDescription}}
  16. * Allows for division of a value by 2 faster than normal division
  17. * Bits that reach the end of a variables bit count is dropped
  18. * The type of variable used to store the results should match the type of the variable being shifted.
  19.  
  20. {{PageExamples}}
  21. {{CodeStart}}A~%% = 128 'set left most bit of an{{Cl|_UNSIGNED}} {{Cl|_BYTE}}
  22. {{Cl|PRINT}} A~%%
  23. {{Cl|PRINT}} {{Cl|_SHR}}(A~%%,7)
  24. {{Cl|PRINT}} {{Cl|_SHR}}(A~%%,8) 'shift the bit off the right 'edge'
  25. {{CodeEnd}}
  26. {{OutputStart}}
  27. 128
  28. 1
  29. 0
  30. {{OutputEnd}}
  31.  
  32.  
  33. {{CodeStart}}
  34. A~%% = 128
  35. {{Cl|FOR}} I%% = 0 to 8
  36. {{Cl|PRINT}} {{Cl|_SHR}}(A~%%,I%%)
  37. {{Cl|NEXT I%%}}
  38. {{CodeEnd}}
  39. {{OutputStart}}
  40. 128
  41.  64
  42.  32
  43.  16
  44.  8
  45.  4
  46.  2
  47.  1
  48.  0
  49. {{OutputEnd}}
  50.  
  51. {{PageSeeAlso}}
  52. * [[_SHL]], [[INTEGER]], [[LONG]]
  53. * [[_BYTE]], [[_INTEGER64]]
  54.  
  55.  
  56. {{PageNavigation}}{{DISPLAYTITLE:}}
  57.  

Code: QB64: [Select]
  1. {{DISPLAYTITLE:_SHL}}{{DISPLAYTITLE:}}
  2. The [[_SHL]] function is used to shift the bits of a numerical value to the left.
  3.  
  4.  
  5. {{PageSyntax}}
  6. :{{Parameter|Numerical_value}} = [[_SHL]]({{Parameter|numericalVariable}}, {{Parameter|numericalValue}})
  7.  
  8.  
  9. {{Parameters}}
  10. * {{Parameter|numericalvariable}} is the variable to shift the bits of and can be of the following types: [[INTEGER]], [[LONG]],[[_INTEGER64]], or [[_BYTE]].
  11. * Integer values can be signed or [[_UNSIGNED]].
  12. * {{Parameter|numericalValue}} the number of places to shift the bits.
  13. * While 0 is a valid value it will have no affect on the variable being shifted.
  14.  
  15. {{PageDescription}}
  16. * Allows for Multiplication of a value by 2 faster than normal multiplication
  17. * Bits that reach the end of a variables bit count is dropped(when using a variable of the same type otherwise they will carry over)
  18. * The type of variable used to store the results should match the type of the variable being shifted.
  19.  
  20. {{PageExamples}}
  21. {{CodeStart}}A~%% = 1 'set right most bit of an{{Cl|_UNSIGNED}} {{Cl|_BYTE}}
  22. {{Cl|PRINT}} A~%%
  23. {{Cl|PRINT}} {{Cl|_SHL}}(A~%%,7)
  24. B~%% = {{Cl|_SHL}}(A~%%,8) 'shift the bit off the left 'edge'
  25. {{Cl|PRINT}} B~%%
  26. {{CodeEnd}}
  27. {{OutputStart}}
  28. 1
  29. 128
  30. 0
  31. {{OutputEnd}}
  32.  
  33.  
  34. {{CodeStart}}
  35. A~%% = 1
  36. {{Cl|FOR}} I%% = 0 to 8
  37. {{Cl|PRINT}} {{Cl|_SHL}}(A~%%,I%%)
  38. {{Cl|NEXT I%%}}
  39. {{CodeEnd}}
  40. {{OutputStart}}
  41.   1
  42.   2
  43.   4
  44.   8
  45.  16
  46.  32
  47.  64
  48. 128
  49. 256*(see note)
  50. {{OutputEnd}}
  51. *Note: When directly printing the result {{Cl|PRINT}} is treated like a larger variable type so the left most bit is carried to the next value.
  52. *      To avoid this store the result in a variable of the same type before printing.
  53.  
  54. {{PageSeeAlso}}
  55. * [[_SHL]], [[INTEGER]], [[LONG]]
  56. * [[_BYTE]], [[_INTEGER64]]
  57.  
  58.  
  59. {{PageNavigation}}{{DISPLAYTITLE:}}
  60.  

There goes:

http://www.qb64.org/wiki/SHR

http://www.qb64.org/wiki/SHL
« Last Edit: April 11, 2019, 10:35:52 am by FellippeHeitor »

FellippeHeitor

  • Guest
Re: [fixed] Difficulties with "Help" in QB64 1.3
« Reply #20 on: April 11, 2019, 10:41:19 am »
And here are all the recent changes to the wiki: http://www.qb64.org/wiki/Special:RecentChanges