Написал первую программу, но она не работает.В чём проблема?

Everything you can't fit into other forums
  • You forgot the very important keyword at the beginning of the program: "use32".
    It tells FASM to compile to 32 bit code.

    <format binary> has no use in this case, I normally use <format binary as ""> because it tells FASM to compile to the filename without extension. (without ".bin")

    Also, "wait" is a reserved keyword, so you'll have to choose another name for your label :)

    Welcome, and good luck!
    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
  • Спасибо за ответ, заработало. Право, я думал, что fasm по умолчани. генерирует 32-битный код
  • I assume you already have found the FASM manual by now.
    Here is a link to the relevant section anyway: http://flatassembler.net/docs.php?article=manual#1.1.4
    "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein
  • На одном общеизвестном форуме, есть относительно свежий перевод рукаводства по FASM на русский язык.
    Только там глава 1.4.1, на которую указал hidnplayr, является главой 1.7.1.

    1. Мануал по flat assembler (<-1.7.1).
    2. Руководство по препроцессору FASM.
    3. Макросы и директивы компилятора FASM.
  • Who is online

    Users browsing this forum: Google [Bot] and 8 guests