+ Reply to Thread
Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 63
Like Tree16Likes

Thread: CyclonePC and OS

  1. #11
    Wirererer Pangamini's Avatar
    Join Date
    Feb 2009
    Location
    Slovakia
    Posts
    358

    Default Re: CyclonePC and OS

    Well good luck with this... i just dont understand why you emulate CPU on E2, why not use CPU instead?

    And BP, i was thinking about making some simple OS that would be able to load CPU programs from external sources like chips or CDs, but i never found a solution for one thing - when assembler is translated into opcodes, all variable pointers are translated into exact memory location right? Then if i store program somewhere else or i load 2 programs at once, how can i execute it? Hm am not sure if i explained clearly what i mean...

  2. #12
    Lifetime Supporter Nikita's Avatar
    Join Date
    May 2009
    Posts
    769

    Default Re: CyclonePC and OS

    Because my CPU is not zCPU. It has a different architecture.

    I believe zCPU has a register for movable code. It should act as an offset to every read/write operation. Let me lookup the documentation...
    I think that's the one, look for it in documentation:
    Code:
    RM value: 42..49  | General register #1..#8 + direct value |example: MOV 123:EAX
    Also, a macro for something similar:
    Code:
    OFFSET <delta_offset>;
    Last edited by Nikita; 09-04-2009 at 03:10 AM.

  3. #13
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: CyclonePC and OS

    Quote Originally Posted by Pangamini View Post
    Well good luck with this... i just dont understand why you emulate CPU on E2, why not use CPU instead?

    And BP, i was thinking about making some simple OS that would be able to load CPU programs from external sources like chips or CDs, but i never found a solution for one thing - when assembler is translated into opcodes, all variable pointers are translated into exact memory location right? Then if i store program somewhere else or i load 2 programs at once, how can i execute it? Hm am not sure if i explained clearly what i mean...
    You have segment registers. Real address = segment register + offset. So if you want to put your code at offset 12345, you set CS (code segment) to 12345, and it will use old memory pointers (it uses "5" that was specified in original program, but real address in memory is 12350).

    DS is used when you read/write to variable without specifying register, CS is used when reading opcodes (you can only change it with jmpf/callf opcodes)
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  4. #14
    Wire Sofaking Vbitz's Avatar
    Join Date
    Feb 2009
    Location
    NZ
    Posts
    685

    Default Re: CyclonePC and OS

    Well this looks like another wireos sort of thing but as i see it is e2, well done another e2 os. well the idea of making your own overly complex pcmod with custom everything is a good idea and i must say if you keep it e2 and make wire in e2 or evern better virtul wire.
    Questions, Comments and Concerns about any of
    my posts can be directed to my website which is at
    http://vbitz.wordpress.com on the comments post

    Quote Originally Posted by Bull View Post
    As example Jat Goodwin is "the official bastard of wiremod", but that isn't true.. He's very cute and huggable like a little puppy.

  5. #15
    Lifetime Supporter Nikita's Avatar
    Join Date
    May 2009
    Posts
    769

    Default Re: CyclonePC and OS

    Except that most other E2 OS is simply a graphical menu system with a few hardcoded options. This one, like WireOS, is pretty much a real one, since it supports writing your own code from inside the OS, and running C programs, etc etc.
    Last edited by Nikita; 09-05-2009 at 11:13 AM.

  6. #16
    Wire Sofaking Vbitz's Avatar
    Join Date
    Feb 2009
    Location
    NZ
    Posts
    685

    Default Re: CyclonePC and OS

    well wire os does use a monoliptic( all drivers run in kernal mode )kernal and yes it is a ture os running on a embeaded platform and so therefore could possabliy run on a real computer insted of a wiremod coumputer
    Questions, Comments and Concerns about any of
    my posts can be directed to my website which is at
    http://vbitz.wordpress.com on the comments post

    Quote Originally Posted by Bull View Post
    As example Jat Goodwin is "the official bastard of wiremod", but that isn't true.. He's very cute and huggable like a little puppy.

  7. #17
    Lifetime Supporter Nikita's Avatar
    Join Date
    May 2009
    Posts
    769

    Default Re: CyclonePC and OS

    Okay, I figured writing the whole thing in assembly would be next to impossible so I need a C compiler first.
    Should I ask someone to rebuild ZC or make my own? Or I could also try to retarget small-C compiler. So Black Phoenix, how did you do it?

  8. #18
    Wire Sofaking Tasuit's Avatar
    Join Date
    Jan 2009
    Location
    Sønderjylland, Denmark
    Posts
    582
    Blog Entries
    9

    Default Re: CyclonePC and OS

    Download the ZC32?..

    Creator of the Unofficial servers

  9. #19
    Wire Sofaking Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    636

    Default Re: CyclonePC and OS

    programming a compiler is no trivial task i think... start with a lexer? xD

    ZC was built on a small C compiler i think.
    ЗАГРУЗКА...................

  10. #20
    Wirererer Pangamini's Avatar
    Join Date
    Feb 2009
    Location
    Slovakia
    Posts
    358

    Default Re: CyclonePC and OS

    Quote Originally Posted by Black Phoenix View Post
    You have segment registers. Real address = segment register + offset. So if you want to put your code at offset 12345, you set CS (code segment) to 12345, and it will use old memory pointers (it uses "5" that was specified in original program, but real address in memory is 12350).

    DS is used when you read/write to variable without specifying register, CS is used when reading opcodes (you can only change it with jmpf/callf opcodes)
    there are more of such registers? what are their names?

+ Reply to Thread
Page 2 of 7 FirstFirst 1234 ... LastLast

Tags for this Thread

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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots