Archived
1
0

update mult.asm

This commit is contained in:
Erick
2022-03-27 15:57:45 +02:00
parent 20d74eeac2
commit cf5ae5a456
+29 -3
View File
@@ -1,8 +1,34 @@
segment .text
.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
segment .data
var
; 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