Skip to content

Instantly share code, notes, and snippets.

View pankajkalania's full-sized avatar

Pankaj Kalania pankajkalania

View GitHub Profile
@pankajkalania
pankajkalania / print_hex.asm
Created September 9, 2018 15:37 — forked from jsutlovic/print_hex.asm
Assembly print hex
[org 0x7c00]
mov dx, 0x1fb7 ; Set the value we want to print to dx
call print_hex ; Print the hex value
jmp $ ; Hang once we're done
%include "print_string.asm"
; Prints the value of DX as hex.
print_hex:
@pankajkalania
pankajkalania / ass13.asm
Created November 15, 2018 16:48 — forked from tanayseven/ass13.asm
program to copy from one string to another string without using string instructions using 8086 compatible assembly language
;program to copy from one string to another string without using string instructions
INCLUDE io.h
Cr EQU 0ah
Lf EQU 0dh
data SEGMENT
p_str1 DB Cr, Lf, 'Enter the string: ',0
p_str2 DB Cr, Lf, 'The copied string is: ',0