flat assembler
Message board for the users of flat assembler.
Index
> Main > .. |
Author |
|
pool 13 Jan 2009, 05:02
..
Last edited by pool on 17 Mar 2013, 12:01; edited 1 time in total |
|||
13 Jan 2009, 05:02 |
|
revolution 13 Jan 2009, 05:08
JP
JNP JPO JPE Check the Intel/AMD manual to see what flag value each tests for. |
|||
13 Jan 2009, 05:08 |
|
pool 14 Jan 2009, 11:13
..
Last edited by pool on 17 Mar 2013, 12:02; edited 1 time in total |
|||
14 Jan 2009, 11:13 |
|
Grom PE 16 Jan 2009, 03:33
I don't see jp/jnp in programs often.
Could anyone explain to me when it's useful? It would be nice to see some uses in real projects, or as list of possibilities. |
|||
16 Jan 2009, 03:33 |
|
baldr 16 Jan 2009, 04:29
Grom PE, you may look here for a sample application.
|
|||
16 Jan 2009, 04:29 |
|
Grom PE 16 Jan 2009, 06:09
baldr, that's interesting, but not useful enough - very specific case =)
|
|||
16 Jan 2009, 06:09 |
|
sinsi 16 Jan 2009, 06:16
http://coding.derkeiler.com/Archive/Assembler/comp.lang.asm.x86/2004-10/0310.html
Look at "next in thread" too. Interesting what you find out... |
|||
16 Jan 2009, 06:16 |
|
DJ Mauretto 16 Jan 2009, 10:42
Quote: I don't see jp/jnp in programs often. Read my signature _________________ Nil Volentibus Arduum |
|||
16 Jan 2009, 10:42 |
|
Goplat 17 Jan 2009, 15:41
Suppose you're writing a NES emulator, and you need to classify a memory address into one of the four ranges (0000-1FFF = RAM, 2000-5FFF = memory mapped registers, 6000-7FFF = Save RAM, 8000-FFFF = ROM). Most people would use three comparisons to do this, but the flag-savvy programmer can do it with just one!
Code: mov bx,[address] test bh,0E0h js rom_address ; 8000-FFFF jz ram_address ; 0000-1FFF jpe sram_address ; 6000-7FFF jmp register_address ; 2000-5FFF |
|||
17 Jan 2009, 15:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.