mirror of
https://github.com/Ed94/perfaware.git
synced 2024-11-10 04:14:53 -08:00
39 lines
952 B
NASM
39 lines
952 B
NASM
|
; ========================================================================
|
||
|
;
|
||
|
; (C) Copyright 2023 by Molly Rocket, Inc., All Rights Reserved.
|
||
|
;
|
||
|
; This software is provided 'as-is', without any express or implied
|
||
|
; warranty. In no event will the authors be held liable for any damages
|
||
|
; arising from the use of this software.
|
||
|
;
|
||
|
; Please see https://computerenhance.com for further information
|
||
|
;
|
||
|
; ========================================================================
|
||
|
|
||
|
; ========================================================================
|
||
|
; LISTING 40
|
||
|
; ========================================================================
|
||
|
|
||
|
bits 16
|
||
|
|
||
|
; Signed displacements
|
||
|
mov ax, [bx + di - 37]
|
||
|
mov [si - 300], cx
|
||
|
mov dx, [bx - 32]
|
||
|
|
||
|
; Explicit sizes
|
||
|
mov [bp + di], byte 7
|
||
|
mov [di + 901], word 347
|
||
|
|
||
|
; Direct address
|
||
|
mov bp, [5]
|
||
|
mov bx, [3458]
|
||
|
|
||
|
; Memory-to-accumulator test
|
||
|
mov ax, [2555]
|
||
|
mov ax, [16]
|
||
|
|
||
|
; Accumulator-to-memory test
|
||
|
mov [2554], ax
|
||
|
mov [15], ax
|