-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1.asm
More file actions
45 lines (35 loc) · 697 Bytes
/
1.asm
File metadata and controls
45 lines (35 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
section .data
msg1 dd 65,55
;; msg db "Addition is %d",9,0
Temp db "djdkjfd",10,0
NumA dd 12,12,929
;; NumB db "hello"
NumC dd 12,11
section .bss
twlve resd 12
three resw 3
four resb 4
one resd 5
two resd 15
section .text
global main
extern printf,scanf
main: mov eax,ebx
l9: add ecx,edx
mov eax,eax ;reg32,reg32
kk1:
mov ah,byte[one] ;reg8,mem8
add al,al ;reg8,reg8
add ax,ax ;reg16,reg16
add eax,eax ;reg32,reg32
add byte[one],10 ;mem8,imm8
add word[two],23 ;mem16,imm16
p223: add dword[four],111 ;mem32,imm32
mov eax,32
mov al,al ;reg8,reg8
sub al,byte[one] ;reg8,mem8
mov eax,_abc
l1: mov eax,20232
mov ax,2023
mov al,20
_abc: ret