<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[מה זה עושה?]]></title><description><![CDATA[<pre><code>global main
extern GetStdHandle
extern WriteConsoleA
extern ExitProcess

section .bss
    buffer  resb 8
    written resd 1

section .text
main:
    push    r12
    push    r13
    sub     rsp, 40

    mov     eax, 10000
    lea     rdi, [rel buffer+7]
    mov     byte [rdi], 10
    dec     rdi

.convert_loop:
    xor     edx, edx
    mov     ecx, 10
    div     ecx
    add     edx, '0'
    mov     [rdi], dl
    dec     rdi
    test    eax, eax
    jnz     .convert_loop

    lea     rax, [rel buffer+8]
    sub     rax, rdi
    mov     r13d, eax
    mov     r12, rdi

    mov     ecx, -11
    call    GetStdHandle

    mov     rcx, rax
    mov     rdx, r12
    mov     r8d, r13d
    lea     r9, [rel written]
    mov     qword [rsp+32], 0
    call    WriteConsoleA

    xor     ecx, ecx
    call    ExitProcess
</code></pre>
<p dir="rtl">זה הקוד המלא, מדפיס 10000 למסך.</p>
<p dir="rtl">לא כ"כ הבנתי למה לחסר אחד מRDI אחרי ההעברה של באפר+7 (מבוסס היסט)<br />
וכו' למה זה ככה?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz" aria-label="Profile: yossiz">@<bdi>yossiz</bdi></a></p>
]]></description><link>https://tchumim.com/topic/17643/מה-זה-עושה</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 00:16:35 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/17643.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Sep 2026 20:03:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to מה זה עושה? on Sun, 06 Sep 2026 21:14:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz" aria-label="Profile: yossiz">@<bdi>yossiz</bdi></a> לא! זה בדיוק מה שאני שואל, אני עוד בשורה 19 שם יש גם חיסור ואת זה אנוכי מנסה להבין.</p>
<p dir="rtl">ב. כן, חלק הAI חלק אני, בשלבים ההתחלתיים אני משתמש בו הרבה מקווה בעתיד שלא אצטרך.</p>
]]></description><link>https://tchumim.com/post/172103</link><guid isPermaLink="true">https://tchumim.com/post/172103</guid><dc:creator><![CDATA[שאלתיאל]]></dc:creator><pubDate>Sun, 06 Sep 2026 21:14:53 GMT</pubDate></item><item><title><![CDATA[Reply to מה זה עושה? on Sun, 06 Sep 2026 21:17:00 GMT]]></title><description><![CDATA[<p dir="rtl">ולמה בתוך הלולאה (שורה 27) מחסרים אחד מ-RDI, זה כן הבנת?<br />
בגדול הקוד עובר בסדר הפוך על הבתים של הבאפר וממלא אותם, אחרי שהוא ממלא את הבית האחרון עם התו <code>\n</code> הוא חוזר לבית שלפני זה על ידי ה-dec</p>
<p dir="rtl">אגב, מאיפה הקוד? זה מועתק מאיפשהו? כי ChatGPT טוען שיש באג בקוד... (אני מאמין לו, אבל לא התעמצתי יותר מדי לוודא את זה)</p>
<p dir="rtl">גלוי נאות: אני אדם עצלן ואני משתמש ב-AI כדי לענות לך. אבל אני לא כותב שום דבר שאני לא מבין טוב. אבל תדע לך שגם אתה יכול להתשתמש ב-AI כדי להבין, ואפשר לשגע אותו עד שאתה מבין כל מילה.</p>
]]></description><link>https://tchumim.com/post/172102</link><guid isPermaLink="true">https://tchumim.com/post/172102</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Sun, 06 Sep 2026 21:17:00 GMT</pubDate></item></channel></rss>