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 ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    49
    Posts
    1,281
    Blog Entries
    1
    Rep Power
    141
    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?
    posted from my brand new no-name-tablet with 2GB Ram, no-name onboard-graphics with dedicated 128 MB memory and altogether maybe 150 GB really slow SD-card-memory.
    But it runs Windows 10!

  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
    51
    And that is how OxygenBasic works!
    Attached Files Attached Files

  5. #5
    thinBasic MVPs ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    49
    Posts
    1,281
    Blog Entries
    1
    Rep Power
    141
    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.
    posted from my brand new no-name-tablet with 2GB Ram, no-name onboard-graphics with dedicated 128 MB memory and altogether maybe 150 GB really slow SD-card-memory.
    But it runs Windows 10!

  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
    51
    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 ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    49
    Posts
    1,281
    Blog Entries
    1
    Rep Power
    141
    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.
    posted from my brand new no-name-tablet with 2GB Ram, no-name onboard-graphics with dedicated 128 MB memory and altogether maybe 150 GB really slow SD-card-memory.
    But it runs Windows 10!

  9. #9
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    52
    Posts
    8,439
    Blog Entries
    2
    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/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  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

Posting Permissions

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