Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: New thinBasic_Oxygen Module

  1. #1

    New thinBasic_Oxygen Module

    This new version is itself written in OxygenBasic and interfaces the latest generic Oxygen.dll.

    It can be downloaded from here:

    https://github.com/Charles-Pegge/OxygenBasic

    thinBasic_Oxygen.zip contains:

    Oxygen.dll
    thinBasic_Oxygen.dll
    thinBasicOxygen module source code
    Examples (a few)
    OxygenBasic Manual
    Oxylog.txt



    Copy both DLLs into \thinbasic\lib\
    Last edited by Charles Pegge; 03-06-2017 at 21:53.

  2. #2
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    great. Just played around with VarArrayPointers-sample and to make sure it's really "Bananas" I asked back like this:
    If p Then MsgBox 0, Memory_Get(p, Peek(DWord, p - SizeOf(DWord)))
    
    now- just to make sure SizeOf in oxygen only works on variables or also on types?
    I think there are missing some Forum-sections as beta-testing and support

  3. #3
    Yes, both types and variables.

    Some attribute cases:

    string s[3]={"apple","banana","melon"}
    
    
    print len s[2]      '6
    print len s[1]      '5
    print sizeof s      '4
    print spanof s      '3
    print typeof s      '"string"
    print sizeof string '4
    
    
    type udt
    double d
    string s
    byte   b[2]
    end type
    
    
    udt u
    print sizeof udt '14
    print sizeof u   '14
    

  4. #4
    Member
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    406
    Rep Power
    57
    And that is how OxygenBasic works!
    Attached Files Attached Files

  5. #5
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    fun example. only thing - and that's probably the same in tB - client-content vanishes when moving the window. but I'm used to place my windows in advance where I want them anyway.

    I did not find out yet how to start some plain oxygen-script - seems to be impossible from scintilla - so I'll probably stay one of those who uses oxygen through thinBasic. Assembler I don't get anyway - when I was a teenager (8-bit-times) there were only those things as CMP, LDA, STA, LDX, JMP, JSR etc. but that's a long time ago - so I'm probably no machine-coder but some basic head only. I'm still waiting for Petr to test the above mentioned Example-script from new oxygen - since it uses the same thinCore-functions. Maybe there's an advantage in system-independence through oxygen so I will develop most of these functions using oxgen then

    What would be an equate to Poke/Memory_Set in oxygen ?
    Last edited by ReneMiner; 22-07-2013 at 18:58.
    I think there are missing some Forum-sections as beta-testing and support

  6. #6
    Assembler can be freely mixed with OxygenBasic statements, global/static memory, technically speaking occupies the uninitialised data section, and locals/parameters occupy the stack. All basic variables and equates can be accessed by Assembler, within the standard scoping rules.


    byte b[4096]
    addr ecx,b 'pseudo instruction to load variable address
    mov byte [ecx+7],42
    indexbase 0
    print b[7]

    Assembly code is not usually needed , and limits portability, so I would advise staying with Basic, unless you want to do some.

    Last edited by Charles Pegge; 22-07-2013 at 20:52.

  7. #7
    Member
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    406
    Rep Power
    57
    and that's probably the same in tB - client-content vanishes when moving the window.

    Isn't the same!
    Attached Files Attached Files
    Last edited by peter; 23-07-2013 at 00:12.

  8. #8
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174
    no- isn't. the last examples run fine even when moving the window - so my windows are not broken- just dirty - since they are maintained by ms daily.
    I think there are missing some Forum-sections as beta-testing and support

  9. #9
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,817
    Rep Power
    10
    Charles,

    thanks for keeping thinBasic_Oxygen always up to date.
    I will publish very soon (hope next week) a new thinBasic update.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  10. #10
    Thanks Eros,

    The old Oxygen examples need to be dumped, since many of them are out of date.

Page 1 of 2 12 LastLast

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •