Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 56

Thread: Oxygen Module for Structured Machine Code Programming

  1. #11
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Oxygen Module for Structured Machine Code Programming

    Roberto,

    nice idea! Don't know if not too much time consuming for Charles to develop, but mov, add ... would make code even more clear to understand.
    But the current state is already terrific.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  2. #12

    Re: Oxygen Module for Structured Machine Code Programming

    Yes I am seriously thinking about it Roberto. Most of it is straightforward, but there are some ambiguities which require interpretation. The 1:1 correspondance with machine code is not perfect. There are also a large number of instructions and their permutations so I will try to automate the coding, by interpreting the data directly from the manuals to avoid human error.

    But even an incomplete implementation, could be made easier to use than the static inline assemblers in PB and FB.


  3. #13

    Re: Oxygen Module for Structured Machine Code Programming

    Great!

    Charles please let me know if you needs support.

    Roberto
    http://www.thinbasic.com

  4. #14

    Re: Oxygen Module for Structured Machine Code Programming

    Quote Originally Posted by Charles Pegge
    Yes I am seriously thinking about it Roberto. Most of it is straightforward, but there are some ambiguities which require interpretation. The 1:1 correspondance with machine code is not perfect. There are also a large number of instructions and their permutations so I will try to automate the coding, by interpreting the data directly from the manuals to avoid human error.

    But even an incomplete implementation, could be made easier to use than the static inline assemblers in PB and FB.

    Yes, that would be awesome.

  5. #15
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: Oxygen Module for Structured Machine Code Programming

    Always learning something new here,

    I thought assembler = opcodes represented by name rather than hexvalue.
    So now I see how highlevel assembler is comparing to machine code


    Thanks,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

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

    Re: Oxygen Module for Structured Machine Code Programming

    Charles,

    do you think you need a FreeBasic SDK function that, giving a variable name, will return:
    • the variable maintype (number, string, udt, variant, ...)
    • the variable subtype (long, double, single, dynamic string, fixed string, ....)
    • if variable is an array and how many elements
    • the variable data pointer
    • ...


    Maybe you can interface script variable with Oxygen script on the fly like I did in MC string eval.

    Let me know.

    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

  7. #17

    Re: Oxygen Module for Structured Machine Code Programming

    Yes I think that is a good direction to go in. There's some extra work involved for the more specialised types like EXT and CURRENCY which are not native to FB but as these are passed by pointer they can be handled easily at low level.

    It will be nice to link variables and their attributes directly into Oxygen scripts. I am also looking at the logistics of adding Assembler directly to Oxygen.

  8. #18

    Re: Oxygen Module for Structured Machine Code Programming

    I'm thinking how activate the syntax highlight for machine code into ThinAIR.
    While if Charles will add the assembler interpreter feature this can be done using the marker blocking ASM ... END or ASM ASM (...) or the character "!" on each line as is the case with PB, how we can do it now with machine code?
    What are yours suggestions?

    Thanks,
    Roberto
    http://www.thinbasic.com

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

    Re: Oxygen Module for Structured Machine Code Programming

    Roberto,

    thanks a lot for your time on this. ThinBasic support multi-line strings as you have seen in the many examples.
    So opening double quote is in one line, then closing double quote can be many lines after.
    If thinAir can manage this syntax, it could be very nice.
    This feature is already there so maybe you can concentrate on this for the moment and see what comes out from machine code handling later.

    Just my idea.
    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. #20

    Re: Oxygen Module for Structured Machine Code Programming

    You are welcome.

    Sorry but even if I can manage multi line I'm not able to recognize standard multi line from multi line that holds machine code.
    Better should be an inline marker but with some additional work also START ... END marker block should be work.

    Roberto
    http://www.thinbasic.com

Page 2 of 6 FirstFirst 1234 ... LastLast

Similar Threads

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

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
  •