name "str2bin"
; convert string number to binary!
; this program written in 8086 assembly language to
; convert string value to binary form.
; this example is copied with major modifications
; from macro "scan_num" taken from c:\emu8086\inc\emu8086.inc
;
; the original "scan_num" not only converts the string number
; but also reads the string from the keyboard and supports
; backspace key, this example is a shorten version
; of original "scan_num" macro.
; here we assume that the string number is already given,
; and the string number does not contain non-digit chars
; and it cannot cause buffer overflow (number is in word range
; and/or has only 4 digits).
; negative values are allowed in this example.
; the original "scan_num" does not allow to enter non-digits
; and it also checks for buffer overflow.
; you can the original file with other macro definitions
; in c:\emu8086\inc\emu8086.inc
org 100h
jmp start
; text data:
msg1 db 0Dh,0Ah, " enter any number from -32768 to 65535 inclusive, or zero to stop: $"
msg2 db 0Dh,0Ah, " binary form: $"
; buffer for int 21h/0ah
; fist byte is buffer size,
; second byte is number of chars actually read (set by int 21h/0ah).
buffer db 7,?, 5 dup (0), 0, 0
; for result:
binary dw ?
start:
; print welcome message:
mov dx, offset msg1
How to write the program un Assembly language to set a password for personal computers?
Programs written in a high level language might be slower than ones written in Assembly language; but it is not always so, it is very easy to write un-effective programs in Assembly.
The native Assembly language of the given platform. For example it would be stupid to write anything in Motorola 68000 Assembly for Intel x86 platform: it wouldn't work.
write a c++ program to convert binary number to decimal number by using while statement
Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equivalent?
You need an 8086 assembly language pencil.
write an assembly language program to find sum of N numbers
8086 assembly language program to check wether given number is perfect or not
Any text-editor will do.
7.5 is a decimal.
When you write the decimal number '7' in Base-2 (binary), you write '0111'.
How to write the program un Assembly language to set a password for personal computers?
assembly language uses abbreviation called menmonics.it is a bit easier to write computer programs in assembly language as compared to machine language but still requires skill and experienci.A program called assembler is used to convert an assembly language into machine language.
write program to concatenating two sting in 8086 assembly language
It is simply 127.0 as a decimal number
The number is in decimal notation.
Programs written in a high level language might be slower than ones written in Assembly language; but it is not always so, it is very easy to write un-effective programs in Assembly.