News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

How to Compare 2 numbers in 8086 assembly language?

Started by meetecho, February 16, 2011, 01:10:50 AM

Previous topic - Next topic

meetecho

Do you guys have sample codes? badly need it. Thanks a lot :)

hutch--

Why does this sound like a homework request ?  :bg
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

meetecho

It's actually a School Activity and I'm stuck :c I need a help. huhuhu

hutch--

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

dedndave

we can give you hints, though   :bg
i suggest you do a little research on the CMP instruction, although ADD, SUB, as well as other math and logical instructions can alter the flags
also - the FLAGS register - and conditional branches like JZ, JA, JG, etc

http://www.arl.wustl.edu/~lockwood/class/cs306/books/artofasm/Chapter_6/CH06-1.html