<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'assambly matrix program' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'assambly matrix program' posted on the 'x86 Assembly' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 01:11:33 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 01:11:33 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>assambly matrix program</title>
      <link>http://www.programmersheaven.com/mb/x86_asm/425760/425760/assambly-matrix-program/</link>
      <description>Hello. I had a task to write a program which finds minimal elements in each matrix column. I kinda wrote program, but when i check results they are kinda different.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;.model tiny
.code
.startup
                Org      100h
                Jmp Short Start
N Equ  2
M  Equ 3
Matrix DW 1, 7, 3   ; 2 elementi diapazonв [Min, Max]
DW 4, 5, 6   ; 3 elementi diapazonв [Min, Max]
Vector DW M Dup (?)
S Equ Type Matrix
Start:
Xor Bx, Bx
Mov Cx, M
Lea Di, Vector
Cols: Push      Cx
Mov Cx, N
Xor Si, Si
Xor Ax, Ax
Xor      Dx, Dx
Mov  Ax , Matrix[Bx][Si]
Rows:
 
   Cmp Matrix[Bx][Si], Ax
Jg False
Mov  Ax,  Matrix[Bx][Si]
 
False:
Add Si, S*M
Loop Rows
Mov [Di], Ax
Add Bx, S
Add Di, S
                Pop      Cx
Loop Cols
Xor Bx, Bx
Mov Cx, M
Print: Mov Ax, Vector[Bx]
Add Bx, S
Loop Print
          
.exit 0
end&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Could someone point out or help me correct my mistakes?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/x86_asm/425760/425760/assambly-matrix-program/</guid>
      <pubDate>Sun, 13 Nov 2011 11:50:11 -0700</pubDate>
      <category>x86 Assembly</category>
    </item>
  </channel>
</rss>