Results 1 to 17 of 17

Thread: Native Code ???

  1. #1

    Thread Starter
    Hyperactive Member demon.KILER's Avatar
    Join Date
    Jul 2006
    Location
    I cannot remember !?
    Posts
    408

    Question Native Code ???

    So If I make a application in ASM - Can I Run it With out a OS ??
    Which assembler should I use for that ??
    Tried so many
    many just doesn't work
    VS 2005 .....Framework SDK 3.0

    "Its mostly the brave one who choose to not fight"

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Native Code ???

    You won't be able to run anything without an Operating System. If you mean you wish to allow the program to run on all sorts of operating systems then you need to look at using a Cross Assembler.
    Last edited by Paul M; Sep 14th, 2007 at 09:30 PM.

  3. #3
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Native Code ???

    Quote Originally Posted by Hell-Lord
    You won't be able to run anything without an Operating System.
    Not true at all How do you think the PC knows where to load stuff from? Magic? Boot sectors and such are written in ASM

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  4. #4
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Native Code ???

    I know what you mean but the boot sectors are used to load up the operating system majority of the time. I was referring to a basic application. If i write a calculator in ASM i would need a Operating System to run it is what i am saying. To start something up without an operating system would take a lot of knowledge
    Last edited by Paul M; Sep 15th, 2007 at 01:45 AM.

  5. #5
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Native Code ???

    Not really.. its fairly easy to have a prompt without an OS being loaded. The problem would be writing your own text-to-numberic converters.. etc. I'm sure theres libraries available for that though.

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  6. #6
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Native Code ???

    Hmmm as far as i have gone with ASM is making some basic win32 applications. But it sounds interesting, i might attempt something like that next year got no time to try it now, thanks though

  7. #7
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Native Code ???

    Quote Originally Posted by Hell-Lord
    Hmmm as far as i have gone with ASM is making some basic win32 applications. But it sounds interesting, i might attempt something like that next year got no time to try it now, thanks though
    Haha.. you're brave. I had a good go of it about 7 months ago.. that computer is now gone I corrupted something really badly.. you probably should research the low-low-low level stuff more thoroughly than I did..

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  8. #8
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Native Code ???

    Did you happen to keep any of your notes (if you took any) or were you just randomly experimenting?

  9. #9

    Thread Starter
    Hyperactive Member demon.KILER's Avatar
    Join Date
    Jul 2006
    Location
    I cannot remember !?
    Posts
    408

    Re: Native Code ???

    Originally Posted by Hell-Lord
    You won't be able to run anything without an Operating System.
    LOL how do u think OS runs

    Yeah can U pass it to me too - If U have it
    my email - [email protected]

    I can experiment all I want in My laptop - It's hard drive is crashed - I don't feel like getting a new HD for it
    Can any one give me a Search term that I can Use
    THx

    Edit - I got Intrested in Machine Language Now - Hooray for Machine Language
    ANy one know Machine Language here ?
    EDIT --- K never mind I will just stick with ASM for now :P
    Last edited by demon.KILER; Sep 15th, 2007 at 03:22 PM.
    VS 2005 .....Framework SDK 3.0

    "Its mostly the brave one who choose to not fight"

  10. #10
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Native Code ???

    Unfortunately no.. I didn't keep any of it.. I never wanted to touch that sort of stuff again

    I'd much rather write a shell for windows now, from the ground up

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  11. #11
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Native Code ???

    if you have programmed in assembly you know that everything you do is pushing and pulling data onto registers and calling interrupts. The interrupts are set up by the OS or running programs for the most part. There are some exceptions. The boot program on a boot sector is one.
    Writing a replacement shell (replacing command.com) isn't that difficult. Replacing the command processor (io.sys, msdos.sys for example) is a little bit rougher.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  12. #12

    Thread Starter
    Hyperactive Member demon.KILER's Avatar
    Join Date
    Jul 2006
    Location
    I cannot remember !?
    Posts
    408

    Re: Native Code ???

    the interrupts are set up by the OS
    oh I never know that

    but how the hell Other simple program run with out OS - like my crappy anti virus ??

    I will research on how the OS it self is running
    If anybody has a good reference - feel free to post them
    VS 2005 .....Framework SDK 3.0

    "Its mostly the brave one who choose to not fight"

  13. #13
    New Member
    Join Date
    Sep 2007
    Posts
    7

    Re: Native Code ???

    yes no OS needed. BIOS is written in ASM.

  14. #14
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Native Code ???

    bios is direct machine code. and like i said "some" interrupts are software such as mouse support (in dos) which is 33 if i remember correctly.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  15. #15
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Native Code ???

    That intrigues me.. what would interrupt 13 (text) be? Software? I never really looked into it..

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

  16. #16
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Native Code ???

    no it's actually a hardware interrupt that is installed by the video card bios.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  17. #17
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Re: Native Code ???

    Interesting.. cheers for clearing that up for me (I sat at work all day thinking of the different ways interrupt 13 could've been implemented).

    chem

    Visual Studio 6, Visual Studio.NET 2005, MASM

Posting Permissions

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



Click Here to Expand Forum to Full Width