@atharvakp

SE B 43 ASS 6

June 13, 2021 · Assembly
section .data
rmodemsg db 10,"Processor is in Real Mode"
rmsg_len equ $-rmodemsg

pmodemsg db 10,"Processor is in Protected Mode"
pmsg_len equ $-pmodemsg

gdtmsg db 10,"GDT Contents are::"
gdtmsg_len equ $-gdtmsg

ldtmsg db 10,"LDT Contents are::"

SE B 43 Ass 5

June 13, 2021 · Assembly
%macro print 2   ;macro to print
mov rax,1
mov rdi,1
mov rsi,%1
mov rdx,%2
syscall
%endmacro

%macro accept 2   ;macro to accept
mov rax,0

SE B 43 ass 8

June 13, 2021 · Assembly
;perform overlapped  block transfer with string instruction


 section .data

 array db 10h,20h,30h,40h,50h
     
 
        msg1: db 'Before overlapped :',0xa
 len1: equ $-msg1

SE B 43 ASS 7

June 13, 2021 · Assembly
;perform nonoverlapped  block transfer without string instruction


 section .data

 array db 10h,20h,30h,40h,50h
     
 
        msg1: db 'Before overlapped :',0xa
 len1: equ $-msg1

se b 43 ass 5

June 13, 2021 · Assembly
section .data

    nummsg db "***Program to find Factorial of a number*** ",10
           db "Enter the 8 bit number (2digit): ",
    nummsg_len equ $-nummsg

    resmsg db "Factorial is : "
    resmsg_len equ $-resmsg

    thankmsg db 10,"Thank you ",10
    thankmsg_len equ $-thankmsg

ass 10 se b 43

June 13, 2021 · Assembly
%macro disp 2
mov rax,01h
mov rdi,01h
mov rsi ,%1
mov rdx,%2
syscall
%endmacro

%macro inn 2
mov rax,00h
mov rdi,00h

hex mul

updated June 12, 2021 · Assembly
msg db 'Enter two digit Number::',0xa
msg_len equ $-msg
res db 10,'Multiplication of elements is::'
res_len equ $-res
choice db 'Enter your Choice:',0xa
       db'1.Successive Addition',0xa
       db '2.Add and Shift method',0xa
       db '3.Exit',0xa
choice_len equ $-choice

section .bss

ass 4

June 12, 2021 · Assembly
section .data
 ncnt db 0
 pcnt db 0
 array: dw -80H,4CH,-3FH
 len equ 7
 msg1: db 'positive numbers are:',0xa
 len1: equ $-msg1
 msg2: db 'negative numbers are:',0xa
 len2: equ $-msg2


SE b 43 ass 2

June 12, 2021 · Assembly
%macro scall 4
        mov rax,%1
        mov rdi,%2
        mov rsi,%3
        mov rdx,%4
        syscall
%endmacro

section .data
        arr dq 000000000000009h,0000000000000003h
        n equ 2

SE b 43

updated June 11, 2021 · Assembly
 section .data

	msg1 db 10,13,"enter string:"
    msg2 db 10,13,"Length is:"
	len1 equ $-msg1



section .bss

	str1 resb 200                 ;string declaration

SE B 43

updated June 11, 2021 · Assembly
section .data

	msg1 db 10,13,"Enter 5 64 bit numbers"

	len1 equ $-msg1

	msg2 db 10,13,"Entered 5 64 bit numbers"

	len2 equ $-msg2