Archived
1
0
This repository has been archived on 2026-02-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
iceberg/asm/mult.asm
T
2022-03-27 15:57:45 +02:00

34 lines
396 B
NASM

.model small
section
global main
section .data
a db 8
b db 3
section .bss
res db
main:
; initialization
mov ax, @data
mov ds, ax
mov ah, 0
; load numbers on registers
mov ax, a
mov bl, b
; multiplication of the two registers
mul bl
; save result
mov dl, al
add dl, 48
mov ah, 02
int 21h
mov ah, 04Ch
int 21h