c-programming

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

ex2.asm (764B)


      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 38
     15 ; ========================================================================
     16 
     17 bits 16
     18 
     19 mov cx, bx
     20 mov ch, ah
     21 mov dx, bx
     22 mov si, bx
     23 mov bx, di
     24 mov al, cl
     25 mov ch, ch
     26 mov bx, ax
     27 mov bx, si
     28 mov sp, di
     29 mov bp, ax