c-programming

Simple C programs
git clone git://git.laack.co/c-programming.git
Log | Files | Refs

ex4.0.asm (940B)


      1 ; ========================================================================
      2 ;
      3 ; (C) Copyright 2023 by Molly Rocket, Inc., All Rights Reserved.
      4 ;
      5 ; This software is provided 'as-is', without any express or implied
      6 ; warranty. In no event will the authors be held liable for any damages
      7 ; arising from the use of this software.
      8 ;
      9 ; Please see https://computerenhance.com for further information
     10 ;
     11 ; ========================================================================
     12 
     13 ; ========================================================================
     14 ; LISTING 41
     15 ; ========================================================================
     16 
     17 bits 16
     18 
     19 test_label0:
     20 jnz test_label1
     21 jnz test_label0
     22 test_label1:
     23 jnz test_label0
     24 jnz test_label1
     25 
     26 label:
     27 je label
     28 jl label
     29 jle label
     30 jb label
     31 jbe label
     32 jp label
     33 jo label
     34 js label
     35 jne label
     36 jnl label
     37 jg label
     38 jnb label
     39 ja label
     40 jnp label
     41 jno label
     42 jns label
     43 loop label
     44 loopz label
     45 loopnz label
     46 jcxz label