Donate Now Goal amount for this month: 100 USD, Received: 0 USD (0%)
Donate to support this site and ThinBASIC project development

Results 1 to 5 of 5

Thread: Oxygen module

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    47
    Posts
    7,556
    Blog Entries
    2
    Rep Power
    10

    Oxygen module

    Charles,

    I see you constantly updating Oxygen sources in http://community.thinbasic.com/index.php?topic=2115.0 (a big thanks for that) but compiled module in http://community.thinbasic.com/index.php?topic=1845.0 is still the version compiled on 2nd of October.

    Is it ok? I asked just for understanding how to behave when I release a new thinBasic version.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  2. #2

    Re: Oxygen module

    Hi Eros,

    The October version is the stable one with the assembler but without Basic. As soon as I have a stable O2H, it will replace the October version. I will probably add an extra 100k to the DLL for the Basic. I think it is best to maintain it as a single project.


    Here is the first operational code - but I have loads of testing and corrections to do yet.

    [code=thinbasic]
    uses "OXYGEN"
    uses "FILE"

    dim v1,v2,v3,v4,v5 as long
    dim p0,p1,p2,p3,p4 as long
    dim src as string

    src="
    o2h

    function fun1( byval v1 as long,byval v2 as long) at #p1
    static c,d=29 as long
    local a=2,b=42 as long
    function=v1+v2*4
    end function

    function o2_release() as long at #p0
    terminate
    end function

    "

    o2_asmo src
    v1=o2_exec

    declare sub o2_release () at p0
    declare function fun1 (byval v1 as long, byval v2 as long ) as long at p1

    v2=fun1(3,4)
    o2_release()



    msgbox 0,v2

    msgbox 0,"length "+o2_len+$cr+o2_error+$cr+o2_prep(src) : stop
    file_save ("t.txt",o2_error+o2_prep(src)) : stop
    o2_asmo src : o2_exec : msgbox 0,"0x"+hex$(vv)

    [/code]

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    47
    Posts
    7,556
    Blog Entries
    2
    Rep Power
    10

    Re: Oxygen module

    wow, great

    Now I've got how you update.

    Thanks a lot.
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,408
    Rep Power
    650

    Re: Oxygen module

    Hi Charles,

    that looks very good, nice to see the interface is the same as for "classic" oxygen assembly.
    Does the o2h on the beginning tell module it contains o2h code?


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

  5. #5

    Re: Oxygen module

    Yes Petr, it adds Basic to the Oxygen namespace. We could make it automatic but this risks breaking code written in pure Assembler which may already use some of the keywords. But I have not come to a firm decision yet.

Similar Threads

  1. Oxygen module source code on thinSVN server
    By ErosOlmi in forum thinSVN
    Replies: 8
    Last Post: 20-04-2009, 07:05

Bookmarks

Posting Permissions

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