Web Design and Web Development Forum

  1. #1
    oslover's Avatar
    Join Date
    Sep 2008
    Posts
    32
    Rep Power
    0
  2. oslover is on a distinguished road
  3. Post Small Fasm OS help

    I used to love C, but It seems every were I went I found Fasm boot loaders and kernels
    So I'm starting a Fasm boot loader, :wacko: Can anyone help me?

    heres what I have so far.

    Code:
    org 0x7C00
    use16
    
    start:
            xor   ax,ax
            mov   ds,ax
            mov   es,ax
            mov   ss,ax
            mov   sp,0x7C00
    
    re_loop:
    CLS
    mes    'P mode not enabled, ',10,5
           'Basic boot loader this is all it does, ',10,5
    jmp re_loop
    
    times 510- ($-start)  db 0
    dw 0xaa55
    Reply With Quote Reply With Quote
  4. #2
    Vista06's Avatar
    Join Date
    Aug 2006
    Location
    In a van, down by the river
    Posts
    1,830
    Rep Power
    7
  5. Vista06 is on a distinguished road
  6. Re: Small Fasm OS help

    What do you specifically need help with?

    Vista
    Cool new programming forum : SIGCONT
    Reply With Quote Reply With Quote
  7. #3
    oslover's Avatar
    Join Date
    Sep 2008
    Posts
    32
    Rep Power
    0
  8. oslover is on a distinguished road
  9. Re: Small Fasm OS help

    when I go to compile it, It says error illegal instruction! instruction = CLS
    Reply With Quote Reply With Quote
  10. #4
    Vista06's Avatar
    Join Date
    Aug 2006
    Location
    In a van, down by the river
    Posts
    1,830
    Rep Power
    7
  11. Vista06 is on a distinguished road
  12. Re: Small Fasm OS help

    What does "CLS" do in FASM?

    (Keep in mind that I haven't used FASM for several years, and I am trying to remember some stuff. :p)

    Vista
    Cool new programming forum : SIGCONT
    Reply With Quote Reply With Quote
  13. #5
    oslover's Avatar
    Join Date
    Sep 2008
    Posts
    32
    Rep Power
    0
  14. oslover is on a distinguished road
  15. Re: Small Fasm OS help

    CLS clears the screen in Fasm, or is supposed to anyway.
    Reply With Quote Reply With Quote
  16. #6
    Vista06's Avatar
    Join Date
    Aug 2006
    Location
    In a van, down by the river
    Posts
    1,830
    Rep Power
    7
  17. Vista06 is on a distinguished road
  18. Re: Small Fasm OS help

    Will it work w/o that instruction?

    Vista
    Cool new programming forum : SIGCONT
    Reply With Quote Reply With Quote
  19. #7
    oslover's Avatar
    Join Date
    Sep 2008
    Posts
    32
    Rep Power
    0
  20. oslover is on a distinguished road
  21. Re: Small Fasm OS help

    Well, It could, but I would get a forever scrolling mess of that text, simply I wanted it to jump back and then clear show the text jump back clear show text. ect. ect.
    Reply With Quote Reply With Quote

Similar Threads

  1. Replies: 7
    Last Post: 06-10-2008, 01:12 PM
  2. A Small Wireless Display
    By haydenbech in forum Computer Corner
    Replies: 9
    Last Post: 12-13-2007, 09:47 PM
  3. A small change to YoungMatrix
    By callumjones in forum News and Discussion
    Replies: 7
    Last Post: 08-26-2007, 04:58 AM
  4. Problem with two small PHP scripts?
    By Crazy in forum PHP Scripting
    Replies: 4
    Last Post: 01-08-2007, 08:59 PM
  5. 10 Small Time Pass Games
    By cancer10 in forum Computer Corner
    Replies: 5
    Last Post: 08-03-2005, 09:14 PM