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
2022-03-27 16:17:06 +02:00

33 lines
409 B
NASM

.model small
section .data
a db 8
b db 3
section .text
global main
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
; terminate program
mov ah, 04Ch
int 21h
end