<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>FASM</title>
    <description>FASM</description>
    <pubDate>Thu, 11 Jun 2026 00:10:55 +0000</pubDate>
    <lastBuildDate>Thu, 11 Jun 2026 00:10:55 +0000</lastBuildDate>
    <generator>WASM</generator>
    <link>https://wasm.in/forums/fasm.36/</link>
    <atom:link rel="self" type="application/rss+xml" href="https://wasm.in/forums/fasm.36/index.rss"/>
    <item>
      <title>Раздел реестра SAM - сбор информации</title>
      <pubDate>Sun, 24 May 2026 15:56:04 +0000</pubDate>
      <link>https://wasm.in/threads/razdel-reestra-sam-sbor-informacii.36740/</link>
      <guid>https://wasm.in/threads/razdel-reestra-sam-sbor-informacii.36740/</guid>
      <author>invalid@example.com (Marylin)</author>
      <dc:creator>Marylin</dc:creator>
      <content:encoded><![CDATA[Всем привет!<br />
В общем мне нужно программно собрать сведения из куста SAM о всех учётных записях. Доступ ко вложенным ключам под админом я получил, но проблема в том, что ни одно из найденных в сети описаний структур <code style="background: Silver; border: 1px solid #AAAAAA; padding: 0px 2px 0px 2px; display: inline-block">F</code> и <code style="background: Silver; border: 1px solid #AAAAAA; padding: 0px 2px 0px 2px; display: inline-block">V</code> не совпадает с моим дампом - видимо это устаревшие прототипы для WinXP. Ключ &quot;BootKey&quot; для расшифровки хэшей NTLM я тоже собрал из ветки System\Lsa, и он совпадает с выхлопом mimikatz и прочих утилит. Мне нужны сведения как на этом скрине....<br />
<br />
<a href="https://wasm.in/threads/razdel-reestra-sam-sbor-informacii.36740/" class="internalLink">Раздел реестра SAM - сбор информации</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Fresh IDE - IDE для ассемблера FASM</title>
      <pubDate>Fri, 15 May 2026 12:52:53 +0000</pubDate>
      <link>https://wasm.in/threads/fresh-ide-ide-dlja-assemblera-fasm.36738/</link>
      <guid>https://wasm.in/threads/fresh-ide-ide-dlja-assemblera-fasm.36738/</guid>
      <author>invalid@example.com (GRAFik)</author>
      <dc:creator>GRAFik</dc:creator>
      <content:encoded><![CDATA[<b>Fresh IDE - IDE для ассемблера FASM.</b><br />
<br />
<a href="https://fresh.flatassembler.net/index.cgi?page=content/2_download.txt" target="_blank" class="externalLink" rel="nofollow">https://fresh.flatassembler.net/index.cgi?page=content/2_download.txt</a><br />
<br />
<a href="https://ru.wikipedia.org/wiki/Fresh_(IDE)" target="_blank" class="externalLink" rel="nofollow">https://ru.wikipedia.org/wiki/Fresh_(IDE)</a><br />
<br />
<a href="https://chiselapp.com/user/johnfound/repository/FreshIDE/index" target="_blank" class="externalLink" rel="nofollow">https://chiselapp.com/user/johnfound/repository/FreshIDE/index</a><br />
<br />
<a href="https://github.com/sinelaw/fresh" target="_blank" class="externalLink" rel="nofollow">https://github.com/sinelaw/fresh</a><br />
<br />
Небольшая предыстория:<br />
<br />
  1.Томаш Грыштар сделал «сердце» — быстрый и мощный компилятор FASM.<br />
<br />
  2.Джон Фонтейн влюбился в FASM и решил написать для него идеальную визуальную среду разработки...<br />
<br />
<a href="https://wasm.in/threads/fresh-ide-ide-dlja-assemblera-fasm.36738/" class="internalLink">Fresh IDE - IDE для ассемблера FASM</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Fasm вайбкодинг</title>
      <pubDate>Sat, 04 Apr 2026 05:59:23 +0000</pubDate>
      <link>https://wasm.in/threads/fasm-vajbkoding.36726/</link>
      <guid>https://wasm.in/threads/fasm-vajbkoding.36726/</guid>
      <author>invalid@example.com (f13nd)</author>
      <dc:creator>f13nd</dc:creator>
      <content:encoded><![CDATA[<b><span style="font-size: 18px">## Потому что гладиолус.</span></b><br />
Я не знаю ни одной модели, которая бы хорошо писала на FASM. Они рожают жутких гомункулов на смеси французского с рязанским (масм, насм, возможно еще что-то). Исходников на фасме в интернете вообще мало, они имеют расширение .asm, а внутри обычно не написано, что это фасм. Поэтому выхлопы получаются &quot;на каком-нибудь ассемблере&quot;. Нужны костыли, вот они:<br />
- Скрипт-ревьювер, которого суб-агент после изменений в исходнике сам применит на файл и из...<br />
<br />
<a href="https://wasm.in/threads/fasm-vajbkoding.36726/" class="internalLink">Fasm вайбкодинг</a>]]></content:encoded>
      <slash:comments>23</slash:comments>
    </item>
    <item>
      <title>Время в заголовке РЕ файла</title>
      <pubDate>Wed, 24 Apr 2024 19:42:04 +0000</pubDate>
      <link>https://wasm.in/threads/vremja-v-zagolovke-re-fajla.35077/</link>
      <guid>https://wasm.in/threads/vremja-v-zagolovke-re-fajla.35077/</guid>
      <author>invalid@example.com (Marylin)</author>
      <dc:creator>Marylin</dc:creator>
      <content:encoded><![CDATA[Всем привет!<br />
Как правильно преобразовать 32-битное поле &quot;TimeDataStamp&quot; в строку?<br />
Известно, что это кол-во секунд начиная с 01.01.1970 (время unix), а штатных функций Win32 что-то не найду. Пробовал пару <code style="background: Silver; border: 1px solid #AAAAAA; padding: 0px 2px 0px 2px; display: inline-block">DosDateTimeToFileTime()</code> + <code style="background: Silver; border: 1px solid #AAAAAA; padding: 0px 2px 0px 2px; display: inline-block">FileTimeToSystemTime()</code>, но она ожидаемо возвращает неверный результат, т.к. предназначена для упакованных <a href="https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-dosdatetimetofiletime" target="_blank" class="externalLink" rel="nofollow">по 16-бит...</a><br />
<br />
<a href="https://wasm.in/threads/vremja-v-zagolovke-re-fajla.35077/" class="internalLink">Время в заголовке РЕ файла</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Инструкция CPUID</title>
      <pubDate>Fri, 28 Apr 2023 06:20:38 +0000</pubDate>
      <link>https://wasm.in/threads/instrukcija-cpuid.34776/</link>
      <guid>https://wasm.in/threads/instrukcija-cpuid.34776/</guid>
      <author>invalid@example.com (Entropy)</author>
      <dc:creator>Entropy</dc:creator>
      <content:encoded><![CDATA[Из документации AMD64 Architecture Programmer’s Manual Volume 3:General-Purpose and System Instructions<br />



<div class="bbCodeBlock bbCodeQuote">
	<aside>
		
		<blockquote class="quoteContainer"><div class="quote">To avoid an invalid-opcode exception (#UD) on those processor implementations that do not support<br />
the CPUID instruction, software must first test to determine if the CPUID instruction is supported.<br />
Support for the CPUID instruction is indicated by the ability to write the ID bit in the rFLAGS register.<br />
Normally, 32-bit software uses the PUSHFD and POPFD instructions in an attempt...</div><div class="quoteExpand">Нажмите, чтобы раскрыть...</div></blockquote>
	</aside>
</div><a href="https://wasm.in/threads/instrukcija-cpuid.34776/" class="internalLink">Инструкция CPUID</a>]]></content:encoded>
      <slash:comments>11</slash:comments>
    </item>
    <item>
      <title>Информация о доступных Wi-Fi сетях</title>
      <pubDate>Sun, 19 Feb 2023 12:09:40 +0000</pubDate>
      <link>https://wasm.in/threads/informacija-o-dostupnyx-wi-fi-setjax.34738/</link>
      <guid>https://wasm.in/threads/informacija-o-dostupnyx-wi-fi-setjax.34738/</guid>
      <author>invalid@example.com (Marylin)</author>
      <dc:creator>Marylin</dc:creator>
      <content:encoded><![CDATA[Всем привет! Пишу на ассемблере fasm.<br />
Функцией <b>WlanGetNetworkBssList()</b> получаю информацию о доступных Wi-Fi сетях в своей зоне.<br />
Она возвращает данные в структуру &quot;WLAN_BSS_ENTRY&quot;, поля которой вывожу на консоль.<br />
<br />



<div class="ToggleTriggerAnchor bbCodeSpoilerContainer">
	<button type="button" class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly"
		title="Нажмите, чтобы раскрыть или скрыть спойлер"
		data-target="> .SpoilerTarget"><span>Спойлер: <span class="SpoilerTitle">Исходник</span></span></button>
	<div class="SpoilerTarget bbCodeSpoilerText">

<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (ASM):</div>
	<div class="code"><ol class="asm" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">format &nbsp; pe console</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">entry &nbsp; &nbsp;<span style="color: #0000ff; font-weight: bold;">start</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">include <span style="color: #7f007f;">'win32ax.inc'</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">include <span style="color: #7f007f;">'equates\wlanapi.inc'</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">;//----------</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff; font-weight: bold;">.data</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">negVer &nbsp; &nbsp; &nbsp;<span style="color: #0000ff; font-weight: bold;">dd</span> &nbsp;<span style="color: #ff0000;">0</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">wlanHndl &nbsp; &nbsp;<span style="color: #0000ff; font-weight: bold;">dd</span> &nbsp;<span style="color: #ff0000;">0</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">bssAddr &nbsp; &nbsp; <span style="color: #0000ff; font-weight: bold;">dd</span> &nbsp;<span style="color: #ff0000;">0</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">nextBss &nbsp; &nbsp; <span style="color: #0000ff; font-weight: bold;">dd</span> &nbsp;<span style="color: #ff0000;">0</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">itemCount &nbsp; <span style="color: #0000ff; font-weight: bold;">dd</span> &nbsp;<span style="color: #ff0000;">0</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">divide &nbsp; &nbsp; &nbsp;<span style="color: #0000ff; font-weight: bold;">dd</span> &nbsp;<span style="color: #ff0000;">1000</span><span style="color: #339933;">*</span><span style="color: #ff0000;">1000</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">gHz &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff; font-weight: bold;">dq</span> &nbsp;<span style="color: #ff0000;">0</span><span style="color: #339933;">...</span></div></li>
</ol></div>
</div></div>
</div><br />
<a href="https://wasm.in/threads/informacija-o-dostupnyx-wi-fi-setjax.34738/" class="internalLink">Информация о доступных Wi-Fi сетях</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Создание потока в чужом процессе (x86) управляя x64 программой, через NtCreateThread windows 10</title>
      <pubDate>Sun, 02 May 2021 23:50:18 +0000</pubDate>
      <link>https://wasm.in/threads/sozdanie-potoka-v-chuzhom-processe-x86-upravljaja-x64-programmoj-cherez-ntcreatethread-windows-10.34237/</link>
      <guid>https://wasm.in/threads/sozdanie-potoka-v-chuzhom-processe-x86-upravljaja-x64-programmoj-cherez-ntcreatethread-windows-10.34237/</guid>
      <author>invalid@example.com (NANO_VIRUS)</author>
      <dc:creator>NANO_VIRUS</dc:creator>
      <content:encoded><![CDATA[Привет.<br />
Я хочу создать поток используя функцию <b>NtCreateThread</b>, при этом на user стороне через системный вызов.<br />
<b>NtCreateThreadEx</b> работает отлично, но мне нужен контроль над созданием стека и возможность создавать потоки на старых версиях windows.<br />
Вообщем проблема такая.<br />
Я выделил память под стек, правильно (как мне кажется) заполнил структуры CONTEXT(x64) и INITIAL_TEB.<br />
По итогу отладки создался поток, регистр eip правильно прыгнул на нужный адрес, а вот регистр rsp заполнялся...<br />
<br />
<a href="https://wasm.in/threads/sozdanie-potoka-v-chuzhom-processe-x86-upravljaja-x64-programmoj-cherez-ntcreatethread-windows-10.34237/" class="internalLink">Создание потока в чужом процессе (x86) управляя x64 программой, через NtCreateThread windows 10</a>]]></content:encoded>
      <slash:comments>11</slash:comments>
    </item>
    <item>
      <title>fasm usecom</title>
      <pubDate>Tue, 02 Feb 2021 19:39:03 +0000</pubDate>
      <link>https://wasm.in/threads/fasm-usecom.34112/</link>
      <guid>https://wasm.in/threads/fasm-usecom.34112/</guid>
      <author>invalid@example.com (Andre)</author>
      <dc:creator>Andre</dc:creator>
      <content:encoded><![CDATA[dialogitem &#039;BUTTON&#039;,&#039;Show&#039;,ID_SHOW,4,4,45,15,WS_VISIBLE+WS_TABSTOP<br />
    dialogitem &#039;BUTTON&#039;,&#039;Hide&#039;,ID_HIDE,54,4,45,15,WS_VISIBLE+WS_TABSTOP<br />
    dialogitem &#039;BUTTON&#039;,&#039;Exit&#039;,ID_EXIT,120,4,45,15,WS_VISIBLE+WS_TABSTOP <br />
<br />
<br />
пример что прилагается к fasm usecom где можно почитать чтобы создать buttons где можно найти  инфу всем мерси]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>fasm g</title>
      <pubDate>Fri, 04 Sep 2020 03:15:44 +0000</pubDate>
      <link>https://wasm.in/threads/fasm-g.33007/</link>
      <guid>https://wasm.in/threads/fasm-g.33007/</guid>
      <author>invalid@example.com (f13nd)</author>
      <dc:creator>f13nd</dc:creator>
      <content:encoded><![CDATA[Решил тут на днях поплотней взяться за новый фасм и определиться &#039;г&#039; - &#039;гармония&#039; или нечто иное? Соорудил ассемблер для Renesas SH-2A под новый фасм. Все получилось и даже работает.<br />
Фасм теперь позиционируется как &#039;assembler engine&#039; - движок, а не ассемблер. То есть синтаксис в теории может переварить любой, нужно его только научить этому.<br />
Что например с точкой? Точка - большое благо и большая беда фасма, как быть с директивами <b>&#039;.section&#039;</b>,<b> &#039;.end&#039;</b>, <b>&#039;.long&#039;</b> и прочими?...<br />
<br />
<a href="https://wasm.in/threads/fasm-g.33007/" class="internalLink">fasm g</a>]]></content:encoded>
      <slash:comments>10</slash:comments>
    </item>
    <item>
      <title>Содержимое диска из книги "Программирование на ассемблере на платформе x86-64"</title>
      <pubDate>Wed, 17 Jun 2020 10:53:16 +0000</pubDate>
      <link>https://wasm.in/threads/soderzhimoe-diska-iz-knigi-programmirovanie-na-assemblere-na-platforme-x86-64.33800/</link>
      <guid>https://wasm.in/threads/soderzhimoe-diska-iz-knigi-programmirovanie-na-assemblere-na-platforme-x86-64.33800/</guid>
      <author>invalid@example.com (Demon13)</author>
      <dc:creator>Demon13</dc:creator>
      <content:encoded><![CDATA[Здравствуйте, если у кого есть материалы с диска из книги Аблязова &quot;Программирование на ассемблере на платформе x86-64&quot; очень прошу скинуть.]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>переделанный на FASM x64 пример, из книги Петзольда</title>
      <pubDate>Thu, 30 Apr 2020 16:28:19 +0000</pubDate>
      <link>https://wasm.in/threads/peredelannyj-na-fasm-x64-primer-iz-knigi-petzolda.33720/</link>
      <guid>https://wasm.in/threads/peredelannyj-na-fasm-x64-primer-iz-knigi-petzolda.33720/</guid>
      <author>invalid@example.com (GRAFik)</author>
      <dc:creator>GRAFik</dc:creator>
      <content:encoded><![CDATA[Это переделанный на FASM x64 пример, из известной книги Петзольда.<br />
<br />
Не так давно, скачал на WASM - FASM исходники и x64 exe-файл. Но где-то там закрался подлый баг.<br />
При заходе в  File  --&gt; New Rectangles  выдает  ошибку. Это можно/сложно как-то поправить?<br />
<br />
Саму ветку с примером не нашел, поэтому вот дубль:]]></content:encoded>
    </item>
    <item>
      <title>Препроцессор. Нумерация глобальных числовых констант</title>
      <pubDate>Sat, 07 Dec 2019 10:48:50 +0000</pubDate>
      <link>https://wasm.in/threads/preprocessor-numeracija-globalnyx-chislovyx-konstant.33513/</link>
      <guid>https://wasm.in/threads/preprocessor-numeracija-globalnyx-chislovyx-konstant.33513/</guid>
      <author>invalid@example.com (NANO_VIRUS)</author>
      <dc:creator>NANO_VIRUS</dc:creator>
      <content:encoded><![CDATA[Здравствуйте. Что я хочу сделать, как я до этого дошел и можно ли сделать по другому)<br />
<br />
Нужно создать числовые константы в виде:<br />
iestmetka_1 = 0<br />
iestmetka_2 = 0<br />
iestmetka_3 = 0<br />
...<br />
и т д<br />
<br />
Их количество может быть разным. Создание и нумерация предполагается в макросе, там же и задается значение. <br />
<br />
Теперь одна из вещей, для чего это мне.<br />
Например я хочу модифицировать безымянную метку &quot;@@:&quot;<br />
а именно прыжки &quot;@r/@f&quot;, чтобы можно было перепрыгивать безымянные метки на следующие (пример: @r,1;...<br />
<br />
<a href="https://wasm.in/threads/preprocessor-numeracija-globalnyx-chislovyx-konstant.33513/" class="internalLink">Препроцессор. Нумерация глобальных числовых констант</a>]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Подсветка синтаксиса fasm в Notepad++</title>
      <pubDate>Tue, 03 Dec 2019 17:47:21 +0000</pubDate>
      <link>https://wasm.in/threads/podsvetka-sintaksisa-fasm-v-notepad.33401/</link>
      <guid>https://wasm.in/threads/podsvetka-sintaksisa-fasm-v-notepad.33401/</guid>
      <author>invalid@example.com (Shere Khan)</author>
      <dc:creator>Shere Khan</dc:creator>
      <content:encoded><![CDATA[Склепал стиль подсветки синтаксиса fasm для текущей версии Notepad++ (NPP_v7.7.1, UDL2.1).<br />
Стиль определён только для нижнего регистра, но это дело вкуса, и решается установкой одной галочки в настройках синтаксиса.<br />
Определены фолды для макросов и директив условной сборки. Список инструкций x86-64 был вручную извлечен из последней версии Intel Software Developer Manuals.<br />
Среди недостатков: я не смог заставить notepad++ подсвечивать шестнадцатеричные числа с суффиксом &quot;h&quot; с шестнадцатеричными...<br />
<br />
<a href="https://wasm.in/threads/podsvetka-sintaksisa-fasm-v-notepad.33401/" class="internalLink">Подсветка синтаксиса fasm в Notepad++</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Неправильная инструкция x64</title>
      <pubDate>Wed, 03 Apr 2019 19:21:14 +0000</pubDate>
      <link>https://wasm.in/threads/nepravilnaja-instrukcija-x64.33244/</link>
      <guid>https://wasm.in/threads/nepravilnaja-instrukcija-x64.33244/</guid>
      <author>invalid@example.com (NANO_VIRUS)</author>
      <dc:creator>NANO_VIRUS</dc:creator>
      <content:encoded><![CDATA[Приветствую.<br />
<br />
Я для себя случайно открыл интересный момент.<br />
Написал одну инструкцию, скорее всего она не правильная, так как в <span style="color: #000066"><b>add</b></span> вероятно обязан присутствовать регистр. Но сам факт, что это скомпилировалось у меня и даже дебажится, но не выполняется.<br />
Может у меня проблемы. Не проверял на x86. Возможно я что-то просто не знаю..<br />
Освятите пожалуйста.<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (ASM):</div>
	<div class="code"><ol class="asm" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">add</span> <span style="color: #0000ff; font-weight: bold;">qword</span><span style="color: #009900; font-weight: bold;">&#91;</span><span style="color: #46aa03; font-weight: bold;">rax</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">0</span></div></li>
</ol></div>
</div>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Адресные пространства (препроцессор:FASM)</title>
      <pubDate>Wed, 27 Mar 2019 20:16:58 +0000</pubDate>
      <link>https://wasm.in/threads/adresnye-prostranstva-preprocessor-fasm.33233/</link>
      <guid>https://wasm.in/threads/adresnye-prostranstva-preprocessor-fasm.33233/</guid>
      <author>invalid@example.com (NANO_VIRUS)</author>
      <dc:creator>NANO_VIRUS</dc:creator>
      <content:encoded><![CDATA[Приветствую.<br />
<br />
Есть ли возможность писать код по адресу в заданном участке кода?<br />
<br />
Допустим я хочу через макрос <span style="color: #808080">&#039;code&#039;</span> по метке <span style="color: #808080">&#039;front&#039;</span> в конце кода написать <span style="font-family: 'Courier New'"><span style="color: #bfbfbf">{</span><span style="color: #0000ff">db</span> <span style="color: #b300b3">&#039;text&#039;</span><span style="color: #808080">,</span><span style="color: #ff0000">0</span><span style="color: #bfbfbf">}</span></span>. С условием что макрос может быть вызван до указанной метки.<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (ASM):</div>
	<div class="code"><ol class="asm" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">macro <span style="color: #0000ff; font-weight: bold;">code</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900; font-weight: bold;">&#123;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;<span style="color: #666666; font-style: italic;">;...</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900; font-weight: bold;">&#125;</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">; Вызываем тут...</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff; font-weight: bold;">code</span><span style="color: #339933;">...</span></div></li>
</ol></div>
</div><a href="https://wasm.in/threads/adresnye-prostranstva-preprocessor-fasm.33233/" class="internalLink">Адресные пространства (препроцессор:FASM)</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>переход в защищенный режим</title>
      <pubDate>Mon, 18 Mar 2019 00:49:40 +0000</pubDate>
      <link>https://wasm.in/threads/perexod-v-zaschischennyj-rezhim.33214/</link>
      <guid>https://wasm.in/threads/perexod-v-zaschischennyj-rezhim.33214/</guid>
      <author>invalid@example.com (Aleks715)</author>
      <dc:creator>Aleks715</dc:creator>
      <content:encoded><![CDATA[Здравствуйте, подскажите пожалуйста не могу понять как перейти на код в защищенный режим, использую Fasm 1.71, UltraIso, Oracle VM VirtualBox, вот собственно код<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (ASM):</div>
	<div class="code"><ol class="asm" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">format binary</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff; font-weight: bold;">use16</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">org <span style="color: #ff0000;">7c00h</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff; font-weight: bold;">start</span><span style="color: #339933;">:</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">ax</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">3</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">int</span> <span style="color: #ff0000;">10h</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">ax</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">0b800h</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">es</span><span style="color: #339933;">,</span> <span style="color: #46aa03; font-weight: bold;">ax</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">ax</span><span style="color: #339933;">,</span> <span style="color: #46aa03; font-weight: bold;">cs</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">ds</span><span style="color: #339933;">,</span> <span style="color: #46aa03; font-weight: bold;">ax</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">;вывод сообщения из реального режима</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">si</span><span style="color: #339933;">,</span> MessageRM</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">xor</span> <span style="color: #46aa03; font-weight: bold;">di</span><span style="color: #339933;">,</span> <span style="color: #46aa03; font-weight: bold;">di</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">cx</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">15</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">rep</span> <span style="color: #00007f; font-weight: bold;">movsb</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">; адрес и размер GDT таблицы</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">xor</span> <span style="color: #46aa03; font-weight: bold;">eax</span><span style="color: #339933;">,</span> <span style="color: #46aa03; font-weight: bold;">eax</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">ax</span><span style="color: #339933;">,</span> Table_GDT</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">shl</span> <span style="color: #46aa03; font-weight: bold;">eax</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">4</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #0000ff; font-weight: bold;">dword</span><span style="color: #009900; font-weight: bold;">&#91;</span>GDTR <span style="color: #339933;">+</span> <span style="color: #ff0000;">2</span><span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #46aa03; font-weight: bold;">eax</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">lgdt</span> fword ptr GDTR</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: italic;">; Запретить...</span></div></li>
</ol></div>
</div><a href="https://wasm.in/threads/perexod-v-zaschischennyj-rezhim.33214/" class="internalLink">переход в защищенный режим</a>]]></content:encoded>
      <slash:comments>8</slash:comments>
    </item>
    <item>
      <title>Поиск строки</title>
      <pubDate>Wed, 28 Nov 2018 22:06:46 +0000</pubDate>
      <link>https://wasm.in/threads/poisk-stroki.33019/</link>
      <guid>https://wasm.in/threads/poisk-stroki.33019/</guid>
      <author>invalid@example.com (Demon13)</author>
      <dc:creator>Demon13</dc:creator>
      <content:encoded><![CDATA[Здравствуйте! На сайте(<a href="https://forum.sources.ru/index.php?showtopic=148078" target="_blank" class="externalLink" rel="nofollow">https://forum.sources.ru/index.php?showtopic=148078</a>) нашёл код и подкорректировал под свои нужды.

<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (ASM):</div>
	<div class="code"><ol class="asm" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">format PE GUI <span style="color: #ff0000;">4.0</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">entry <span style="color: #0000ff; font-weight: bold;">start</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">include <span style="color: #7f007f;">'C:\FASM\INCLUDE\WIN32AX.INC'</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff; font-weight: bold;">section</span> <span style="color: #7f007f;">&quot;.data&quot;</span> <span style="color: #0000ff; font-weight: bold;">data</span> readable writeable</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">path <span style="color: #0000ff; font-weight: bold;">db</span> <span style="color: #7f007f;">&quot;HELLOWORLD&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">0</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">world <span style="color: #0000ff; font-weight: bold;">db</span> <span style="color: #7f007f;">&quot;WORLD&quot;</span><span style="color: #339933;">,</span><span style="color: #ff0000;">0</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">a1 <span style="color: #0000ff; font-weight: bold;">db</span> ?</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">a2 <span style="color: #0000ff; font-weight: bold;">db</span> ?</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #0000ff; font-weight: bold;">section</span> <span style="color: #7f007f;">&quot;.code&quot;</span> <span style="color: #0000ff; font-weight: bold;">code</span> readable executable</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">proc search<span style="color: #339933;">,</span>_baseadr<span style="color: #339933;">,</span>_stradr<span style="color: #339933;">,</span>_basel<span style="color: #339933;">,</span>_strl</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #00007f; font-weight: bold;">pushad</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #00007f; font-weight: bold;">cld</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">edi</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">&#91;</span>_baseadr<span style="color: #009900; font-weight: bold;">&#93;</span> &nbsp; &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">.</span>NXTSE<span style="color: #339933;">:</span></div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">esi</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">&#91;</span>_stradr<span style="color: #009900; font-weight: bold;">&#93;</span> &nbsp; &nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; <span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">ecx</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">&#91;</span>_basel<span style="color: #009900; font-weight: bold;">&#93;</span><span style="color: #339933;">...</span></div></li>
</ol></div>
</div><a href="https://wasm.in/threads/poisk-stroki.33019/" class="internalLink">Поиск строки</a>]]></content:encoded>
      <slash:comments>5</slash:comments>
    </item>
    <item>
      <title>FASM. Поиск файла по маске.</title>
      <pubDate>Fri, 23 Nov 2018 15:29:54 +0000</pubDate>
      <link>https://wasm.in/threads/fasm-poisk-fajla-po-maske.33015/</link>
      <guid>https://wasm.in/threads/fasm-poisk-fajla-po-maske.33015/</guid>
      <author>invalid@example.com (Demon13)</author>
      <dc:creator>Demon13</dc:creator>
      <content:encoded><![CDATA[Здравствуйте, мне нужно найти файл, используя подобную маску &quot;C:\*\test\text.txt&quot;. Как я могу сделать это средствами fasm или winapi?]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Массив структур</title>
      <pubDate>Wed, 08 Aug 2018 11:36:51 +0000</pubDate>
      <link>https://wasm.in/threads/massiv-struktur.32374/</link>
      <guid>https://wasm.in/threads/massiv-struktur.32374/</guid>
      <author>invalid@example.com (vx1d)</author>
      <dc:creator>vx1d</dc:creator>
      <content:encoded><![CDATA[Допустим есть структура:<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">struc STRUCTURE</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">{</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">.dqVar1 &nbsp; &nbsp; &nbsp; &nbsp;dq &nbsp; &nbsp; &nbsp; ?</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">.dqVar2 &nbsp; &nbsp; &nbsp; &nbsp;dq &nbsp; &nbsp; &nbsp; ?</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">}</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">virtual at 0</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">strcStructure &nbsp;STRUCTURE</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">end virtual</div></li>
<li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
</ol></div>
</div>хочу определить массив этих структур:<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (Text):</div>
	<div class="code"><ol class="text" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">pntrArrayStructures &nbsp; &nbsp; &nbsp; STRUCTURE 5 dup (?)</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
</ol></div>
</div>но этот вариант не работает<br />
<br />
как сделать правильно?<br />
<br />
ЗЫ<br />
был тут гуру по фасму l_inc он точно знает]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>помогите загрузиться с флэшки</title>
      <pubDate>Sat, 10 Mar 2012 17:24:08 +0000</pubDate>
      <link>https://wasm.in/threads/pomogite-zagruzitsja-s-flehshki.31574/</link>
      <guid>https://wasm.in/threads/pomogite-zagruzitsja-s-flehshki.31574/</guid>
      <author>invalid@example.com (gh88)</author>
      <dc:creator>gh88</dc:creator>
      <content:encoded><![CDATA[Здравствуйте, уважаемые участники конференции.<br />
Имеется флэшка, необходимо с нее установить ОС на другой комп. Проблема в том, что никак не получается правильно создать MBR, Boot sector. Пробовал много чего, но не запускается с нее, пишет вставьте системный диск. Для исследования темы поставил эмулятор qemu (чтобы не перезагружаться каждый раз) и программу Winhex (для прямой записи побайтово на флэш).<br />
В ассемблере набрал следующее:<br />
<br />


<div class="bbCodeBlock bbCodeCode">
	<div class="type">Код (ASM):</div>
	<div class="code"><ol class="asm" style="font-family:monospace;"><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">ah</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">0x0e</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">mov</span> <span style="color: #46aa03; font-weight: bold;">al</span><span style="color: #339933;">,</span> <span style="color: #7f007f;">'!'</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #00007f; font-weight: bold;">int</span> <span style="color: #ff0000;">0x10</span></div></li>
</ol></div>
</div>...<br />
<br />
<a href="https://wasm.in/threads/pomogite-zagruzitsja-s-flehshki.31574/" class="internalLink">помогите загрузиться с флэшки</a>]]></content:encoded>
      <slash:comments>14</slash:comments>
    </item>
  </channel>
</rss>
